* {
  box-sizing: border-box;
}

:root {
  --page-max: none;
  --page-gutter: clamp(20px, 3.2vw, 64px);
  --section-gap: clamp(48px, 5vw, 86px);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: #f6f8fb;
  color: #111827;
}

body.modal-open {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(14px);
}

.header-inner {
  width: 100%;
  padding-inline: var(--page-gutter);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}

.brand strong,
.site-footer strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-start;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #344054;
  font-size: 15px;
}

.site-nav a.active,
.site-nav a:hover {
  background: #e8f3f1;
  color: #0f766e;
}

.header-actions,
.hero-actions,
.button-row,
.redeem-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-actions {
  margin-left: auto;
  position: relative;
}

.user-entry {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.user-avatar {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0f766e;
  font-weight: 900;
}

.user-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img,
.user-dropdown-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-menu-wrap {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 240px;
  display: none;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.user-dropdown.active {
  display: block;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.user-dropdown-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eaecf0;
}

.user-dropdown-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  font-weight: 900;
  min-height: 42px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 0;
}

.user-dropdown-head strong {
  display: block;
  color: #111827;
  cursor: pointer;
}

.user-dropdown-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
}

.user-dropdown > button {
  width: 100%;
  justify-content: flex-start;
  min-height: 40px;
  padding: 9px 10px;
  background: transparent;
  color: #344054;
  font-weight: 700;
}

.user-dropdown > button:hover {
  background: #e8f3f1;
  color: #0f766e;
}

button,
.button {
  border: 0;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

button:hover,
.button:hover {
  filter: brightness(0.96);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary,
.button.secondary {
  background: #1f2937;
}

button.ghost {
  color: #344054;
  background: #f2f4f7;
}

main {
  min-height: 70vh;
}

.poster-carousel {
  width: 100%;
  margin: 0;
  position: relative;
}

.poster-track {
  min-height: clamp(420px, 32vw, 560px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #101828;
  box-shadow: none;
}

.poster-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: clamp(36px, 4vw, 72px);
  align-items: center;
  padding: clamp(52px, 5vw, 88px) var(--page-gutter);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.22) 100%),
    url("../assets/hero-public-growth.png") center / cover no-repeat,
    #101828;
}

.poster-slide > div:first-child {
  position: relative;
  z-index: 2;
}

.poster-slide .hero-actions {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.poster-slide .hero-actions button,
.poster-slide .hero-actions .button {
  min-width: 136px;
  white-space: nowrap;
}

.poster-slide:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(49, 46, 129, 0.72) 44%, rgba(124, 58, 237, 0.18) 100%),
    url("../assets/hero-live-conversion.png") center / cover no-repeat,
    #101828;
}

.poster-slide:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(6, 78, 59, 0.72) 44%, rgba(15, 118, 110, 0.18) 100%),
    url("../assets/hero-community-retention.png") center / cover no-repeat,
    #101828;
}

.poster-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-slide .eyebrow {
  color: #d1fae5;
}

.poster-slide h1 {
  margin: 12px 0 18px;
  max-width: 920px;
  font-size: clamp(42px, 3.4vw, 64px);
  line-height: 1.12;
}

.poster-slide p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.poster-visual {
  display: none;
  position: relative;
  min-height: clamp(280px, 22vw, 390px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.poster-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.poster-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.64));
}

.poster-visual span {
  position: relative;
  z-index: 1;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 800;
}

.poster-visual strong {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 2.2vw, 44px);
  line-height: 1.25;
}

.poster-visual small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.poster-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.poster-dot {
  width: 44px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.poster-dot::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.poster-dot.active::before {
  background: #fff;
}

.hero {
  width: 100%;
  min-height: 360px;
  margin: 8px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: clamp(44px, 5vw, 86px);
  align-items: center;
  padding: clamp(52px, 5vw, 82px) var(--page-gutter) clamp(42px, 4vw, 72px);
}

.hero-content h2 {
  margin: 12px 0 18px;
  font-size: clamp(40px, 2.8vw, 56px);
  line-height: 1.08;
  max-width: 760px;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 660px;
  color: #475467;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: #0f766e;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(37, 99, 235, 0.08)),
    #fff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-panel div {
  min-height: 138px;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-panel span {
  color: #667085;
  line-height: 1.7;
}

.search-band {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.search-inner {
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px auto auto auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 42px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
button:focus,
.button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
}

.section {
  width: 100%;
  margin: 0 auto;
  padding: var(--section-gap) var(--page-gutter);
}

#home > .section:nth-of-type(odd) {
  background: #fff;
}

#home > .section:nth-of-type(even) {
  background: #f6f8fb;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.25;
}

.feature-grid,
.process-grid,
.category-grid,
.home-course-grid,
.journey-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
}

