:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --line: rgba(16, 34, 68, 0.1);
  --text: #1b2436;
  --muted: #6d7b93;
  --brand: #2457d6;
  --brand-deep: #0f2d73;
  --brand-soft: #dce8ff;
  --success: #2db36a;
  --shadow: 0 24px 56px rgba(23, 46, 92, 0.08);
  --shadow-soft: 0 10px 28px rgba(23, 46, 92, 0.06);
  --radius: 24px;
  --container: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 138, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 38%, #eff3f8 100%);
  font-family: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand-mark {
  display: block;
  width: 220px;
  max-width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  background: rgba(15, 45, 115, 0.05);
  border-radius: 999px;
}

.main-nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.main-nav a.is-active,
.main-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #3a7cff);
  box-shadow: 0 10px 22px rgba(36, 87, 214, 0.2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 87, 214, 0.08);
  color: var(--brand);
  position: relative;
  cursor: pointer;
}

.icon-button span,
.icon-button span::after {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  content: "";
  border-radius: 50%;
}

.icon-button span {
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  transform: translate(-2px, -2px);
}

.icon-button span::after {
  width: 10px;
  height: 3px;
  background: currentColor;
  border: 0;
  transform: rotate(45deg) translate(11px, 9px);
}

.primary-pill,
.primary-action,
.submit-button,
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #437dff);
  box-shadow: 0 14px 30px rgba(36, 87, 214, 0.24);
  cursor: pointer;
}

.subtle-pill,
.member-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
}

.member-entry {
  background: rgba(36, 87, 214, 0.1);
  border-color: rgba(36, 87, 214, 0.12);
}

.flash {
  padding-top: 20px;
}

.flash-card {
  padding: 16px 18px;
  border: 1px solid rgba(45, 179, 106, 0.22);
  border-radius: 16px;
  background: rgba(45, 179, 106, 0.12);
  color: #176a42;
}

.flash-card-error {
  border-color: rgba(245, 95, 95, 0.22);
  background: rgba(245, 95, 95, 0.1);
  color: #8f2d2d;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  display: none;
  min-height: 560px;
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  display: block;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 560px;
}

.hero-copy {
  max-width: 620px;
  padding: 48px 0;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 28px;
  font-size: clamp(18px, 2.2vw, 28px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 44px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #fff;
}

.section-block,
.page-block,
.detail-wrap {
  padding: 48px 0 72px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.92));
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(16, 34, 68, 0.04);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 42px;
}

.section-head span {
  color: var(--muted);
  letter-spacing: 2px;
}

.ghost-link,
.pager-item,
.filter-chip,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.2s ease;
}

.ghost-link:hover,
.ghost-link.small,
.filter-chip.is-active,
.tab-button.is-active,
.pager-item.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #4a80ff);
  border-color: transparent;
}

.ghost-link.small {
  padding: 10px 18px;
  font-size: 14px;
}

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

.course-card,
.filter-panel,
.detail-hero,
.tabs,
.empty-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.course-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(23, 46, 92, 0.12);
}

.course-cover {
  height: 260px;
  background-position: center;
  background-size: cover;
  background-color: #dbe5ff;
}

.course-body {
  padding: 22px;
}

.course-body h3 {
  margin: 0 0 10px;
  font-size: 28px;
}

.course-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.public-card .course-cover {
  height: 240px;
}

.crumb-wrap {
  padding: 24px 0 0;
}

.crumb {
  color: var(--muted);
}

.crumb span {
  margin: 0 8px;
}

.filter-panel {
  padding: 12px 18px;
  margin-bottom: 28px;
}

.filter-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
}

.filter-row + .filter-row {
  border-top: 1px solid var(--line);
}

.filter-label {
  color: var(--text);
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.pager-item.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 30px;
  padding: 28px;
}

.detail-media {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 38, 0.05), rgba(7, 17, 38, 0.35));
}

.detail-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 92px;
  height: 92px;
  margin: auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand);
  font-size: 34px;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
}

.detail-info p {
  margin: 16px 0 28px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.tabs {
  margin-top: 26px;
  overflow: hidden;
}

.tab-head {
  display: flex;
  gap: 12px;
  padding: 18px 20px 0;
}

.tab-panel {
  display: none;
  padding: 24px 28px 30px;
  border-top: 1px solid var(--line);
}

.tab-panel.is-active {
  display: block;
}

.rich-text {
  color: #31415f;
  line-height: 2;
  font-size: 16px;
}

.chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.chapter-item:last-child {
  border-bottom: 0;
}

.chapter-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.chapter-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.progress-note {
  color: var(--brand);
}

.progress-bar {
  width: min(420px, 100%);
  height: 8px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(135deg, var(--brand), #76a2ff);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(13, 23, 45, 0.56);
  z-index: 60;
}

.modal.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 36px 70px rgba(10, 23, 51, 0.22);
}

.modal-panel h2 {
  margin: 0 0 24px;
  font-size: 42px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 38px;
  cursor: pointer;
}

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

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.input,
.textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 36, 69, 0.12);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
}

