:root {
  --blue: #1f4ed8;
  --blue-2: #0f766e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e7eaf1;
  --bg: #f7f8fb;
  --card: #ffffff;
  --danger: #c2410c;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1330px;
  margin: 0 auto;
  min-height: 88px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 260px 44px;
  gap: 14px;
  align-items: center;
  padding: 0 22px;
}

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

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.brand-title {
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 6px;
  color: #79808f;
  font-size: 12px;
  line-height: 1.35;
  display: block;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}

.nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 42px;
  padding: 0 11px;
  border-radius: 22px;
  font-size: 15px;
  white-space: nowrap;
}

.nav a.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 16px rgba(36, 79, 181, 0.24);
}

.search {
  display: flex;
  align-items: center;
  height: 46px;
  border: 2px solid var(--blue);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}

.search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 18px;
}

.search button {
  height: 100%;
  min-width: 86px;
  color: #fff;
  background: var(--blue);
  border: 0;
  font-weight: 700;
}

.user-dot {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  background: #fff;
}

.page {
  max-width: 1330px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}

.home-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 28px;
  align-items: stretch;
  padding-top: 22px;
  padding-bottom: 22px;
}

.identity-section {
  padding-top: 28px;
  padding-bottom: 24px;
}

.identity-head {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.identity-head h1 {
  margin: 14px 0 12px;
  font-size: 38px;
  line-height: 1.18;
  color: #0f172a;
}

.identity-head p,
.quest-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

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

.identity-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-margin-top: 120px;
}

.identity-card:nth-child(1) {
  border-top: 5px solid #f97316;
}

.identity-card:nth-child(2) {
  border-top: 5px solid #2563eb;
}

.identity-card:nth-child(3) {
  border-top: 5px solid #0f766e;
}

.identity-card:nth-child(4) {
  border-top: 5px solid #7c3aed;
}

.identity-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.identity-card-top span {
  color: #fff;
  background: #0f172a;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.identity-card-top strong {
  color: var(--blue);
  font-size: 14px;
}

.identity-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.survey-question-list {
  display: grid;
  gap: 8px;
}

.survey-question-list p {
  margin: 0;
  padding: 10px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.identity-recommend {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.identity-recommend a {
  color: #0f766e;
  font-weight: 800;
  line-height: 1.45;
}

.quest-section {
  padding-top: 18px;
  padding-bottom: 28px;
}

.quest-intro {
  max-width: 920px;
  margin: 0 auto 24px;
  text-align: center;
}

.quest-intro h2 {
  margin: 14px 0 12px;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.25;
}

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

.quest-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}

.quest-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--blue);
}

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

.quest-step {
  position: relative;
  min-height: 174px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
}

.quest-step span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.quest-step strong {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.quest-step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.quest-step em {
  display: block;
  margin-top: 10px;
  color: #b45309;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.membership-reward {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
  line-height: 1.6;
}

.path-start-btn {
  margin-top: 14px;
  width: 100%;
}

.home-topic-board {
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 400px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: var(--shadow);
}

.home-topic-column {
  display: grid;
  gap: 16px;
}

.home-topic-line {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  min-height: 28px;
  align-items: baseline;
  color: #333;
}

.home-topic-line strong {
  font-size: 16px;
  font-weight: 500;
}

.home-topic-line span {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.home-topic-line:hover strong,
.home-topic-line:hover span {
  color: var(--blue);
}

.home-hero-visual {
  min-height: 400px;
  background: #fff center / cover no-repeat;
  box-shadow: var(--shadow);
}

.home-promos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
  padding-top: 0;
  padding-bottom: 16px;
}

.home-promo-card {
  min-height: 179px;
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: #1f2937 center / cover no-repeat;
  box-shadow: var(--shadow);
}

.home-promo-card strong {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 500;
}

.home-promo-card span {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.45;
}

.home-video-title {
  padding-top: 4px;
  padding-bottom: 0;
}

.home-video-title h1 {
  margin: 0;
  height: 55px;
  line-height: 55px;
  text-align: center;
  color: #fff;
  background: var(--blue);
  font-size: 24px;
  font-weight: 500;
}

.home-closing {
  min-height: 210px;
  margin: 28px 0 0;
  color: #fff;
  background: #294f98 center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
}

.vip-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
  padding-top: 36px;
  padding-bottom: 28px;
}

