:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: #f0f1f3;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.12);
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --green: #248a3d;
  --amber: #a15c00;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #fbfbfd 0%, var(--bg) 100%);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #161920;
  --surface-muted: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --blue: #0a84ff;
  --blue-dark: #6bb7ff;
  --green: #69d681;
  --amber: #ffd38a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(10, 132, 255, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 10%,
      rgba(94, 92, 230, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, #11151d 0%, var(--bg) 100%);
  color: var(--text);
}

body.auth-page {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      135deg,
      rgba(0, 113, 227, 0.13) 0%,
      rgba(255, 255, 255, 0) 42%
    ),
    linear-gradient(
      215deg,
      rgba(94, 162, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 46%
    ),
    linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

body.auth-page::before {
  position: fixed;
  z-index: -1;
  inset: -22% -12% auto -12%;
  height: 58vh;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.72),
    rgba(197, 225, 255, 0.4) 48%,
    rgba(255, 255, 255, 0)
  );
  content: "";
  filter: blur(38px);
  opacity: 0.9;
  pointer-events: none;
  transform: skewY(-8deg);
}

body.auth-page::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 72%);
  opacity: 0.32;
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

.commercial-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  height: 58px;
  padding-inline: max(20px, calc((100vw - 1320px) / 2 + 28px));
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.brand,
.commercial-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 255, 255, 0.72),
      transparent 16%
    ),
    linear-gradient(145deg, #0a84ff 0%, #5e5ce6 52%, #1d1d1f 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.commercial-nav {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  color: var(--muted);
}

.commercial-nav a,
.text-button {
  min-height: 34px;
  min-width: 76px;
  padding: 7px 14px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.commercial-nav a.active,
.commercial-nav a:hover,
.text-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.commercial-nav a.active {
  color: #fff;
  background: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 58px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 22px;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 255, 255, 0.72),
      transparent 16%
    ),
    linear-gradient(145deg, #0a84ff 0%, #5e5ce6 52%, #1d1d1f 100%);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.7px;
}

.nav {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.nav a {
  min-width: 76px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 560;
  text-align: center;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #000;
  background: rgba(255, 255, 255, 0.72);
}

.nav a.active {
  color: #fff;
  background: #1d1d1f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search:focus-within {
  border-color: rgba(0, 113, 227, 0.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.08);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}

.search input::placeholder {
  color: var(--muted);
}

.search span {
  font-size: 15px;
  line-height: 1;
}

.theme-toggle,
.profile-trigger {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  color: #1d1d1f;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.theme-toggle:hover,
.profile-trigger:hover,
.profile-menu.open .profile-trigger {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.18);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 113, 227, 0.2);
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(260px, calc(100vw - 24px));
  height: 14px;
  content: "";
}

.profile-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 25%,
      rgba(255, 255, 255, 0.78),
      transparent 18%
    ),
    linear-gradient(145deg, #d7e9ff 0%, #0a84ff 52%, #1d1d1f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 8px 18px rgba(0, 113, 227, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.profile-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: min(260px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.profile-menu.open .profile-panel,
.profile-menu:hover .profile-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.profile-panel-head {
  padding: 9px 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-panel-head strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.profile-panel-head span,
.profile-panel-head em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.profile-menu-list {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.profile-menu-list a,
.profile-menu-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.profile-menu-list a:hover,
.profile-menu-button:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
}

body.theme-dark .header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 20, 0.72);
}

body.theme-dark .commercial-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 22, 0.76);
}