.feature-card,
.detail-panel,
.process-grid article,
.journey-grid article,
.list-panel,
.category-grid article,
.home-course-grid article,
.schedule-card,
.mentor-card,
.ops-band,
.trust-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.feature-card h3,
.detail-panel h3,
.process-grid h3,
.home-course-grid h3,
.schedule-card h3,
.mentor-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.compact-section {
  padding-top: 24px;
}

.split-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  color: #0f766e;
  font-weight: 800;
}

.category-grid article {
  min-height: 150px;
}

.category-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.journey-grid article strong,
.trust-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.trust-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3f1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

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

.home-course-grid article {
  min-height: 210px;
}

.home-course-grid strong {
  color: #0f766e;
  font-size: 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.5vw, 26px);
  margin-bottom: 22px;
}

.course-card {
  display: grid;
  grid-template-rows: 156px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.course-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.course-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.course-cover::before,
.course-cover::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.course-cover::before {
  width: 130px;
  height: 130px;
  top: -42px;
  right: -24px;
}

.course-cover::after {
  width: 82px;
  height: 82px;
  left: -18px;
  bottom: -20px;
}

.course-cover span,
.course-cover strong {
  position: relative;
  z-index: 1;
}

.course-cover span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.course-cover strong {
  font-size: 26px;
  line-height: 1.2;
}

.course-cover.warm {
  background: linear-gradient(135deg, #c2410c, #7c3aed);
}

.course-cover.emerald {
  background: linear-gradient(135deg, #047857, #0f766e 48%, #2563eb);
}

.course-cover.blue {
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
}

.course-cover.violet {
  background: linear-gradient(135deg, #6d28d9, #be185d);
}

.course-cover.slate {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.course-cover.orange {
  background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.course-cover.cyan {
  background: linear-gradient(135deg, #0e7490, #2563eb);
}

.course-card > div:last-child {
  padding: 18px;
}

.course-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.course-card p,
.mini-item p,
.detail-panel p,
.process-grid p,
.site-footer p {
  color: #667085;
  line-height: 1.7;
}

.course-card strong,
.price {
  display: inline-block;
  margin-top: 8px;
  color: #0f766e;
  font-size: 20px;
}

.course-card .course-cover strong {
  display: block;
  margin-top: 0;
  color: #fff;
  font-size: 26px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f3f1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 700;
}

.mini-item {
  padding: 12px 0;
  border-top: 1px solid #eaecf0;
}

.mini-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.mini-item strong,
.mini-item span {
  display: block;
  margin-bottom: 6px;
}

.clickable {
  cursor: pointer;
}

.clickable:hover strong {
  color: #0f766e;
}

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

.teacher-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  gap: clamp(18px, 1.5vw, 26px);
}

.schedule-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-card li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #eaecf0;
}

.schedule-card li:first-child {
  border-top: 0;
}

.schedule-card li strong {
  color: #0f766e;
}

.schedule-card li span,
.mentor-card p {
  color: #667085;
  line-height: 1.7;
}

.mentor-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
}

.teacher-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  margin-top: 24px;
}

.teacher-showcase .mentor-card {
  display: block;
  min-height: 230px;
}

.mentor-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.mentor-avatar.tone-1 {
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.mentor-avatar.tone-2 {
  background: linear-gradient(135deg, #7c3aed, #db2777);
}

.mentor-avatar.tone-3 {
  background: linear-gradient(135deg, #0f172a, #64748b);
}

.mentor-avatar.tone-4 {
  background: linear-gradient(135deg, #c2410c, #f59e0b);
}

.avatar-shape {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #101828;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.ops-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  background: #101828;
  color: #fff;
}

.ops-band h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.3;
}

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

.ops-grid span {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.process-grid article span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-weight: 800;
}

.chapter-block {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #eaecf0;
}

.chapter-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #475467;
  line-height: 1.8;
}

.redeem-box {
  margin-top: 16px;
}

.redeem-box input {
  max-width: 220px;
}

.muted {
  color: #667085;
}

.error-text {
  color: #b42318;
}

.view {
  display: none;
}

.view.active {
  display: grid;
}

.section.view.active {
  display: block;
}

.profile-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(16px, 1.4vw, 24px);
  align-items: start;
}

.profile-side-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #172033;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.profile-side-nav button {
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  background: transparent !important;
  color: #c8d1e1 !important;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: none;
}

.profile-side-nav button.active,
.profile-side-nav button:hover {
  background: #2563eb !important;
  color: #fff !important;
  filter: none;
}

.profile-side-nav button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.profile-content {
  min-width: 0;
}

.profile-guest-card {
  padding: 32px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.profile-tab-panel {
  display: none;
  min-height: 420px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

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

.profile-panel-head {
  margin-bottom: 18px;
}

.profile-panel-head.compact {
  margin-bottom: 12px;
}

.profile-panel-head h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.profile-panel-head h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.profile-panel-head p {
  margin: 0;
  color: #667085;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  margin-bottom: 24px;
}

.profile-stats article {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.profile-stats span {
  display: block;
  margin-bottom: 8px;
  color: #0f766e;
  font-size: 34px;
  font-weight: 900;
}

.profile-stats strong {
  color: #475467;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 1.4vw, 24px);
}

.profile-action-card {
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%);
}

.profile-mini {
  padding: 12px 0;
  border-top: 1px solid #eaecf0;
}

.profile-mini.featured {
  padding: 16px;
  border: 1px solid #d0e7e3;
  border-radius: 14px;
  background: #f0fdfa;
}

.profile-mini:first-child {
  border-top: 0;
  padding-top: 0;
}

.profile-mini strong {
  display: block;
  margin-bottom: 6px;
}

.profile-mini p {
  margin: 0 0 10px;
  color: #667085;
  line-height: 1.6;
}

.profile-mini button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.profile-mini.unread strong::after {
  content: "未读";
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fee4e2;
  color: #b42318;
  font-size: 12px;
}

.profile-progress {
  height: 8px;
  margin: 4px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.profile-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
}

.profile-todo-list {
  display: grid;
  gap: 10px;
}

.profile-todo-list button {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff !important;
  color: #101828 !important;
  text-align: left;
  box-shadow: none;
}

.profile-todo-list button:hover {
  border-color: #99d6ce;
  background: #f0fdfa !important;
  filter: none;
}

.profile-todo-list span {
  color: #667085;
  font-weight: 700;
}

.profile-todo-list strong {
  min-width: 0;
  overflow: hidden;
  color: #101828;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.invite-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}

.invite-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.invite-metrics-grid article {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.invite-metrics-grid span {
  display: block;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 26px;
  font-weight: 900;
}

.invite-metrics-grid strong {
  color: #475467;
}

.invite-share-card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.invite-code {
  color: #2563eb !important;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.invite-qr {
  width: 132px;
  height: 132px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.invite-poster-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #d0d5dd;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}

.invite-poster-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.invite-poster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-poster-overlay {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(280px, calc(100% - 48px));
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.invite-poster-overlay span,
.invite-poster-overlay p {
  margin: 0;
  color: #475467;
}

.invite-poster-overlay strong {
  color: #101828;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.invite-poster-overlay img {
  width: 128px;
  height: 128px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.invite-poster-overlay button {
  width: max-content;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
}

.invite-performance-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.invite-withdraw-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 18px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.invite-withdraw-card strong {
  display: block;
  margin-bottom: 6px;
  color: #101828;
  font-size: 18px;
}

.invite-withdraw-card p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.invite-withdraw-card button {
  flex: 0 0 auto;
}

.invite-withdraw-card button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.2);
}

.invite-order-list {
  display: grid;
  gap: 10px;
}

.invite-withdrawal-list {
  display: grid;
  gap: 10px;
}

.invite-order-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.invite-withdrawal-row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 0.7fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
}

.invite-order-row span,
.invite-withdrawal-row span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 12px;
}

.invite-order-row strong,
.invite-withdrawal-row strong {
  color: #101828;
}

.invite-withdrawal-row em {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-style: normal;
  font-weight: 800;
}

.break-text {
  word-break: break-all;
}

.site-footer {
  margin-top: 42px;
  background: #101828;
  color: #fff;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: 48px var(--page-gutter);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 2px 0;
  padding: 4px 0;
  color: #d0d5dd;
}

.site-footer p {
  margin: 8px 0;
  color: #d0d5dd;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-modal.active {
  display: flex;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  width: min(1080px, 100%);
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(390px, 0.98fr) minmax(430px, 1.02fr);
  overflow: hidden;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.auth-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 58px 52px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.28), transparent 30%),
    linear-gradient(145deg, #071c38 0%, #082746 58%, #0b1f3b 100%);
}

.auth-copy .eyebrow {
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-weight: 800;
}

.auth-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.auth-copy p {
  margin: 0;
  max-width: 460px;
  color: rgba(219, 234, 254, 0.88);
  font-size: 16px;
  line-height: 1.8;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.auth-benefits span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
}

.auth-panel {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: #f2f4f7;
}

.auth-tabs button {
  background: transparent;
  color: #475467;
  min-height: 46px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: none;
}

.auth-tabs button.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.auth-form {
  display: none;
  gap: 18px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #1d2939;
  font-size: 15px;
  font-weight: 800;
}

.agreement-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 500;
}

.agreement-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: #0f766e;
}

.auth-form input {
  min-height: 48px;
  border-color: #cdd5df;
  border-radius: 12px;
  font-size: 16px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.field-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #98a2b3;
  transform: translateY(-50%);
}

.field-toggle:hover {
  background: #f2f4f7;
}

.field-toggle.is-visible {
  color: #2563eb;
  background: #eff6ff;
}

.eye-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.eye-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-visible {
  display: none;
}

.field-toggle.is-visible .eye-visible {
  display: inline-flex;
}

.field-toggle.is-visible .eye-hidden {
  display: none;
}

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.link-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
}

.link-button:hover {
  text-decoration: underline;
}

.auth-form > button {
  margin-top: 6px;
  min-height: 48px;
  border-radius: 12px;
  background: #2563eb;
  font-size: 17px;
  font-weight: 800;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.auth-tip,
.legal-note,
.auth-status {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.legal-note {
  font-size: 12px;
}

.auth-status {
  min-height: 24px;
  margin-top: 18px;
  color: #2563eb;
  font-weight: 700;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.info-modal.active {
  display: flex;
}

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.info-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.info-dialog h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.info-dialog p {
  margin: 0;
  color: #475467;
  line-height: 1.8;
}

#infoContent {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
}

.legal-document {
  color: #344054;
  line-height: 1.8;
}

.legal-document h3 {
  margin: 28px 0 10px;
  color: #101828;
  font-size: 19px;
}

.legal-document h4 {
  margin: 20px 0 8px;
  color: #1d2939;
  font-size: 16px;
}

.legal-document p {
  margin: 10px 0;
}

.legal-document ol,
.legal-document ul {
  margin: 10px 0;
  padding-left: 24px;
}

.legal-document li {
  margin: 7px 0;
}

.legal-meta {
  display: grid;
  gap: 5px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f8fbff;
  color: #475467;
}

.legal-meta strong {
  color: #101828;
  font-size: 17px;
}

.legal-emphasis {
  padding: 14px 16px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d2939 !important;
  font-weight: 700;
}

.contact-document {
  display: grid;
  gap: 22px;
  color: #344054;
}

.contact-intro {
  padding: 22px;
  border: 1px solid #dbe7ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #f0fdfa 100%);
}

.contact-kicker,
.contact-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.contact-intro h3,
.contact-channel-panel h4 {
  margin: 0 0 10px;
  color: #101828;
}

.contact-intro h3 {
  font-size: 22px;
}

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

.contact-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
}

.contact-card-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.contact-card h4 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #101828;
  font-size: 17px;
  line-height: 1.4;
}

.contact-card p {
  min-height: 96px;
}

.contact-card strong {
  margin-top: 16px;
  color: #1d2939;
  font-size: 14px;
}

.contact-card ul {
  flex: 1;
  margin: 8px 0 16px;
  padding-left: 20px;
  color: #475467;
  line-height: 1.7;
}

.contact-card li {
  margin: 4px 0;
}

.contact-card small {
  padding-top: 12px;
  border-top: 1px solid #eaecf0;
  color: #667085;
  line-height: 1.6;
}

.contact-channel-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 22px;
  padding: 20px;
  border-radius: 16px;
  background: #101828;
}

.contact-channel-panel h4 {
  color: #fff;
  font-size: 19px;
}

.contact-channel-panel p {
  color: #d0d5dd;
}

.contact-company {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-company span {
  color: #98a2b3;
  font-size: 12px;
}

.contact-company strong {
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.6;
}

.contact-dispute-note {
  padding: 14px 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
}

.contact-dispute-note a {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #344054;
  font-size: 22px;
}

@media (min-width: 1440px) {
  .feature-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .footer-inner {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
  }

  .course-card {
    grid-template-rows: 178px 1fr;
  }
}

@media (min-width: 1680px) {
  :root {
    --page-gutter: 80px;
  }

  .feature-card,
  .detail-panel,
  .process-grid article,
  .list-panel,
  .category-grid article,
  .home-course-grid article,
  .schedule-card,
  .mentor-card,
  .ops-band {
    padding: 26px;
  }

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

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

  .section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px var(--page-gutter);
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .poster-slide {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .search-inner {
    grid-template-columns: 1fr 160px auto;
  }

  .feature-grid,
  .process-grid,
  .course-grid,
  .category-grid,
  .home-course-grid,
  .teacher-showcase,
  .teacher-live-grid,
  .profile-stats,
  .profile-action-grid,
  .ops-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  :root {
    --page-gutter: 18px;
  }

  .header-inner,
  .hero,
  .search-inner,
  .section,
  .footer-inner {
    width: 100%;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
  }

  .header-actions button {
    flex: 0 0 auto;
  }

  .hero {
    margin-top: 18px;
    padding: 36px 0;
  }

  .hero-content h2 {
    font-size: 36px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-panel,
  .feature-grid,
  .process-grid,
  .course-grid,
  .category-grid,
  .home-course-grid,
  .teacher-showcase,
  .teacher-live-grid,
  .ops-band,
  .ops-grid,
  .two-column,
  .search-inner {
    grid-template-columns: 1fr;
  }

  .poster-carousel {
    width: 100%;
    margin-top: 0;
  }

  .poster-track {
    min-height: 620px;
  }

  .poster-slide {
    padding: 30px 24px 76px;
  }

  .poster-slide h1 {
    font-size: 34px;
  }

  .poster-slide p {
    font-size: 16px;
  }

  .poster-controls {
    left: 24px;
    bottom: 24px;
  }

  .poster-visual {
    min-height: 220px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .site-nav a {
    white-space: nowrap;
  }

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

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

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

  .profile-side-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .profile-side-nav button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .profile-tab-panel {
    padding: 18px;
  }

  .profile-todo-list button {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .invite-share-grid {
    grid-template-columns: 1fr;
  }

  .invite-metrics-grid {
    grid-template-columns: 1fr;
  }

  .invite-poster-list {
    grid-template-columns: 1fr;
  }

  .invite-order-row {
    grid-template-columns: 1fr;
  }

  .invite-withdraw-card {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-withdraw-card button {
    width: 100%;
  }

  .invite-withdrawal-row {
    grid-template-columns: 1fr;
  }

  .invite-poster-card {
    min-height: 420px;
  }

  .invite-poster-overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .auth-modal {
    padding: 14px;
  }

  .auth-dialog {
    width: min(520px, 100%);
    max-height: calc(100vh - 32px);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .auth-copy {
    min-height: 220px;
    padding: 34px 26px 28px;
  }

  .auth-copy h2 {
    font-size: 30px;
  }

  .auth-panel {
    padding: 30px 24px;
  }

  .auth-close {
    top: 14px;
    right: 14px;
    background: #2563eb;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .info-modal {
    padding: 12px;
  }

  .info-dialog {
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }

  .info-dialog h2 {
    padding-right: 42px;
    font-size: 22px;
  }

  #infoContent {
    padding-right: 6px;
  }

  .contact-grid,
  .contact-channel-panel {
    grid-template-columns: 1fr;
  }

  .contact-card h4,
  .contact-card p {
    min-height: 0;
  }
}