.vip-hero > div:first-child,
.vip-price-panel,
.login-panel,
.login-side {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.vip-hero > div:first-child {
  padding: 42px;
}

.vip-hero h1,
.login-panel h1 {
  margin: 14px 0 14px;
  font-size: 38px;
  line-height: 1.2;
  color: var(--blue);
}

.vip-hero p,
.login-panel p,
.vip-price-panel p,
.pricing-card p,
.login-side span {
  color: var(--muted);
  line-height: 1.8;
}

.vip-hero-actions,
.member-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.vip-price-panel {
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.vip-price-panel > span,
.pricing-card > span {
  color: var(--muted);
  font-size: 14px;
}

.vip-price-panel strong {
  font-size: 36px;
  color: #b42318;
}

.vip-section {
  padding-top: 8px;
  padding-bottom: 28px;
}

.vip-benefits div,
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
}

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

.pricing-card {
  padding: 26px;
  display: grid;
  gap: 12px;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(36, 79, 181, 0.14);
}

.pricing-card h3 {
  margin: 0;
  font-size: 22px;
}

.pricing-card strong {
  color: var(--blue);
  font-size: 30px;
}

.vip-guarantee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 22px;
  align-items: stretch;
  background: #0f172a;
  color: #fff;
  padding: 34px;
  box-shadow: var(--shadow);
}

.vip-guarantee h2 {
  margin: 14px 0 12px;
  font-size: 32px;
  line-height: 1.25;
}

.vip-guarantee p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.vip-metrics div,
.learner-path-card,
.school-track-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.vip-metrics div {
  padding: 20px;
  color: var(--ink);
}

.vip-metrics strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
  line-height: 1.15;
}

.vip-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.learner-path-card {
  padding: 20px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.learner-path-card > span {
  color: var(--blue);
  font-weight: 800;
}

.learner-path-card h3 {
  margin: 10px 0 16px;
  font-size: 18px;
  line-height: 1.45;
}

.path-course-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.path-course-list a,
.track-course-row a {
  color: #0f766e;
  line-height: 1.45;
  font-weight: 700;
}

.school-track-list {
  display: grid;
  gap: 16px;
}

.school-track-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 24px;
}

.track-level {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
}

.school-track-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.school-track-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.7;
}

.school-track-card strong {
  display: block;
  margin-bottom: 12px;
  color: #172554;
}

.track-course-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 24px;
}

.login-panel,
.login-side {
  padding: 30px;
}

.home-closing h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
}

.home-closing p {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 1.6;
}

.hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 38px 0 26px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: 34px;
  line-height: 1.28;
}

.hero-copy p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

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

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 42px;
  border-radius: 22px;
  padding: 0 18px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.secondary-btn {
  color: var(--blue);
  background: #fff;
  border-color: var(--blue);
}

.ghost-btn {
  color: #374151;
  background: #fff;
  border-color: var(--line);
}

.disabled-link,
.disabled-link:hover {
  pointer-events: none;
  opacity: .55;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-feature {
  min-height: 122px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-feature strong {
  display: block;
  font-size: 24px;
  color: var(--blue);
}

.hero-feature span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.section-title {
  margin: 22px 0 22px;
  text-align: center;
  font-size: 30px;
  line-height: 1.25;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 auto 30px;
}

.tab {
  border: 0;
  background: transparent;
  color: #111827;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 22px;
}

.tab.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 16px rgba(36, 79, 181, 0.24);
}

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

.course-card {
  background: var(--card);
  border: 1px solid #eef0f5;
  border-radius: 0;
  min-height: 386px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d8deea center / cover no-repeat;
}

.course-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 13px;
}