body.theme-dark .nav,
body.theme-dark .search,
body.theme-dark .theme-toggle,
body.theme-dark .profile-trigger {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .nav a {
  color: rgba(255, 255, 255, 0.74);
}

body.theme-dark .nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

body.theme-dark .nav a.active {
  color: #111114;
  background: #fff;
}

body.theme-dark .theme-toggle,
body.theme-dark .profile-trigger {
  color: #fff;
}

body.theme-dark .theme-toggle:hover,
body.theme-dark .profile-trigger:hover,
body.theme-dark .profile-menu.open .profile-trigger {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

body.theme-dark .profile-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(28, 28, 30, 0.9);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

body.theme-dark .profile-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .profile-menu-list a:hover,
body.theme-dark .profile-menu-button:hover {
  background: rgba(10, 132, 255, 0.16);
  color: #8ec5ff;
}

@media (max-width: 980px) {
  .header {
    height: auto;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 58px;
    padding: 9px 16px;
  }

  .logo {
    font-size: 16px;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-self: stretch;
  }

  .nav a {
    flex: 1 1 0;
    min-width: 0;
  }

  .header-actions {
    grid-column: 2;
    order: 2;
    width: auto;
    justify-self: end;
    gap: 8px;
  }

  .header-actions .search {
    display: none;
  }

  .profile-menu::after {
    display: none;
  }

  .profile-menu:hover .profile-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
  }

  .profile-menu.open .profile-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 520px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .logo span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-center-link {
    display: none;
  }
}

.commercial-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  padding-top: 32px;
}

.auth-panel,
.page-head {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.auth-panel {
  max-width: 440px;
  padding: 32px;
}

.auth-page .commercial-header {
  border-bottom-color: rgba(29, 29, 31, 0.08);
  background: rgba(248, 251, 255, 0.72);
  box-shadow: none;
}

.auth-header {
  min-height: 58px;
}

.auth-brand {
  min-width: 0;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.auth-home-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(30, 55, 90, 0.08);
}

.auth-home-link:hover {
  border-color: rgba(0, 113, 227, 0.24);
  color: #0071e3;
  background: rgba(255, 255, 255, 0.92);
}

.auth-page .auth-shell {
  position: relative;
  width: min(100% - 32px, 1080px);
  padding: 38px 0 68px;
}

.auth-page .auth-shell::before {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(760px, 92vw);
  height: 390px;
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.72),
      rgba(214, 233, 255, 0.34)
    ),
    linear-gradient(90deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0));
  content: "";
  filter: blur(24px);
  opacity: 0.72;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.auth-page .auth-panel {
  max-width: 468px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 34px 90px rgba(30, 55, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.auth-page .panel-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(0, 113, 227, 0.13);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 113, 227, 0.07);
}

.auth-page h1 {
  margin-top: 14px;
  font-size: 34px;
}

.auth-page .panel-copy {
  margin: 12px 0 0;
  color: #4e5f73;
}

.auth-page .auth-form {
  gap: 15px;
  margin-top: 28px;
}

.auth-page .auth-form input {
  border-color: rgba(30, 55, 90, 0.13);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.auth-page .challenge-box {
  border-color: rgba(0, 113, 227, 0.18);
  background: rgba(232, 242, 255, 0.72);
}

.auth-page .primary-button {
  min-height: 48px;
  box-shadow: 0 14px 28px rgba(0, 113, 227, 0.2);
}

.auth-page .secondary-button {
  background: rgba(255, 255, 255, 0.72);
}

.auth-page .form-message {
  min-height: 24px;
  margin: 16px 0 0;
}

.auth-page .auth-switch {
  margin: 12px 0 0;
  text-align: center;
}

.auth-link-stack {
  display: grid;
  gap: 6px;
}

.auth-link-stack p {
  margin: 0;
}

.auth-legal-note {
  color: rgba(107, 114, 128, 0.9);
  font-size: 13px;
  line-height: 1.65;
}

.auth-agreement {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-form .auth-agreement input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  cursor: pointer;
  accent-color: #0071e3;
}

.auth-form .auth-agreement label {
  display: block;
  gap: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 500;
}

.auth-agreement a,
.auth-legal-note a {
  color: #0071e3;
  font-weight: 700;
  text-decoration: none;
}

.auth-agreement a:hover,
.auth-legal-note a:hover {
  text-decoration: underline;
}

.course-access-page .commercial-header {
  border-bottom-color: rgba(29, 29, 31, 0.08);
  background: rgba(248, 251, 255, 0.76);
  box-shadow: none;
}

.course-access-nav {
  gap: 8px;
}

.course-access-shell {
  width: min(1120px, calc(100% - 32px));
  padding: 42px 0 76px;
}

.course-access-hero,
.course-access-section,
.course-access-guardrail {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 26px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.94),
      rgba(234, 243, 255, 0.74)
    ),
    var(--surface);
  box-shadow: 0 24px 72px rgba(30, 55, 90, 0.1);
}

