:root {
  color-scheme: dark;
  --page-bg: #07090d;
  --panel: #0e1219;
  --panel-strong: #131923;
  --text: #f5f7fa;
  --muted: #a7b0bd;
  --soft: #737f8f;
  --line: rgba(255, 255, 255, 0.11);
  --blue: #73c9ff;
  --blue-strong: #36aef7;
  --gold: #d6be82;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -8%, rgba(57, 153, 255, 0.13), transparent 32rem),
    var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #07090d;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.knowledge-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.88);
  backdrop-filter: blur(18px);
}

.knowledge-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.knowledge-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.knowledge-brand small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.knowledge-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
  color: #bac2ce;
  font-size: 14px;
}

.knowledge-nav a {
  text-decoration: none;
}

.knowledge-nav a:hover,
.knowledge-nav a:focus-visible,
.knowledge-nav a[aria-current="page"] {
  color: var(--blue);
  outline: none;
}

.knowledge-main {
  min-height: 70vh;
}

.knowledge-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(84px, 12vw, 150px) clamp(20px, 7vw, 110px) clamp(72px, 9vw, 118px);
  border-bottom: 1px solid var(--line);
}

.knowledge-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.72) 54%, rgba(7, 9, 13, 0.42) 100%),
    url("./assets/archive/work-library-space.jpg") center/cover;
  opacity: 0.72;
}

.knowledge-hero-inner {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.knowledge-hero h1,
.article-head h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.03;
  letter-spacing: -0.052em;
}

.knowledge-hero .lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: #c0c8d4;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.knowledge-index {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.article-card {
  grid-column: span 4;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.article-card:first-child,
.article-card:nth-child(2) {
  grid-column: span 6;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(115, 201, 255, 0.55);
  background: linear-gradient(145deg, rgba(70, 153, 231, 0.12), rgba(255, 255, 255, 0.025));
  outline: none;
}

.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  font-size: 12px;
}

.article-card-meta span:first-child {
  color: var(--blue);
  font-weight: 740;
  letter-spacing: 0.08em;
}

.article-card h2 {
  margin: 34px 0 16px;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.article-card .read-more {
  margin-top: auto;
  padding-top: 34px;
  color: #e8edf3;
  font-size: 14px;
  font-weight: 700;
}

.article-page {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 100px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 54px;
  color: var(--soft);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--blue);
  outline: none;
}

.article-head {
  max-width: 940px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  font-size: clamp(40px, 6vw, 76px);
}

.article-deck {
  max-width: 820px;
  margin: 28px 0 0;
  color: #b9c2ce;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.82;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--soft);
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
  padding-top: 62px;
}

.article-body {
  min-width: 0;
}

.summary-box {
  margin: 0 0 54px;
  padding: 28px 30px;
  border: 1px solid rgba(115, 201, 255, 0.24);
  border-radius: 20px;
  background: rgba(54, 174, 247, 0.07);
}

.summary-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.summary-box p {
  margin: 0;
  color: #d0d7df;
  line-height: 1.8;
}

.article-section {
  margin-top: 58px;
}

.article-section:first-of-type {
  margin-top: 0;
}

.article-section h2 {
  margin: 0 0 22px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.article-section h3 {
  margin: 32px 0 14px;
  font-size: 21px;
}

.article-section p,
.article-section li {
  color: #bec6d1;
  font-size: 17px;
  line-height: 1.92;
}

.article-section p {
  margin: 0 0 20px;
}

.article-section ul,
.article-section ol {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 24px;
}

.article-section strong {
  color: #f4f7fa;
}

.article-section a {
  color: var(--blue);
  text-underline-offset: 4px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.faq-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
}

.article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.aside-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.aside-panel h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.aside-panel a {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: #c8d0da;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.aside-panel a:hover,
.aside-panel a:focus-visible {
  color: var(--blue);
  outline: none;
}

.aside-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.aside-cta {
  display: inline-flex !important;
  justify-content: center;
  padding: 12px 16px !important;
  border: 1px solid rgba(115, 201, 255, 0.45) !important;
  border-radius: 999px;
  color: #07111a !important;
  background: var(--blue);
  font-weight: 760;
}

.knowledge-footer {
  padding: 42px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
}

.knowledge-footer-inner {
  width: min(var(--content), 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
}

.knowledge-footer p {
  max-width: 720px;
  margin: 0;
  line-height: 1.75;
}

.knowledge-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.knowledge-footer a {
  text-decoration: none;
}

.knowledge-footer a:hover,
.knowledge-footer a:focus-visible {
  color: var(--blue);
  outline: none;
}

@media (max-width: 980px) {
  .knowledge-nav a:nth-child(-n + 3) {
    display: none;
  }

  .article-card,
  .article-card:first-child,
  .article-card:nth-child(2) {
    grid-column: span 6;
  }

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

  .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .knowledge-header {
    min-height: 68px;
  }

  .knowledge-brand small,
  .knowledge-nav a:not([aria-current="page"]) {
    display: none;
  }

  .knowledge-hero {
    min-height: 480px;
  }

  .section-heading,
  .knowledge-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-card,
  .article-card:first-child,
  .article-card:nth-child(2) {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .article-page {
    padding-top: 34px;
  }

  .breadcrumbs {
    margin-bottom: 36px;
  }

  .article-head {
    padding-bottom: 40px;
  }

  .article-layout {
    padding-top: 42px;
  }

  .article-section p,
  .article-section li {
    font-size: 16px;
  }

  .article-aside {
    grid-template-columns: 1fr;
  }

  .knowledge-footer-links {
    justify-content: flex-start;
  }
}