.course-body {
  padding: 16px 16px 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.course-title {
  min-height: 52px;
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.course-summary {
  min-height: 66px;
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.55;
  font-size: 14px;
}

.course-meta {
  margin-top: auto;
}

.price {
  color: #294f98;
  font-size: 17px;
  margin: 18px 0 12px;
}

.price .rmb {
  margin-right: 8px;
}

.message {
  color: #8b919c;
  font-size: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.workflow-intro {
  max-width: 860px;
  margin: -8px auto 28px;
  text-align: center;
  color: #fe5722;
  font-weight: 700;
  line-height: 1.8;
}

.workflow-group {
  margin: 22px 0 44px;
}

.workflow-group h2 {
  margin: 0 0 22px;
  text-align: center;
  color: var(--blue);
  font-size: 30px;
  line-height: 1.25;
}

.workflow-list {
  display: grid;
  gap: 18px;
}

.workflow-card {
  min-height: 184px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
  background: #fff;
  border: 1px solid #eef0f5;
  border-radius: 0;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.workflow-cover {
  position: relative;
  min-height: 184px;
  background: #d8deea center / cover no-repeat;
}

.workflow-kind {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 2px;
  padding: 3px 8px;
  font-size: 13px;
}

.workflow-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px 0;
}

.workflow-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.workflow-header h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
}

.workflow-header span {
  flex: none;
  color: #8b919c;
  font-size: 14px;
  line-height: 1.7;
}

.workflow-content p {
  margin: 14px 0 0;
  color: #6b7280;
  line-height: 1.75;
}

.workflow-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: #8b919c;
}

.workflow-meta strong {
  color: #294f98;
  font-size: 18px;
  font-weight: 500;
}

.workflow-meta strong span {
  margin-right: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.detail-head {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 30px;
  align-items: start;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d8deea center / cover no-repeat;
}

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.35;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
  color: #4b5563;
}

.detail-facts span {
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 4px;
}

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

.delivery-grid span {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #172554;
  font-weight: 800;
}

.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
  color: #6b7280;
  font-size: 14px;
}

.share-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  color: #4b5563;
}

.valid-tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 4px 0 14px;
  padding: 10px 12px;
  color: #614700;
  background: #fff7d6;
  border: 1px solid #f3df8b;
  border-radius: var(--radius);
}

.valid-tip button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  padding: 0;
}

.course-detail-tabs {
  margin-top: 24px;
}