.course-access-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  padding: 34px;
}

.course-access-hero-copy {
  min-width: 0;
}

.course-access-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 999px;
  padding: 5px 11px;
  background: rgba(0, 113, 227, 0.07);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.3;
}

.course-access-hero h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.course-access-hero p:not(.course-access-kicker),
.course-access-section-head p:not(.course-access-kicker),
.course-access-note,
.course-access-status p,
.course-value-card p,
.course-access-steps p,
.course-faq-list p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.course-access-hero-copy > p:not(.course-access-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 17px;
}

.course-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.course-access-actions .primary-button,
.course-access-actions .secondary-button {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
}

.course-access-status {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(0, 113, 227, 0.16),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.72);
}

.course-access-status span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.course-access-status strong {
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.course-access-status p {
  margin: 0;
}

.course-access-section,
.course-access-guardrail {
  margin-top: 20px;
  padding: 28px;
}

.course-access-section-head {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 18px;
}

.course-access-section h2,
.course-access-guardrail h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0;
}

.course-value-grid,
.course-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-value-card,
.course-entry-card {
  min-width: 0;
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(30, 55, 90, 0.06);
}

.course-value-card span,
.course-entry-card strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.course-value-card p {
  margin: 8px 0 0;
}

.course-access-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-access-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.course-access-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: #1d1d1f;
  color: #fff;
  font-size: 15px;
  font-weight: 820;
}

.course-access-steps strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.course-access-steps p {
  margin: 6px 0 0;
}

.course-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-entry-group-title {
  margin: 20px 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 820;
  letter-spacing: 0;
}

.course-entry-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.course-entry-card:hover {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 18px 44px rgba(0, 113, 227, 0.1);
  transform: translateY(-2px);
}

.course-entry-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.course-access-note {
  margin: 16px 0 0;
  border: 1px solid rgba(161, 92, 0, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 246, 232, 0.74);
}

.course-faq-list {
  display: grid;
  gap: 10px;
}

.course-faq-list details {
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.74);
}

.course-faq-list summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 780;
  list-style: none;
}

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

.course-faq-list summary::after {
  flex: 0 0 auto;
  color: var(--blue);
  content: "+";
  font-size: 20px;
  font-weight: 700;
}

.course-faq-list details[open] summary::after {
  content: "−";
}

.course-faq-list p {
  margin: 0;
  padding: 0 0 16px;
}

.course-access-guardrail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(29, 29, 31, 0.92), rgba(44, 57, 73, 0.9)),
    #1d1d1f;
}

.course-access-guardrail .course-access-kicker {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

.course-access-guardrail h2 {
  margin-top: 12px;
  color: #fff;
}

.course-access-guardrail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
  list-style: none;
}

.course-access-guardrail li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-help-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 16px;
  padding: 14px;
  background: rgba(232, 242, 255, 0.62);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-help-note strong {
  color: var(--text);
  font-size: 14px;
}

.page-head {
  padding: 28px;
}

.learning-shell {
  max-width: 1120px;
}

.learning-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 30px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(234, 243, 255, 0.86)
    ),
    var(--surface);
  box-shadow: var(--shadow);
}

.profile-hero {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(230, 240, 255, 0.9)
    ),
    linear-gradient(90deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0));
}

.member-line {
  max-width: 360px;
  margin: 0;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.learning-notice {
  margin: 18px 0 0;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(232, 242, 255, 0.72);
  color: #36506b;
  font-size: 14px;
  line-height: 1.6;
}

.learning-notice[hidden] {
  display: none;
}

.learning-center-page {
  width: min(1120px, calc(100% - 40px));
  padding-top: 34px;
}

.learning-center-page .learning-hero {
  align-items: center;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  padding: 28px 34px;
  background:
    radial-gradient(
      circle at 92% 18%,
      rgba(0, 113, 227, 0.13),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(236, 245, 255, 0.78)
    ),
    var(--surface);
  box-shadow: 0 24px 72px rgba(30, 55, 90, 0.09);
}

.learning-center-page .learning-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -1.6px;
}

