:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --surface: #fff;
  --ink: #17201e;
  --muted: #65716d;
  --line: #d7dfdb;
  --dark: #15211f;
  --dark-2: #1d2d29;
  --teal: #0d8490;
  --amber: #c7811d;
  --coral: #c95649;
  --green: #3b8c63;
  --violet: #725ca8;
  --shadow: 0 10px 28px rgba(20, 35, 31, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cascadia Code", "JetBrains Mono", "Fira Code", ui-monospace, Consolas, "SF Mono", Menlo, "Microsoft YaHei", monospace;
  letter-spacing: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 max(24px, calc((100% - 1240px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  color: var(--teal);
  font:
    600 11px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.brand b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font:
    500 9px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}
.site-header nav a:hover {
  color: var(--teal);
}
svg {
  width: 16px;
  height: 16px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #f2f7f5;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 490px;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 62px 30px 66px 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font:
    600 11px/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.hero .eyebrow {
  color: #63c7d0;
}
.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.08;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 20px 0 22px;
  color: #b9c8c4;
  font-size: 17px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}
.hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  color: #d7e3df;
  font-size: 13px;
}
.hero-actions a:hover {
  border-color: #63c7d0;
  color: #fff;
}
.hero-actions a.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.hero-actions a.primary:hover {
  background: #096e78;
}
.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 610px;
  height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.search-box:focus-within {
  border-color: #63c7d0;
  box-shadow: 0 0 0 3px rgba(99, 199, 208, 0.2);
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.search-box input::placeholder {
  color: #78847f;
}
.search-box kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font:
    500 11px/1 ui-monospace,
    Consolas,
    monospace;
}
.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 30px;
}
.hero-stats span {
  display: grid;
  gap: 4px;
}
.hero-stats b {
  color: #f7fbf9;
  font:
    600 19px/1 ui-monospace,
    Consolas,
    monospace;
}
.hero-stats small {
  color: #829792;
  font-size: 12px;
}
.hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.hero-visual:before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}
.hero-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.canvas-legend {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  color: #78918b;
  font:
    500 9px/1 ui-monospace,
    Consolas,
    monospace;
}
.learning {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.industrial-feature {
  background: #eaf3f0;
  border-bottom: 1px solid var(--line);
}
.industrial-feature-inner {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 46px;
}
.industrial-feature-copy h2 {
  max-width: 430px;
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}
.industrial-feature-copy > p:not(.eyebrow) {
  max-width: 490px;
  margin: 13px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.industrial-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #176b6e;
  font-size: 13px;
  font-weight: 600;
}
.industrial-cta:hover { color: var(--teal); }
.industrial-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.industrial-feature-grid a {
  min-width: 0;
  min-height: 106px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #c9ddd6;
  border-radius: 5px;
  background: rgba(255, 255, 255, .68);
  transition: border-color .2s ease, transform .2s ease;
}
.industrial-feature-grid a:hover { border-color: var(--teal); transform: translateY(-2px); }
.industrial-feature-grid a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.industrial-feature-grid span { color: var(--teal); font: 600 11px/1.2 "Cascadia Code", "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, "SF Mono", Menlo, monospace; }
.industrial-feature-grid b { margin-top: 12px; font-size: 17px; font-weight: 600; }
.industrial-feature-grid small { color: var(--muted); font-size: 12px; }
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 0 42px;
}
.section-heading,
.catalog-toolbar,
.aside-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2,
.catalog-toolbar h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}
.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.quiet-button:hover {
  color: var(--teal);
}
.track-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.track {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 5px 12px;
  min-width: 0;
  padding: 20px 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.track:first-child {
  padding-left: 0;
}
.track:last-child {
  border-right: 0;
}
.track > span {
  grid-row: 1/3;
  color: var(--teal);
  font:
    600 12px/1.4 ui-monospace,
    Consolas,
    monospace;
}
.track > b {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}
.track > small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.track > svg {
  grid-row: 1/3;
  align-self: center;
  color: var(--muted);
}
.track:hover,
.track[aria-pressed="true"] {
  background: #eef5f2;
}
.track[aria-pressed="true"]:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--teal);
  content: "";
}
.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 0 70px;
}
.category-panel {
  align-self: start;
  position: sticky;
  top: 92px;
}
.aside-heading {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.aside-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.aside-heading button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.aside-heading button:hover {
  color: var(--teal);
}
#category-list {
  display: grid;
  margin-top: 7px;
}
#category-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
#category-list button span {
  overflow-wrap: anywhere;
}
#category-list button b {
  color: #89938f;
  font:
    500 11px/1 ui-monospace,
    Consolas,
    monospace;
}
#category-list button:hover {
  color: var(--ink);
  background: #e9efec;
}
#category-list button[aria-pressed="true"] {
  border-left-color: var(--teal);
  background: #e3efeb;
  color: var(--ink);
  font-weight: 600;
}
.catalog-main {
  min-width: 0;
}
.catalog-toolbar {
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.difficulty-filter {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.difficulty-filter button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.difficulty-filter button:last-child {
  border-right: 0;
}
.difficulty-filter button:hover {
  color: var(--ink);
}
.difficulty-filter button[aria-pressed="true"] {
  background: var(--dark);
  color: #fff;
}
.result-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  color: var(--muted);
  font-size: 12px;
}
.result-summary span:last-child {
  text-align: right;
}
.algorithm-list {
  display: grid;
  gap: 24px;
}
.category-group {
  min-width: 0;
}
.category-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 9px;
  padding: 0 2px;
}
.category-group-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.category-group-header span {
  color: var(--muted);
  font:
    500 11px/1 ui-monospace,
    Consolas,
    monospace;
}
.algorithm-rows {
  border-top: 1px solid var(--line);
}
.algorithm-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(240px, 1.45fr) minmax(
      160px,
      0.75fr
    ) auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.algorithm-row:hover {
  position: relative;
  z-index: 1;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.algorithm-name {
  min-width: 0;
}
.algorithm-name > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.algorithm-name > a span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.algorithm-name > a:hover {
  color: var(--teal);
}
.algorithm-name > a svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}
.difficulty {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-weight: 600;
}
.difficulty.basic {
  background: #e1f1e8;
  color: #26724e;
}
.difficulty.intermediate {
  background: #f8ecd8;
  color: #8e5a12;
}
.difficulty.advanced {
  background: #f5e2df;
  color: #9b3f35;
}
.stage-label {
  font:
    500 11px/20px ui-monospace,
    Consolas,
    monospace;
}
.summary {
  margin: 0;
  color: #4f5b57;
  font-size: 13px;
  line-height: 1.65;
}
.prerequisite {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.prerequisite b {
  display: block;
  margin-bottom: 3px;
  color: #87918d;
  font-weight: 500;
}
.prerequisite a {
  color: #3f6966;
}
.prerequisite a:hover {
  text-decoration: underline;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 12px;
  white-space: nowrap;
}
.row-actions a:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.row-actions a.demo {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.row-actions a.demo:hover {
  background: #096e78;
  color: #fff;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state > svg {
  width: 28px;
  height: 28px;
}
.empty-state h3 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 17px;
}
.empty-state button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100% - 1240px) / 2));
  background: var(--dark);
  color: #829792;
  font-size: 12px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6e2de;
}
.site-footer a:hover {
  color: #63c7d0;
}
@media (max-width: 1288px) {
  .hero-inner,
  .section-inner,
  .catalog-layout {
    margin-right: 24px;
    margin-left: 24px;
  }
  .hero-copy {
    padding-left: 0;
  }
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .track-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industrial-feature-inner { grid-template-columns: 1fr; gap: 24px; }
  .track:nth-child(2) {
    border-right: 0;
  }
  .track:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .track:first-child,
  .track:nth-child(3) {
    padding-left: 18px;
  }
  .catalog-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }
  .algorithm-row {
    grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) auto;
  }
  .prerequisite {
    display: none;
  }
}
@media (max-width: 760px) {
  .site-header {
    padding: 0 16px;
  }
  .site-header nav a:nth-child(n + 6):not(:last-child) {
    display: none;
  }
  .hero-inner {
    display: block;
    min-height: 0;
    margin: 0;
  }
  .hero-copy {
    padding: 48px 20px 42px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
  }
  .hero-visual {
    height: 200px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-visual:before {
    display: none;
  }
  .section-inner {
    margin: 0;
    padding: 32px 20px;
  }
  .industrial-feature-inner { padding-top: 34px; padding-bottom: 34px; }
  .industrial-feature-copy h2 { font-size: 25px; }
  .industrial-feature-grid { grid-template-columns: 1fr; }
  .industrial-feature-grid a:last-child:nth-child(odd) { grid-column: auto; }
  .track-list {
    grid-template-columns: 1fr;
  }
  .track,
  .track:first-child,
  .track:nth-child(3) {
    padding: 17px 10px;
  }
  .track {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .track:last-child {
    border-bottom: 0;
  }
  .catalog-layout {
    display: block;
    margin: 0;
    padding: 32px 20px 54px;
  }
  .category-panel {
    position: static;
    margin-bottom: 28px;
  }
  .aside-heading {
    padding-bottom: 10px;
  }
  #category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0;
    padding: 0 0 4px;
  }
  #category-list button {
    flex: 0 0 auto;
    display: flex;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    white-space: nowrap;
  }
  #category-list button[aria-pressed="true"] {
    border-color: var(--teal);
  }
  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .difficulty-filter {
    width: 100%;
  }
  .difficulty-filter button {
    flex: 1;
    padding: 0 8px;
  }
  .algorithm-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
  }
  .summary {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .row-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .prerequisite {
    display: block;
    grid-column: 1/-1;
    grid-row: 3;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}
@media (max-width: 440px) {
  .site-header nav a {
    font-size: 0;
  }
  .site-header nav a svg {
    width: 19px;
    height: 19px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-stats {
    gap: 22px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .algorithm-row {
    display: block;
    padding: 15px 12px;
  }
  .summary,
  .prerequisite,
  .row-actions {
    margin-top: 10px;
  }
  .row-actions a {
    flex: 1;
  }
  .result-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .result-summary span:last-child {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