.detail-tab-header {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-tab-header button {
  border: 0;
  background: transparent;
  padding: 0 0 14px;
  font-size: 16px;
  color: #374151;
}

.detail-tab-header button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.directory-sort {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.lesson-list {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.lesson-row small {
  display: block;
  margin-top: 4px;
  color: #8b919c;
}

.lesson-row.locked {
  color: #9ca3af;
  background: #fafafa;
}

.lesson-row.chapter-row {
  background: #f7f9fe;
  color: #172554;
  font-weight: 800;
  border-color: #dbe7ff;
}

.lesson-row.chapter-row .lesson-index {
  background: var(--blue);
  color: #fff;
}

.lesson-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.learn-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
}

.video-placeholder {
  min-height: 420px;
  background: linear-gradient(135deg, #111827, #1f3b7a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.detail-images {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 18px;
}

.detail-images img {
  width: min(100%, 500px);
  height: auto;
  border: 1px solid var(--line);
}

.rich-detail {
  color: var(--muted);
  line-height: 1.85;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rich-detail p {
  margin: 0 0 14px;
}

.rich-detail a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.detail-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: left;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.video-placeholder strong {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
}

.resource-access-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.resource-access-btn:disabled {
  cursor: progress;
  opacity: .68;
}

.protected-image-links {
  margin-top: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.checkout-course-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: start;
}

.checkout-cover {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  background: #d8deea center / cover no-repeat;
}

.membership-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #244fb5, #18a58f);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

.checkout-benefits {
  margin-top: 18px;
}

.checkout-course-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.35;
}

.checkout-course-card p {
  color: var(--muted);
  line-height: 1.75;
}

.checkout-facts,
.pay-order-facts {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px 14px;
  color: #555;
}

.checkout-facts dt,
.pay-order-facts dt {
  color: #999;
}

.checkout-facts dd,
.pay-order-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.checkout-total span {
  color: #777;
}

.checkout-total strong {
  color: var(--blue);
  font-size: 30px;
  font-weight: 500;
}

.checkout-pay-panel h2 {
  margin: 22px 0 14px;
}

.pay-methods {
  display: grid;
  gap: 10px;
}

.pay-method {
  min-height: 66px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.pay-method.active,
.pay-method:hover {
  border-color: var(--blue);
  background: #f7f9fe;
}

.pay-method strong {
  color: #333;
}

.pay-method span,
.checkout-note {
  color: #777;
  font-size: 13px;
}

.checkout-note {
  margin: 14px 0;
  line-height: 1.7;
}

.promotion-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.promotion-form .field {
  min-width: 0;
}

.promotion-form input,
.referral-copy-box input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}

.promotion-result {
  margin-bottom: 12px;
}

.promotion-summary {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: #555;
}

.promotion-summary div {
  border-right: 1px solid #e5eefc;
  min-width: 0;
}

.promotion-summary div:last-of-type {
  border-right: 0;
}

.promotion-summary span {
  display: block;
  color: #777;
  font-size: 12px;
}

.promotion-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.promotion-summary p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5b6b7f;
  font-size: 13px;
  line-height: 1.6;
}

.pay-result-box {
  min-height: 196px;
  border: 1px dashed #cbd5e1;
  background: #fafafa;
  padding: 18px;
}

.pay-placeholder {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  text-align: center;
}

.pay-created-card {
  display: grid;
  gap: 16px;
}

.pay-created-card h3 {
  margin: 10px 0 6px;
  color: #333;
  font-size: 20px;
}

.pay-created-card p {
  margin: 0;
  color: #777;
  line-height: 1.7;
}

.mock-qr {
  width: 132px;
  height: 132px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.mock-qr span {
  background: #eef2ff;
}

.mock-qr span.dark {
  background: #1f2937;
}

.pay-qr-image {
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  object-fit: contain;
}

.pay-no-qr {
  width: 168px;
  min-height: 132px;
  border: 1px dashed #cbd5e1;
  background: #fff;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.pay-qr-text {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #edf1f7;
  padding: 8px 10px;
}

.mock-pay-btn {
  width: 100%;
  margin-top: 14px;
}

.pay-success-card {
  min-height: 160px;
  align-content: center;
}

.admin-grid,
.member-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-group {
  margin-bottom: 72px;
}

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

.file-card {
  min-height: 102px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 18px;
  align-items: center;
  padding: 18px 22px;
}

.file-card:hover {
  box-shadow: var(--shadow);
}

.file-card-muted,
.download-card-muted {
  cursor: default;
  background: #f8fafc;
}

.file-card-muted:hover,
.download-card-muted:hover {
  box-shadow: none;
}

.file-card-muted .file-icon {
  background: #f1f5f9;
  color: #64748b;
}

.file-icon {
  grid-row: 1 / 3;
  width: 54px;
  height: 54px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.file-title {
  color: #333;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.file-size {
  color: #999;
  font-size: 12px;
}

.file-status {
  justify-self: start;
  border: 1px solid #f5c542;
  border-radius: 999px;
  color: #8a5b00;
  background: #fff7d6;
  font-size: 12px;
  line-height: 1;
  padding: 5px 8px;
}

.file-note {
  grid-column: 2;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.member-card,
.download-card,
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.teacher-list {
  display: grid;
  gap: 20px;
}

.teacher-card {
  max-width: 760px;
  min-height: 230px;
  display: grid;
  grid-template-columns: 307px 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
}

.teacher-card:hover {
  box-shadow: var(--shadow);
}

.teacher-cover {
  height: 230px;
  background: #fff center / cover no-repeat;
}

.teacher-card h2 {
  margin: 14px 0 12px;
  color: #333;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.teacher-card p {
  margin: 0;
  color: #999;
}

.member-center-page {
  max-width: 1130px;
}

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

.member-sidebar,
.member-main {
  background: #fff;
  border: 1px solid var(--line);
}

.member-sidebar {
  padding: 20px 16px 26px;
}

.member-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.member-profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.member-profile strong {
  font-size: 16px;
  font-weight: 500;
}

.vip-card-visual {
  min-height: 105px;
  margin: 12px 0 32px;
  padding: 14px 16px 0;
  color: #a2553a;
  background: #f4ddcf center / cover no-repeat;
  position: relative;
}

.vip-card-visual div {
  max-width: 158px;
}

.vip-card-visual strong,
.vip-card-visual span {
  display: block;
}

.vip-card-visual strong {
  font-size: 14px;
  font-weight: 500;
}

.vip-card-visual span {
  margin-top: 4px;
  font-size: 12px;
}

.vip-card-visual button {
  position: absolute;
  right: 16px;
  top: 21px;
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: #efcbbc;
  color: #a2553a;
  font-size: 12px;
}

.vip-card-visual > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-menu {
  display: grid;
  gap: 4px;
}

.member-menu button {
  height: 49px;
  border: 0;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  text-align: left;
}

.member-menu button.active,
.member-menu button:hover {
  background: #f5f5f5;
}

.member-menu img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.member-main {
  padding: 0 0 28px;
  overflow: hidden;
}

.member-pane {
  display: none;
}

.member-pane.active {
  display: block;
}

.member-pane-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 24px 24px 0;
}

.member-pane-head h2 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

.member-pane-head span {
  color: #999;
  font-size: 13px;
}

.member-main .course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px 0;
}

.member-main .course-card {
  min-height: 320px;
}

.member-card-list {
  padding: 24px;
  display: grid;
  gap: 18px;
}

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

.subscription-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 24px 0;
}

.subscription-summary-card {
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 16px;
}

.subscription-summary-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.subscription-summary-card p {
  margin: 4px 0;
  color: #6b7280;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.member-stat-card {
  border: 1px solid var(--line);
  background: #fbfdff;
  padding: 16px;
}

.member-stat-card span {
  display: block;
  color: #888;
  font-size: 13px;
}

.member-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #333;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.member-card-large {
  width: min(100%, 420px);
  min-height: 150px;
  margin: 0;
}

.member-card-large div {
  max-width: 240px;
}

.member-card-large strong {
  font-size: 18px;
}

.member-card-large span {
  font-size: 13px;
}

.member-info-panel,
.member-empty-box {
  margin: 24px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 24px;
  color: #555;
}

.member-info-panel h2 {
  margin: 0 0 18px;
  color: #333;
  font-size: 20px;
  font-weight: 500;
}

.member-info-panel p {
  margin: 0;
  color: #777;
  line-height: 1.8;
}

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

.member-benefit-grid div {
  border: 1px solid #edf1f7;
  background: #fafcff;
  padding: 14px;
}

.member-benefit-grid strong,
.member-benefit-grid span {
  display: block;
}

.member-referral-panel .member-empty-box {
  margin: 0;
}

.referral-copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 16px 0;
}