.learning-center-page .panel-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(29, 29, 31, 0.68);
  font-size: 16px;
  line-height: 1.65;
}

.learning-center-page .member-line {
  min-width: 230px;
  max-width: 320px;
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.learning-center-page .form-message {
  margin: 18px 0 0;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(232, 242, 255, 0.68);
}

.learning-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.learning-quick-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(30, 55, 90, 0.06);
}

.learning-center-page .course-pack-host,
.learning-center-page .resource-list {
  margin-top: 22px;
}

.notice-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 10px;
}

.notice-actions a,
.text-link {
  color: var(--blue);
  font-weight: 700;
}

.quick-link-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-link-bar a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(30, 55, 90, 0.06);
}

.learning-state-card {
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(236, 245, 255, 0.78)
    ),
    var(--surface);
  box-shadow: 0 22px 66px rgba(30, 55, 90, 0.08);
}

.learning-state-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
}

.learning-state-card h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.16;
  letter-spacing: 0;
}

.learning-state-card p {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.learning-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.learning-state-actions .primary-button,
.learning-state-actions .secondary-button {
  min-height: 44px;
  border-radius: 14px;
  padding: 0 18px;
}

.overview-section {
  margin-top: 24px;
}

.section-headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-headline h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
}

.panel-kicker {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

.panel-copy,
.form-message,
.auth-switch {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(0, 113, 227, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.challenge-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 113, 227, 0.06);
}

.challenge-box[hidden] {
  display: none;
}

.challenge-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.challenge-line .text-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.aliyun-captcha-box {
  display: grid;
  gap: 12px;
}

.aliyun-captcha-box[hidden] {
  display: none;
}

.captcha-button {
  width: 100%;
  cursor: pointer;
}

.captcha-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.primary-button,
.secondary-button,
.disabled-button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled {
  background: #8ab8e8;
  cursor: wait;
}

.secondary-button {
  background: var(--surface-muted);
  color: var(--text);
}

.disabled-button {
  background: #e7e7ea;
  color: var(--muted);
  cursor: not-allowed;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.access-card {
  display: flex;
  min-width: 0;
  min-height: 226px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.82)
    ),
    var(--surface);
  box-shadow: 0 16px 42px rgba(30, 55, 90, 0.07);
}

.access-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.access-id {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.access-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.access-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.is-open {
  background: rgba(36, 138, 61, 0.12);
  color: var(--green);
}

.status-pill.is-locked {
  background: rgba(161, 92, 0, 0.12);
  color: var(--amber);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.card-actions > * {
  flex: 1 1 130px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-pack-host,
.resource-list {
  margin-top: 18px;
}

.course-pack-panel,
.resource-row,
.signed-out-card,
.tool-entry-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.86)
    ),
    var(--surface);
  box-shadow: 0 16px 42px rgba(30, 55, 90, 0.07);
}

.course-pack-panel {
  padding: 28px;
}

.course-pack-panel.is-compact {
  padding: 20px;
}

.course-pack-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.pack-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.course-pack-header h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.course-pack-header p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.course-pack-progress {
  display: grid;
  min-width: 128px;
  justify-items: center;
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(232, 242, 255, 0.68);
}

.course-pack-progress strong {
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.course-pack-progress span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.course-progress-track {
  height: 8px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  overflow: hidden;
}

.course-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #5aa7ff);
}

