.learn-home-page {
  padding: 44px 0 48px;
}

.learn-home-shell {
  display: grid;
  gap: 18px;
}

.learn-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}

.learn-home-identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 18px;
}

.learn-home-avatar {
  box-sizing: border-box;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
  font-size: 1.7rem;
  font-weight: 850;
}

.learn-home-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-home-avatar img[hidden],
.learn-home-avatar span[hidden] {
  display: none;
}

.learn-home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  white-space: pre-line;
  word-break: keep-all;
}

.learn-home-hero p {
  max-width: 390px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.learn-home-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.learn-home-panel > span {
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 780;
}

.learn-home-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 650;
}

.learn-home-status[hidden] {
  display: none !important;
}

.learn-home-status.is-success {
  border-color: #a7e0c1;
  background: #effcf4;
  color: #17653c;
}

.learn-home-status.is-error {
  border-color: #ffc3b7;
  background: #fff3f0;
  color: #9a3412;
}

.learn-home-motivation {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: calc(var(--radius) - 2px);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.learn-home-motivation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.learn-home-motivation-head span,
.learn-home-motivation-metrics span,
.learn-home-motivation-missions span {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 780;
}

.learn-home-motivation-head h2 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.22;
}

.learn-home-motivation-head .button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.learn-home-motivation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 8px;
}

.learn-home-motivation-metrics div {
  display: flex;
  min-height: 42px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  background: #fbfcfd;
}

.learn-home-motivation-metrics strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.learn-home-motivation-stats,
.learn-home-motivation-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.learn-home-motivation-fallback[hidden] {
  display: none !important;
}

.learn-home-motivation-missions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-home-motivation-missions li {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  background: #ffffff;
}

.learn-home-motivation-missions strong {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.2;
  word-break: break-word;
}

.learn-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.learn-home-panel {
  min-height: 158px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.learn-home-panel h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
  line-height: 1.22;
  text-wrap: balance;
}