.member-benefit-grid strong {
  color: #333;
  font-weight: 500;
  line-height: 1.45;
}

.member-benefit-grid span {
  margin-top: 6px;
  color: #777;
  font-size: 13px;
  line-height: 1.7;
}

.member-info-list {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 20px;
}

.member-info-list dt {
  color: #999;
}

.member-info-list dd {
  margin: 0;
  color: #333;
  overflow-wrap: anywhere;
}

.member-profile-form {
  max-width: 520px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.member-settings-list {
  margin-top: 4px;
}

.member-balance-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 500;
}

.member-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.member-sub-table {
  margin-top: 18px;
}

.member-plus {
  color: #047857 !important;
}

.member-minus {
  color: #b45309 !important;
}

.member-table-wrap {
  overflow-x: auto;
}

.member-order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13px;
}

.member-order-table th,
.member-order-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
}

.member-order-table th {
  color: #777;
  background: #fff;
  font-weight: 400;
}

.member-order-table td {
  color: #555;
}

.member-order-table td:first-child {
  min-width: 240px;
}

.member-order-table td strong,
.member-order-table td span {
  display: block;
}

.member-order-table td strong {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.member-order-table td > span:not(.status-pill) {
  margin-top: 6px;
  color: #555;
}

.empty-cell {
  height: 120px;
  text-align: center !important;
  color: #999 !important;
}

.metric-card strong {
  display: block;
  color: var(--blue);
  font-size: 28px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  padding: 0 16px;
  font-weight: 700;
}

.admin-tabs button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
}

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

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