.submit-button {
  width: 100%;
  margin-top: 24px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, #0a1a39, #08132b);
}

.auth-wrap {
  min-height: calc(100vh - 84px);
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
}

.auth-grid {
  display: flex;
  justify-content: end;
  padding: 52px 0;
}

.auth-card {
  width: min(480px, 100%);
  padding: 30px 34px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 72px rgba(8, 25, 61, 0.18);
}

.auth-title-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  color: #a2abbb;
}

.auth-title-row span.is-active {
  color: var(--text);
  font-weight: 700;
}

.auth-title-single {
  gap: 0;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-links-center {
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 0;
}

.member-wrap {
  padding: 32px 0 72px;
}

.member-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
}

.member-sidebar,
.member-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.member-sidebar {
  padding: 18px 0;
}

.member-sidebar h2 {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 28px;
}

.member-side-link {
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--muted);
}

.member-side-link.is-active,
.member-side-link:hover {
  color: var(--brand);
  background: rgba(36, 87, 214, 0.08);
}

.member-panel-title {
  padding: 20px 24px;
  font-size: 30px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.member-form {
  max-width: 560px;
  padding: 36px 24px 30px;
  margin: 0 auto;
}

.member-form-tight {
  max-width: 540px;
}

.avatar-holder {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d6e5ff, #f0f5ff);
  color: var(--brand);
  font-size: 42px;
  font-weight: 700;
}

.member-label {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.member-actions {
  display: flex;
  gap: 14px;
  justify-content: end;
  margin-top: 26px;
}

.member-actions-inline {
  margin-top: 18px;
}

.member-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.member-tab {
  color: var(--muted);
}

.member-tab.is-active {
  color: var(--brand);
  font-weight: 700;
}

.member-course-list {
  padding: 0 24px 24px;
}

.member-course-item {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.member-course-item:last-child {
  border-bottom: 0;
}

.member-course-cover {
  min-height: 190px;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
}

.member-course-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.member-course-head h3 {
  margin: 0;
  font-size: 30px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 10px;
  background: #eff3f8;
  color: var(--muted);
}

.status-badge.is-pending {
  background: #fff1da;
  color: #b47713;
}

.status-badge.is-approved {
  background: #dff8ea;
  color: #19834b;
}

.status-badge.is-rejected {
  background: #ffe1e1;
  color: #c53d3d;
}

.member-note,
.member-reason {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.member-reason {
  color: #d53939;
}

.member-progress-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.member-progress-line .progress-bar {
  flex: 1;
  margin: 0;
}

.member-progress-meta {
  display: flex;
  gap: 28px;
  margin-top: 16px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  align-items: center;
  padding: 40px 0 28px;
}

.footer-brand img {
  width: 240px;
  max-width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.footer-hotline span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 10px;
}

.footer-hotline strong {
  font-size: 42px;
  font-weight: 700;
}

.footer-qrs {
  display: flex;
  gap: 18px;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

.footer-qr span {
  display: block;
  margin-top: 8px;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 24px;
}

.footer-copy .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.58);
}

.floating-tools {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 42;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: end;
}

.tool-card {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  color: var(--brand-deep);
  cursor: pointer;
}

.tool-qr-panel {
  width: 150px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.tool-qr-panel img {
  width: 100%;
  border-radius: 12px;
}

.tool-qr-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.empty-card {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .course-grid,
  .footer-grid,
  .detail-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .topbar-inner,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-inner {
    padding: 16px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .hero-inner,
  .hero-slide {
    min-height: 440px;
  }

  .section-head,
  .filter-row,
  .course-grid,
  .form-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
  }

  .filter-row {
    gap: 12px;
  }

  .course-body h3,
  .chapter-item h3 {
    font-size: 22px;
  }

  .modal-panel {
    padding: 24px 18px;
  }

  .auth-grid {
    justify-content: center;
  }

  .member-grid,
  .member-course-item,
  .member-label {
    grid-template-columns: 1fr;
  }

  .member-course-cover {
    min-height: 200px;
  }

  .modal-panel h2 {
    font-size: 30px;
  }
}