.course-pack-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.course-pack-meta span {
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lesson-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.lesson-row,
.resource-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.lesson-row {
  border: 1px solid rgba(29, 29, 31, 0.09);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.lesson-index {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: #1d1d1f;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.workflow-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 14px;
  font-weight: 820;
}

.lesson-main,
.resource-main {
  min-width: 0;
}

.lesson-main h3,
.resource-main h3,
.signed-out-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -0.3px;
}

.lesson-note,
.resource-note,
.signed-out-card p,
.tool-entry-card small {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.lesson-side,
.resource-side {
  display: grid;
  min-width: 132px;
  justify-items: stretch;
  gap: 10px;
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  border-radius: 18px;
  padding: 18px 20px;
}

.learning-center-page .course-pack-panel,
.learning-center-page .workflow-center-panel {
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(255, 255, 255, 0.9)
    ),
    var(--surface);
  box-shadow: 0 26px 80px rgba(30, 55, 90, 0.1);
}

.learning-center-page .lesson-list,
.learning-center-page .workflow-center-list {
  gap: 12px;
  margin-top: 22px;
}

.learning-center-page .lesson-row,
.learning-center-page .resource-row {
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(248, 250, 252, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.learning-center-page .lesson-row:hover,
.learning-center-page .resource-row:hover {
  border-color: rgba(0, 113, 227, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.learning-center-page .primary-button,
.learning-center-page .secondary-button,
.learning-center-page .disabled-button {
  min-height: 46px;
  border-radius: 14px;
  padding: 0 18px;
}

.learning-center-page .secondary-button {
  background: rgba(29, 29, 31, 0.06);
  color: var(--text);
}

.learning-center-page .status-pill {
  padding: 6px 11px;
}

.compact-resource-list .resource-row {
  padding: 14px;
}

.signed-out-card {
  padding: 20px;
}

.tool-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-entry-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
}

.tool-entry-card span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.profile-compact {
  max-width: 1040px;
  padding-top: 22px;
}

.student-panel,
.compact-course-pack,
.course-row,
.tool-card,
.preview-footer {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(30, 55, 90, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.student-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  padding: 18px;
}

.student-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.student-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 38% 28%,
      rgba(255, 255, 255, 0.82),
      transparent 18%
    ),
    linear-gradient(145deg, #d7e9ff 0%, #0a84ff 55%, #5e5ce6 100%);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.18);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.student-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.student-title {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 880;
  letter-spacing: 0;
}

.student-next,
.student-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.student-note {
  color: #86868b;
}

.student-side {
  display: grid;
  min-width: 280px;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stat-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.44);
}

.stat-value {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 860;
}

.stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.compact-section {
  margin-top: 20px;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-action-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.68);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(30, 55, 90, 0.045);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.profile-action-card:hover {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 18px 44px rgba(0, 113, 227, 0.1);
  transform: translateY(-1px);
}

.profile-action-card span {
  color: var(--text);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

.profile-action-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.compact-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0 2px;
}

.compact-head .text-link {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.4;
}

.compact-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 860;
}

.compact-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-collection-section {
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

.profile-collection-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 0 15px;
}

.profile-collection-tab {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 760;
}

.profile-collection-tab span {
  font-size: 13px;
  font-weight: 820;
}

.profile-collection-tab::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.profile-collection-tab.is-active {
  color: #1d1d1f;
}

.profile-collection-tab.is-active::after {
  background: #1d1d1f;
}

.profile-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 310px));
  gap: 16px;
  padding-top: 24px;
}

.profile-collection-card {
  display: flex;
  min-height: 332px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.profile-collection-card:hover {
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 24px 60px rgba(0, 113, 227, 0.12);
  transform: translateY(-2px);
}

.profile-collection-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(0, 113, 227, 0.18),
      transparent 36%
    ),
    linear-gradient(135deg, #edf6ff, #f9fbff);
}

.profile-collection-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
  content: "";
}

.profile-collection-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-collection-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 15px;
}

.profile-collection-status {
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 760;
}

.profile-collection-status.is-open {
  background: rgba(31, 143, 69, 0.1);
  color: var(--green);
}

.profile-collection-status.is-locked {
  background: rgba(0, 0, 0, 0.055);
  color: var(--muted);
}

.profile-collection-title {
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 860;
}

.profile-collection-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.profile-collection-meta {
  margin-top: auto;
  color: #5f6f82;
  font-size: 12px;
  line-height: 1.45;
}

.profile-collection-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  border-radius: 999px;
  margin-top: 2px;
  padding: 0 14px;
  background: #0071e3;
  color: #fff;
  font-size: 13px;
  font-weight: 780;
}