.json-editor {
  width: 100%;
  min-height: 620px;
  border: 1px solid #d8deea;
  border-radius: 4px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.resource-json-editor {
  min-height: 360px;
  margin-top: 14px;
}

.resource-gap-grid {
  margin-top: 16px;
}

.patch-impact-grid {
  margin: 0 0 12px;
}

.export-workbook-panel {
  margin-top: 18px;
}

.export-workbook-table {
  margin-top: 16px;
}

.export-workbook-table td {
  vertical-align: top;
}

.launch-todo-panel {
  margin-top: 18px;
}

.launch-packet-panel {
  margin-top: 18px;
}

.launch-env-panel {
  margin-top: 18px;
}

.launch-inputs-panel {
  margin-top: 18px;
}

.admin-launch-env-form {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(260px, 1.4fr) minmax(160px, .8fr) auto;
  gap: 14px;
  align-items: end;
}

.launch-env-editor {
  min-height: 260px;
  margin-top: 14px;
}

.data-backup-panel {
  margin-top: 18px;
}

.data-backup-table {
  margin-top: 16px;
}

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

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

.launch-readiness-card {
  border: 1px solid #dbe7ff;
  border-radius: var(--radius);
  padding: 16px;
  background: #f7f9fe;
}

.launch-readiness-card.is-ready {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.launch-readiness-card.is-waiting {
  border-color: #fde68a;
  background: #fffbeb;
}

.launch-readiness-card span {
  display: block;
  color: #6b7280;
  font-size: 13px;
}

.launch-readiness-card strong {
  display: block;
  margin-top: 8px;
  color: #1f2937;
  font-size: 20px;
}

.launch-task-groups {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.delivery-snapshot-panel .launch-external-inputs {
  margin-top: 18px;
}

.delivery-snapshot-table {
  margin-top: 16px;
}

.launch-input-groups {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.launch-task-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.launch-input-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.launch-task-group h3 {
  margin: 0 0 12px;
}

.launch-input-group h3 {
  margin: 0 0 12px;
}

.launch-external-inputs {
  margin-top: 16px;
}

.launch-task-list {
  display: grid;
  gap: 12px;
}

.launch-input-list {
  display: grid;
  gap: 12px;
}

.launch-task-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  padding: 12px;
}

.launch-input-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  padding: 12px;
}

.launch-task-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.launch-task-card p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.6;
}

.launch-input-card p {
  margin: 8px 0 0;
  color: #4b5563;
  line-height: 1.6;
}

.launch-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.launch-task-meta span {
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  padding: 4px 8px;
  font-size: 12px;
}

.launch-blockers {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #92400e;
  line-height: 1.6;
}

.launch-input-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.launch-input-detail {
  border: 1px solid #dbe7ff;
  border-radius: 6px;
  background: #fff;
  padding: 10px;
}

.launch-input-detail strong {
  display: block;
  color: #1f2937;
  font-size: 13px;
  margin-bottom: 6px;
}

.launch-input-detail p,
.launch-input-detail ul {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.6;
}

.launch-input-detail ul {
  padding-left: 16px;
}

.launch-field-list {
  margin-top: 12px;
}

.admin-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.admin-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .8fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-upload-result {
  margin-top: 14px;
  color: #6b7280;
  overflow-wrap: anywhere;
}

.admin-upload-card {
  border: 1px solid #d8deea;
  background: #f9fafb;
  padding: 12px;
}

.admin-upload-card strong,
.admin-upload-card span {
  display: block;
}

.admin-upload-card span {
  margin-top: 6px;
  color: #374151;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 14px;
}

.admin-result-box {
  min-height: 130px;
  max-height: 360px;
  overflow: auto;
  margin: 14px 0 0;
  border: 1px solid #d8deea;
  background: #f9fafb;
  color: #374151;
  padding: 12px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-result-box .metric-card {
  background: #fff;
}

.admin-result-box pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

.compact-result-box {
  min-height: 52px;
  max-height: 220px;
}

.admin-note,
.panel-tip {
  color: var(--muted);
  line-height: 1.7;
}

.panel-tip {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #dbe7ff;
  background: #f7f9fe;
  border-radius: var(--radius);
}

.admin-table small {
  color: #8b919c;
  overflow-wrap: anywhere;
}

.admin-course-title {
  min-width: 260px;
}

.admin-actions {
  min-width: 260px;
}

.admin-actions .ghost-btn {
  min-height: 34px;
  margin: 2px 4px 2px 0;
  padding: 0 12px;
  font-size: 13px;
}

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

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

.admin-check-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.admin-check-card h3 {
  margin: 0 0 10px;
}

.admin-check-card p {
  margin: 10px 0 0;
}

.admin-env-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}

.admin-env-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 4px;
  color: #4b5563;
  font-size: 13px;
}

.admin-env-list li span {
  overflow-wrap: anywhere;
}

.admin-env-list li.ok strong {
  color: #047857;
}

.admin-env-list li.missing strong {
  color: #b45309;
}

.status-ok {
  color: #047857;
  background: #dff7eb;
}

.status-warning {
  color: #b45309;
  background: #fff3cd;
}

