:root {
  --bg: #f7f7f2;
  --ink: #232822;
  --muted: #73786d;
  --line: #e2e4dc;
  --surface: #ffffff;
  --surface-soft: #f0f2ec;
  --midnight: #202722;
  --midnight-2: #303a31;
  --accent: #9caf88;
  --accent-strong: #5f7a52;
  --accent-soft: #edf1e7;
  --radius: 8px;
  --shadow: 0 24px 60px rgba(38, 46, 37, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes softGlow {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.95;
  }
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(226, 228, 220, 0.78);
  background: rgba(250, 250, 246, 0.9);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #202722;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(156, 175, 136, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a,
.ghost-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 14px;
}

.nav-links a {
  color: #44503f;
  background: rgba(255, 255, 255, 0.58);
}

.nav-links .nav-cta,
.primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #202722;
  font-weight: 800;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
}

.enterprise-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 70px clamp(18px, 5vw, 78px) 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 18%, rgba(156, 175, 136, 0.18), transparent 34%),
    radial-gradient(circle at 20% 82%, rgba(188, 178, 154, 0.14), transparent 32%),
    linear-gradient(135deg, var(--midnight) 0%, var(--midnight-2) 58%, #283127 100%);
  color: white;
}

.enterprise-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 175, 136, 0.48), transparent);
  animation: softGlow 5s ease-in-out infinite;
}

.hero-copy,
.hero-orbit {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.72s ease both;
}

.hero-orbit {
  animation-delay: 0.12s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #d9e3cf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.enterprise-hero h1 {
  margin: 0 0 20px;
  max-width: 880px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
}

.hero-lede {
  max-width: 760px;
  margin: 0 0 28px;
  color: #c3d3e6;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-orbit {
  display: grid;
  gap: 16px;
}

.orbit-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.orbit-card:first-child {
  animation: floatPanel 7s ease-in-out infinite;
}

.orbit-card:last-child {
  animation: floatPanel 8s ease-in-out infinite reverse;
}

.orbit-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
}

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

.orbit-node {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(16, 32, 51, 0.42);
}

.orbit-node span {
  display: block;
  color: var(--accent);
  font-weight: 900;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 78px);
  background: #202722;
  color: white;
}

.signal {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.052);
  animation: fadeUp 0.58s ease both;
}

.signal strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.signal span {
  display: block;
  margin-top: 8px;
  color: #9fb2c8;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 1px clamp(18px, 5vw, 78px);
  background: var(--line);
}

.brand-strip span {
  display: grid;
  min-height: 72px;
  place-items: center;
  background: var(--surface);
  color: #43566d;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.brand-strip span:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.content-band,
.module-showcase {
  padding: 54px clamp(18px, 5vw, 78px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.section-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.search-box {
  width: min(100%, 430px);
  min-height: 48px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  box-shadow: 0 10px 30px rgba(15, 31, 54, 0.08);
}

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

.lesson-card {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fafcff);
  box-shadow: 0 12px 30px rgba(26, 43, 66, 0.07);
  animation: fadeUp 0.62s ease both;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lesson-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), #c7d2b8);
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 122, 82, 0.26);
  box-shadow: 0 24px 58px rgba(26, 43, 66, 0.13);
}