.compact-course-pack {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.compact-course-pack:not([open]) .course-pack-note,
.compact-course-pack:not([open]) .course-list {
  display: none;
}

.course-pack-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}

.course-pack-head::-webkit-details-marker {
  display: none;
}

.course-pack-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 840;
}

.compact-pack-meta,
.course-pack-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.course-pack-note {
  padding: 0 14px 12px;
}

.course-pack-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-pack-badge {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
}

.course-pack-arrow {
  color: var(--muted);
  font-size: 16px;
}

.course-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.course-row {
  display: grid;
  min-height: 56px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 12px;
}

.course-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  background: rgba(0, 113, 227, 0.09);
  color: var(--blue);
  font-size: 12px;
  font-weight: 860;
}

.course-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
}

.compact-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  margin-top: 5px;
  padding: 0 9px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.compact-status.recommended {
  background: rgba(31, 143, 69, 0.1);
  color: var(--green);
}

.row-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

button.row-action {
  cursor: pointer;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-card {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tool-card span:last-child {
  margin-top: 0;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tool-card:hover {
  border-color: rgba(0, 113, 227, 0.18);
  box-shadow: 0 14px 26px rgba(30, 55, 90, 0.07);
  transform: translateY(-1px);
}

body.theme-dark .auth-page::before,
body.theme-dark.auth-page::before {
  background: linear-gradient(
    110deg,
    rgba(18, 24, 34, 0.72),
    rgba(15, 77, 150, 0.28) 48%,
    transparent
  );
  opacity: 0.72;
}

body.theme-dark.auth-page {
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(10, 132, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(180deg, #11151d 0%, #0b0d12 100%);
}

body.theme-dark.auth-page .auth-home-link {
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

body.theme-dark.auth-page .auth-home-link:hover {
  border-color: rgba(110, 168, 255, 0.34);
  color: #9dccff;
  background: rgba(255, 255, 255, 0.11);
}

body.theme-dark .learning-hero,
body.theme-dark .student-panel,
body.theme-dark .compact-course-pack,
body.theme-dark .course-pack-panel,
body.theme-dark .resource-row,
body.theme-dark .signed-out-card,
body.theme-dark .tool-entry-card,
body.theme-dark .auth-panel,
body.theme-dark .page-head,
body.theme-dark .profile-collection-section,
body.theme-dark .profile-collection-card,
body.theme-dark .watch-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.085),
      rgba(255, 255, 255, 0.045)
    ),
    rgba(18, 22, 30, 0.86);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
}

body.theme-dark .learning-center-page .learning-hero,
body.theme-dark .profile-hero {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(10, 132, 255, 0.2),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.105),
      rgba(255, 255, 255, 0.045)
    ),
    rgba(18, 22, 30, 0.88);
}

body.theme-dark .learning-center-page .panel-copy,
body.theme-dark .member-line,
body.theme-dark .student-next,
body.theme-dark .student-note,
body.theme-dark .compact-desc,
body.theme-dark .compact-pack-meta,
body.theme-dark .course-pack-note,
body.theme-dark .profile-collection-desc,
body.theme-dark .profile-collection-meta,
body.theme-dark .lesson-note,
body.theme-dark .resource-note,
body.theme-dark .signed-out-card p,
body.theme-dark .tool-entry-card small,
body.theme-dark .captcha-hint,
body.theme-dark .form-message,
body.theme-dark .auth-switch {
  color: var(--muted);
}

body.theme-dark .member-line,
body.theme-dark .learning-notice,
body.theme-dark .learning-center-page .form-message,
body.theme-dark .challenge-box,
body.theme-dark .auth-help-note,
body.theme-dark .learning-state-card {
  border-color: rgba(10, 132, 255, 0.24);
  background: rgba(10, 132, 255, 0.1);
  color: rgba(210, 230, 255, 0.86);
}

body.theme-dark .stat-card,
body.theme-dark .course-pack-progress,
body.theme-dark .quick-link-bar a,
body.theme-dark .learning-quick-actions a,
body.theme-dark .profile-action-card,
body.theme-dark .tool-card,
body.theme-dark .learning-center-page .lesson-row,
body.theme-dark .learning-center-page .resource-row,
body.theme-dark .lesson-row,
body.theme-dark .course-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .learning-center-page .lesson-row:hover,
body.theme-dark .learning-center-page .resource-row:hover,
body.theme-dark .course-row:hover,
body.theme-dark .tool-card:hover,
body.theme-dark .profile-collection-card:hover {
  border-color: rgba(10, 132, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
}

body.theme-dark .profile-collection-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .profile-collection-tab {
  color: rgba(255, 255, 255, 0.58);
}

body.theme-dark .profile-collection-tab.is-active,
body.theme-dark .profile-collection-title,
body.theme-dark .tool-card span:last-child,
body.theme-dark .profile-action-card span,
body.theme-dark .auth-help-note strong,
body.theme-dark .learning-state-card h2,
body.theme-dark .course-pack-header h2,
body.theme-dark .course-pack-progress strong,
body.theme-dark .lesson-main h3,
body.theme-dark .resource-main h3,
body.theme-dark .signed-out-card h3,
body.theme-dark .course-pack-title,
body.theme-dark .course-name,
body.theme-dark .compact-title,
body.theme-dark .student-title,
body.theme-dark .section-headline h2 {
  color: var(--text);
}

body.theme-dark .profile-collection-tab.is-active::after {
  background: rgba(255, 255, 255, 0.9);
}

body.theme-dark .profile-collection-cover,
body.theme-dark .course-progress-track {
  background:
    radial-gradient(
      circle at 76% 20%,
      rgba(10, 132, 255, 0.2),
      transparent 36%
    ),
    rgba(255, 255, 255, 0.06);
}

body.theme-dark .course-pack-meta span,
body.theme-dark .profile-collection-status.is-locked,
body.theme-dark .compact-status,
body.theme-dark .disabled-button {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
}

body.theme-dark .status-pill.is-open,
body.theme-dark .compact-status.recommended,
body.theme-dark .profile-collection-status.is-open {
  background: rgba(105, 214, 129, 0.14);
  color: var(--green);
}

body.theme-dark .status-pill.is-locked {
  background: rgba(255, 211, 138, 0.14);
  color: var(--amber);
}

body.theme-dark .lesson-index {
  background: rgba(255, 255, 255, 0.92);
  color: #11151d;
}

body.theme-dark .course-index,
body.theme-dark .workflow-index,
body.theme-dark .course-pack-badge {
  background: rgba(10, 132, 255, 0.16);
  color: var(--blue-dark);
}

body.theme-dark .profile-action-card small,
body.theme-dark .learning-state-card p {
  color: var(--muted);
}

body.theme-dark .secondary-button,
body.theme-dark .row-action,
body.theme-dark .learning-center-page .secondary-button,
body.theme-dark .profile-collection-action {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

body.theme-dark .primary-button,
body.theme-dark .learning-center-page .primary-button {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
}

body.theme-dark .auth-form input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

body.theme-dark .auth-form input:focus {
  border-color: rgba(107, 183, 255, 0.64);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

body.theme-dark.course-access-page .commercial-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 22, 0.76);
}

body.theme-dark .course-access-hero,
body.theme-dark .course-access-section {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(10, 132, 255, 0.14),
      transparent 30%
    ),
    linear-gradient(135deg, rgba(26, 31, 42, 0.96), rgba(18, 22, 31, 0.9)),
    var(--surface);
}

body.theme-dark .course-access-status,
body.theme-dark .course-value-card,
body.theme-dark .course-entry-card,
body.theme-dark .course-access-steps li,
body.theme-dark .course-faq-list details {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

body.theme-dark .course-access-note {
  border-color: rgba(255, 211, 138, 0.18);
  background: rgba(255, 211, 138, 0.1);
}

body.theme-dark .course-access-steps li > span {
  background: #f5f5f7;
  color: #11151d;
}

.watch-shell {
  max-width: 920px;
}

.watch-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-stage {
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.1), transparent 38%), #111318;
  color: #fff;
}