.status-info {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-danger {
  color: #b91c1c;
  background: #fee2e2;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  color: #6b7280;
  text-align: center;
  padding: 28px 20px 34px;
}

.floating {
  position: fixed;
  right: 20px;
  top: 294px;
  z-index: 18;
  width: 72px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.floating a,
.floating button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}

.floating a:last-child,
.floating button:last-child {
  border-bottom: 0;
}

.float-icon {
  font-size: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 40;
  background: #111827;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #4b5563;
  background: #f9fafb;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    padding: 14px 18px;
    gap: 14px;
    overflow: hidden;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 10px;
    max-width: 100%;
  }

  .search {
    max-width: 460px;
  }

  .user-dot {
    position: absolute;
    right: 18px;
    top: 20px;
  }

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

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

  .quest-board {
    grid-template-columns: 1fr;
  }

  .vip-guarantee {
    grid-template-columns: 1fr;
  }

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

  .workflow-card {
    grid-template-columns: 230px 1fr;
  }

  .home-hero {
    grid-template-columns: 300px 1fr;
  }

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

  .floating {
    display: none;
  }

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

@media (max-width: 820px) {
  .page {
    padding: 24px 14px 56px;
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .home-hero,
  .hero,
  .vip-guarantee,
  .vip-hero,
  .two-column,
  .checkout-layout,
  .checkout-course-card,
  .detail-head,
  .learn-layout,
  .member-center-layout,
  .teacher-card {
    grid-template-columns: 1fr;
  }

  .home-topic-board {
    min-height: auto;
  }

  .home-hero-visual {
    min-height: 240px;
  }

  .home-promos,
  .file-grid,
  .learner-path-grid,
  .vip-metrics,
  .pricing-grid,
  .delivery-grid,
  .identity-grid,
  .quest-board,
  .quest-steps {
    grid-template-columns: 1fr;
  }

  .identity-head h1 {
    font-size: 30px;
  }

  .quest-intro h2 {
    font-size: 28px;
  }

  .identity-card,
  .quest-card {
    padding: 18px;
  }

  .school-track-card {
    grid-template-columns: 1fr;
  }

  .vip-price-panel {
    width: 100%;
  }

  .track-level {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  .home-promo-card {
    min-height: 142px;
  }

  .home-promo-card strong {
    font-size: 24px;
  }

  .home-promo-card span,
  .home-closing p {
    font-size: 18px;
  }

  .home-closing h2 {
    font-size: 26px;
  }

  .teacher-cover {
    height: 210px;
  }

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

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-panel,
  .admin-grid,
  .admin-form-grid,
  .admin-check-grid,
  .payment-checks,
  .launch-readiness-grid,
  .member-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 25px;
  }

  .course-title {
    font-size: 15px;
  }

  .course-body {
    padding: 13px;
  }

  .workflow-card {
    grid-template-columns: 1fr;
  }

  .workflow-cover {
    aspect-ratio: 1.55 / 1;
    min-height: auto;
  }

  .workflow-content {
    padding: 16px;
  }

  .workflow-header {
    display: block;
  }

  .workflow-header span {
    display: block;
    margin-top: 6px;
  }

  .checkout-total strong {
    font-size: 26px;
  }

  .promotion-form,
  .promotion-summary,
  .referral-copy-box {
    grid-template-columns: 1fr;
  }

  .promotion-summary div {
    border-right: 0;
    border-bottom: 1px solid #e5eefc;
    padding-bottom: 8px;
  }

  .promotion-summary div:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .pay-result-box {
    padding: 14px;
  }

  .mock-qr {
    width: 120px;
    height: 120px;
  }

  .member-pane-head {
    display: block;
    padding: 20px 16px 0;
  }

  .member-pane-head span {
    display: block;
    margin-top: 8px;
  }

  .member-main .course-grid {
    grid-template-columns: 1fr;
    padding: 18px 16px 0;
  }

  .member-card-list,
  .member-info-panel,
  .member-empty-box {
    margin: 16px;
    padding: 18px;
  }

  .member-card-list {
    display: grid;
  }

  .member-info-list {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-shell {
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: hidden;
  }

  .admin-top,
  .admin-panel-head {
    display: block;
  }

  .admin-top .secondary-btn,
  .admin-panel-head .secondary-btn {
    margin-top: 12px;
  }

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

  .admin-launch-env-form {
    grid-template-columns: 1fr;
  }

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

  .admin-table {
    table-layout: fixed;
  }

  .admin-table th,
  .admin-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admin-course-title,
  .admin-actions {
    min-width: 0;
  }

  .admin-actions .ghost-btn {
    width: 100%;
    margin-right: 0;
  }

  .admin-env-list li {
    display: grid;
    gap: 4px;
  }
}

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

  .nav a {
    min-width: auto;
  }

  .search {
    width: 100%;
  }

  .lesson-row {
    grid-template-columns: 28px 1fr;
  }

  .lesson-row .ghost-btn {
    grid-column: 1 / -1;
  }
}