.lesson-number {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(16, 22, 36, 0.1);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.lesson-card h3 {
  position: relative;
  margin: 10px 0;
  font-size: 22px;
}

.lesson-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.lesson-meta {
  position: relative;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.module-showcase {
  background: linear-gradient(135deg, #202722, #303a31);
  color: white;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.showcase-main,
.showcase-side {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.058);
  animation: fadeUp 0.66s ease both;
}

.showcase-main h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 48px);
}

.showcase-main p,
.showcase-side p {
  color: #b7c7da;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.showcase-metrics span {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e3cf;
  font-weight: 800;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(232px, 292px) minmax(0, 1fr);
  gap: 28px;
  padding: 30px clamp(18px, 4vw, 58px) 64px;
  background: linear-gradient(180deg, #fafaf6 0%, var(--bg) 100%);
  transition: grid-template-columns 0.22s ease, gap 0.22s ease;
}

.page-shell.rail-collapsed {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
}

.learning-rail {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  scrollbar-width: none;
  padding: 8px 6px 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.learning-rail::-webkit-scrollbar {
  display: none;
}

.rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(96, 112, 88, 0.16);
}

.rail-title {
  min-width: 0;
}

.rail-header span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rail-header strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.rail-toggle {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(96, 112, 88, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rail-toggle:hover {
  background: var(--accent-soft);
}

.rail-toggle-icon {
  transition: transform 0.22s ease;
}

.rail-collapsed .rail-toggle-icon {
  transform: rotate(180deg);
}

.rail-section {
  position: relative;
  margin-top: 14px;
  padding-left: 7px;
}

.rail-section::before {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 4px;
  left: 0;
  width: 1px;
  background: rgba(96, 112, 88, 0.2);
}

.rail-section h3 {
  margin: 0 0 8px;
  color: #74806b;
  font-size: 12px;
}

.side-link {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px 2px;
  border-radius: 0;
  color: #5f665b;
  font-size: 13px;
}

.side-link::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8c1af;
}

.side-link span {
  color: #829079;
  font-size: 12px;
  font-weight: 900;
}

.side-link strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link:hover,
.side-link.active {
  color: var(--ink);
}

.side-link:hover strong,
.side-link.active strong {
  color: var(--accent);
}

.side-link.active::before {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(156, 175, 136, 0.46);
}

.rail-collapsed .learning-rail {
  padding-right: 0;
}

.rail-collapsed .rail-title,
.rail-collapsed .rail-section {
  display: none;
}

.rail-collapsed .rail-header {
  justify-content: center;
  border-bottom: 0;
  padding-bottom: 0;
}

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

.stage-hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 20%, rgba(156, 175, 136, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff, #f4f6ef);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
}

.stage-hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(95, 122, 82, 0.16);
  border-radius: 50%;
}

.article-kicker {
  color: var(--accent-strong);
  font-weight: 900;
}

.stage-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 14px;
  max-width: 860px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.03;
}

.article-summary {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.stage-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #3c4d63;
  font-size: 13px;
  font-weight: 800;
}

.article-body {
  padding: 22px 0 0;
}

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

.focus-card,
.insight-panel,
.practice,
.mistake-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(26, 43, 66, 0.07);
  animation: fadeUp 0.58s ease both;
}

.focus-card {
  min-height: 160px;
  padding: 20px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.focus-card:hover {
  transform: translateY(-3px);
  border-color: rgba(95, 122, 82, 0.26);
}

.focus-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.focus-card p {
  margin: 12px 0 0;
  color: #29364a;
  font-size: 17px;
}

.insight-panel,
.practice,
.mistake-panel {
  margin: 18px 0;
  padding: 24px;
}

.insight-panel {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  background: linear-gradient(135deg, #202722, #303a31);
  color: white;
}

.insight-panel h2,
.practice h2,
.mistake-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.insight-panel p,
.insight-panel li {
  color: #c3d3e6;
}

.code-block {
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: #0d1726;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

.code-block figcaption {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #d9e3cf;
  font-size: 13px;
  font-weight: 800;
}

pre {
  margin: 0;
  padding: 18px;
  color: #edf7ff;
  font: 14px/1.65 Consolas, "Courier New", monospace;
}

.mistake-panel ul,
.practice ul,
.insight-panel ul {
  margin: 0;
  padding-left: 22px;
}

.mistake-panel li + li,
.insight-panel li + li {
  margin-top: 8px;
}

.practice {
  border-color: rgba(95, 122, 82, 0.2);
  background: linear-gradient(135deg, #ffffff, #f4f7ef);
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.pager-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 31, 54, 0.08);
}

.pager-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.pager-card strong {
  display: block;
  margin-top: 4px;
}

.pager-card.align-right {
  text-align: right;
}

.pager-card.muted {
  opacity: 0.58;
}

.footer {
  padding: 28px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong), #c7d2b8);
  transition: width 0.14s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  .enterprise-hero,
  .showcase-grid,
  .page-shell,
  .insight-panel {
    grid-template-columns: 1fr;
  }

  .page-shell {
    background: var(--bg);
  }

  .learning-rail {
    position: static;
    max-height: none;
    background: transparent;
  }

  .page-shell.rail-collapsed {
    grid-template-columns: 1fr;
  }

  .rail-collapsed .rail-title,
  .rail-collapsed .rail-section {
    display: block;
  }

  .rail-collapsed .rail-header {
    justify-content: space-between;
    border-bottom: 1px solid rgba(96, 112, 88, 0.16);
    padding-bottom: 12px;
  }

  .lesson-grid,
  .focus-grid,
  .signal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .top-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .enterprise-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .brand-strip,
  .lesson-grid,
  .focus-grid,
  .signal-board,
  .showcase-metrics,
  .pager,
  .orbit-map {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
}