.learn-home-panel p {
  max-width: 27em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.learn-home-panel .button {
  width: fit-content;
  margin-top: auto;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.learn-home-panel.is-locked,
.learn-home-panel.is-soon {
  background: #fbfcfd;
  box-shadow: none;
}

.learn-home-panel.is-locked h2,
.learn-home-panel.is-soon h2 {
  color: var(--ink-soft);
}

.learn-home-panel-status {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.learn-home-lock-icon {
  position: relative;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.learn-home-lock-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -10px;
  width: 8px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.learn-home-path {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 91, 20, 0.16);
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 126, 45, 0.1), transparent 34%),
    linear-gradient(135deg, #fffdfb 0%, #ffffff 56%, #fff9f4 100%);
  box-shadow: 0 10px 24px rgba(111, 54, 17, 0.045);
}

.learn-home-path summary {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

.learn-home-path summary::-webkit-details-marker {
  display: none;
}

.learn-home-path summary::after {
  content: "展开";
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.learn-home-path[open] summary::after {
  content: "收起";
}

.learn-home-path-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 24px 0;
}

.learn-home-path-head span {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.learn-home-path-head h2 {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.learn-home-path-head > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: right;
}

.learn-home-path ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0 24px 24px;
  list-style: none;
}

.learn-home-path ol::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: calc(25% - 22px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0 12%, rgba(222, 91, 20, 0.2) 12% 100%);
}

.learn-home-path li {
  position: relative;
  display: grid;
  grid-template-rows: 44px auto;
  gap: 12px;
  min-width: 0;
  padding-right: 20px;
}

.learn-home-path li > span {
  z-index: 1;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(222, 91, 20, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px #fffaf6;
}

.learn-home-path li.is-current > span {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 6px #fff0e4, 0 8px 18px rgba(222, 91, 20, 0.22);
}

.learn-home-path li div {
  display: grid;
  gap: 4px;
}

.learn-home-path li small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.learn-home-path li.is-current small {
  color: var(--primary-dark);
}

.learn-home-path li strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.learn-home-path li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .learn-home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    gap: 36px;
  }

  .learn-home-grid {
    grid-template-columns: 1fr;
  }

  .learn-home-path-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .learn-home-path-head > p {
    max-width: none;
    text-align: left;
  }

  .learn-home-panel {
    min-height: auto;
  }

  .learn-home-path ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-home-path ol::before {
    display: none;
  }

  .learn-home-motivation-metrics,
  .learn-home-motivation-missions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .learn-home-hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .learn-home-hero p {
    max-width: 680px;
    padding-left: 94px;
  }
}

@media (max-width: 620px) {
  .learn-home-page {
    padding: 18px 0 28px;
  }

  .learn-home-shell {
    gap: 12px;
  }

  .learn-home-hero {
    gap: 8px;
  }

  .learn-home-identity {
    gap: 12px;
  }

  .learn-home-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    margin-top: 0;
    font-size: 1.2rem;
  }

  .learn-home-hero [data-welcome-text] {
    display: none;
  }

  .learn-home-hero h1 {
    max-width: 12em;
    margin: 0;
    font-size: clamp(1.62rem, 8vw, 2.05rem);
    line-height: 1.15;
  }

  .learn-home-motivation {
    gap: 10px;
    padding: 14px;
    box-shadow: none;
  }

  .learn-home-motivation-head {
    align-items: center;
    flex-wrap: wrap;
  }

  .learn-home-motivation-head h2 {
    font-size: 1rem;
  }

  .learn-home-motivation-head .button {
    max-width: 100%;
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.78rem;
    white-space: normal;
    text-align: center;
  }

  .learn-home-motivation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .learn-home-motivation-metrics div {
    min-height: 54px;
    padding: 8px 10px;
  }

  .learn-home-motivation-metrics span,
  .learn-home-motivation-missions span {
    font-size: 0.72rem;
  }

  .learn-home-motivation-metrics strong {
    font-size: 1rem;
  }

  .learn-home-motivation-stats {
    font-size: 0.82rem;
  }

  .learn-home-motivation-missions {
    grid-template-columns: 1fr;
  }

  .learn-home-motivation-missions li {
    min-height: 44px;
    padding: 8px 10px;
  }

  .learn-home-motivation-missions strong {
    font-size: 0.82rem;
  }

  .learn-home-grid {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
  }

  .learn-home-panel,
  .learn-home-panel.is-locked,
  .learn-home-panel.is-soon {
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .learn-home-panel {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }

  .learn-home-panel:first-child {
    border-top: 0;
  }

  .learn-home-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
    background: #ffffff;
  }

  .learn-home-panel > span {
    grid-column: 1;
    color: var(--primary-dark);
    font-size: 0.74rem;
  }

  .learn-home-panel h2 {
    grid-column: 1;
    margin: 0;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.24;
  }

  .learn-home-panel p {
    display: none;
  }

  .learn-home-panel .button {
    grid-column: 1;
    grid-row: auto;
    width: auto;
    max-width: 100%;
    min-height: 34px;
    margin-top: 8px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    white-space: normal;
    text-align: center;
  }

  .learn-home-panel-status {
    grid-column: 1;
    grid-row: auto;
    min-height: 0;
    margin-top: 8px;
    padding: 0;
    font-size: 0.76rem;
    white-space: normal;
  }

  .learn-home-lock-icon {
    display: none;
  }

  .learn-home-path {
    display: block;
    padding: 0;
    border-radius: var(--radius);
    background: linear-gradient(160deg, #fffdfb, #fff8f2);
    box-shadow: none;
  }

  .learn-home-path summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 780;
    cursor: pointer;
    list-style: none;
  }

  .learn-home-path summary::-webkit-details-marker {
    display: none;
  }

  .learn-home-path summary::after {
    content: "v";
    color: var(--primary-dark);
    font-size: 0.78rem;
    transform: translateY(1px);
  }

  .learn-home-path[open] summary::after {
    transform: rotate(180deg) translateY(-1px);
  }

  .learn-home-path-head {
    display: grid;
    gap: 8px;
    padding: 2px 16px 16px;
  }

  .learn-home-path-head span {
    margin: 0 0 4px;
    font-size: 0.7rem;
  }

  .learn-home-path-head h2 {
    font-size: 1.12rem;
  }

  .learn-home-path-head > p {
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: left;
  }

  .learn-home-path ol {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px 18px;
  }

  .learn-home-path ol::before {
    display: block;
    top: 20px;
    bottom: 24px;
    left: 19px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--primary) 0 10%, rgba(222, 91, 20, 0.18) 10% 100%);
  }

  .learn-home-path li {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    gap: 12px;
    padding: 0 0 16px;
  }

  .learn-home-path li:last-child {
    padding-bottom: 0;
  }

  .learn-home-path li > span {
    width: 40px;
    height: 40px;
    margin: 0;
    box-shadow: 0 0 0 4px #fff9f4;
  }

  .learn-home-path li.is-current > span {
    box-shadow: 0 0 0 4px #ffeadb, 0 6px 14px rgba(222, 91, 20, 0.18);
  }

  .learn-home-path li div {
    gap: 2px;
    padding-top: 1px;
  }

  .learn-home-path li strong {
    font-size: 0.92rem;
  }

  .learn-home-path li p {
    font-size: 0.76rem;
  }

  .learn-home-footer {
    padding: 12px 0 10px;
  }

  .learn-home-footer .footer-main {
    gap: 8px;
  }

  .learn-home-footer .footer-brand-note,
  .learn-home-footer .footer-legal,
  .learn-home-footer .footer-separator,
  .learn-home-footer .footer-links a:nth-of-type(n + 4) {
    display: none;
  }

  .learn-home-footer .footer-brand-copy {
    width: auto;
    flex: 1 1 auto;
    align-items: center;
  }

  .learn-home-footer .footer-links {
    justify-content: flex-start;
    gap: 12px;
    width: auto;
  }
}