.aliyun-player {
  width: 100%;
  min-height: 420px;
}

.player-placeholder {
  display: grid;
  max-width: 560px;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.player-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.7;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
}

.watch-actions > * {
  flex: 1 1 180px;
}

@media (max-width: 760px) {
  .commercial-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .commercial-nav {
    justify-content: flex-start;
  }

  .commercial-nav a,
  .text-button {
    padding: 8px 9px;
  }

  .commercial-shell {
    width: min(100% - 24px, 1080px);
    padding-top: 28px;
  }

  .learning-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .member-line {
    width: 100%;
    max-width: none;
  }

  .section-headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-panel,
  .page-head {
    padding: 22px;
  }

  .auth-page .commercial-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .auth-page .auth-nav {
    justify-content: flex-end;
  }

  .auth-home-link {
    min-height: 34px;
    padding: 8px 12px;
  }

  .auth-brand span:last-child {
    overflow: hidden;
    max-width: calc(100vw - 152px);
    text-overflow: ellipsis;
  }

  .auth-page .auth-shell {
    width: min(100% - 24px, 468px);
    min-height: calc(100vh - 118px);
    padding: 24px 0 44px;
  }

  .auth-page .auth-shell::before {
    width: 100%;
    height: 320px;
  }

  .auth-page .auth-panel {
    padding: 24px 20px;
  }

  .auth-page h1 {
    font-size: 30px;
  }

  .challenge-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .course-pack-panel {
    padding: 18px;
  }

  .course-pack-header,
  .lesson-row,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .course-pack-progress {
    width: 100%;
    justify-items: start;
  }

  .lesson-index {
    width: 40px;
    height: 40px;
  }

  .lesson-side,
  .resource-side {
    width: 100%;
    min-width: 0;
  }

  .lesson-side .primary-button,
  .lesson-side .secondary-button,
  .resource-side .primary-button,
  .resource-side .secondary-button {
    width: 100%;
  }

  .tool-entry-grid {
    grid-template-columns: 1fr;
  }

  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .learning-quick-actions a,
  .learning-state-actions .primary-button,
  .learning-state-actions .secondary-button {
    flex: 1 1 100%;
  }

  .learning-state-card {
    border-radius: 20px;
    padding: 20px;
  }

  .course-access-nav {
    flex-wrap: nowrap;
  }

  .course-access-shell {
    width: min(100% - 24px, 1120px);
    padding: 26px 0 52px;
  }

  .course-access-hero,
  .course-access-section,
  .course-access-guardrail {
    border-radius: 20px;
    padding: 20px;
  }

  .course-access-hero,
  .course-access-guardrail {
    grid-template-columns: 1fr;
  }

  .course-access-actions .primary-button,
  .course-access-actions .secondary-button {
    width: 100%;
  }

  .course-value-grid,
  .course-entry-grid {
    grid-template-columns: 1fr;
  }

  .course-access-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }

  .course-access-steps li > span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .profile-compact {
    padding-top: 12px;
  }

  .student-panel {
    grid-template-columns: 1fr;
    gap: 13px;
    border-radius: 22px;
    padding: 14px;
  }

  .student-side {
    min-width: 0;
  }

  .student-title {
    font-size: 21px;
  }

  .compact-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-collection-section {
    border-radius: 20px;
    padding: 14px;
  }

  .profile-collection-tabs {
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .profile-collection-tab {
    min-height: 32px;
    flex: 0 0 auto;
    font-size: 15px;
  }

  .profile-collection-tab::after {
    bottom: -13px;
  }

  .profile-collection-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
  }

  .profile-collection-card {
    min-height: 0;
    border-radius: 16px;
  }

  .course-pack-head {
    grid-template-columns: 1fr;
  }

  .course-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    min-height: 54px;
  }

  .row-action {
    grid-column: 2;
    justify-self: start;
    min-height: 28px;
    margin-top: -2px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .tool-card {
    min-height: 76px;
    border-radius: 16px;
    padding: 10px;
  }

  .player-stage {
    min-height: 300px;
    padding: 18px;
  }

  .aliyun-player {
    min-height: 300px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .course-value-grid,
  .course-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
