:root {
  --page: #f7f3ea;
  --surface: #fffaf1;
  --ink: #191815;
  --muted: #6b6258;
  --faint: #9a9083;
  --line: #ded4c6;
  --line-strong: #c8bba9;
  --accent: #7a4f2b;
  --accent-strong: #4f351f;
  --accent-soft: #efe6d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

.page-shell {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.article-page {
  width: min(1120px, calc(100% - 40px));
}

.site-topbar,
.hero-nav,
.article-nav,
.back-row,
.topbar-links,
.eyebrow-row,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-topbar {
  justify-content: space-between;
  padding: 16px 0 44px;
  font-size: 0.95rem;
}

.brand-link {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.topbar-links a,
.hero-nav a,
.article-nav a,
.back-row a,
.language-pill,
.panel-actions a {
  color: var(--accent-strong);
  text-decoration: none;
}

.topbar-links a:hover,
.hero-nav a:hover,
.article-nav a:hover,
.back-row a:hover,
.language-pill:hover,
.panel-actions a:hover {
  text-decoration: underline;
}

.hero,
.article-shell,
.discussion-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero {
  max-width: 760px;
  padding-top: 18px;
}

.hero-nav,
.article-nav {
  margin-bottom: 28px;
}

.hero-kicker,
.article-kicker,
.eyebrow,
.panel-label,
.blog-entry-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.article-hero h1,
.article-header h1 {
  margin: 14px 0 14px;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

.article-hero h1,
.article-header h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5.2vw, 4.6rem);
}

.hero p,
.article-subtitle,
.meta-note,
.discussion-note,
.blog-desc,
.lead-copy,
.meta-grid span,
.link-panel p {
  color: var(--muted);
}

.hero-copy {
  max-width: 44rem;
  margin: 0;
  font-size: 1.05rem;
}

.blog-list {
  max-width: 860px;
  margin-top: 54px;
  border-top: 1px solid var(--line-strong);
}

.blog-entry {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
}

.blog-entry h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.blog-entry h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-entry h2 a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.blog-entry p {
  margin: 7px 0 0;
}

.blog-zh {
  color: var(--muted);
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
}


.article-section > p,
.article-section > ul,
.article-section > ol,
.article-section > h2,
.article-section > h3,
.article-section > h4,
.article-section > .math-block,
.article-section > .citation-block {
  width: min(900px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.article-hero,
.article-header {
  margin-bottom: 46px;
}

.eyebrow-row {
  justify-content: space-between;
  gap: 16px;
}

.language-pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 250, 241, 0.72);
  font-size: 0.9rem;
}

.article-subtitle {
  max-width: 720px;
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.compact-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.meta-grid div {
  min-height: 92px;
  padding: 18px 18px 16px 0;
  border-right: 1px solid var(--line);
}

.meta-grid div:last-child {
  border-right: 0;
}

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

.meta-grid span {
  margin-bottom: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-grid strong {
  font-size: 0.98rem;
  font-weight: 620;
}

.article-section,
.feature-card,
.link-panel {
  margin-top: 38px;
}

.article-section h2,
.feature-card h2,
.link-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.article-section p {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.article-section p + p {
  margin-top: 16px;
}

.lead-section {
  margin-top: 0;
}

.lead-copy {
  max-width: 840px;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.42;
}

.feature-card,
.link-panel {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
}

.feature-card ul,
.article-section ul,
.article-section ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.feature-card li,
.article-section li {
  max-width: 900px;
  font-size: 1.03rem;
}

.feature-card li + li,
.article-section li + li {
  margin-top: 10px;
}

.link-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: end;
}

.link-panel p {
  margin: 0;
}

.panel-actions {
  justify-content: flex-start;
}

.panel-actions a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--page);
  font-size: 0.94rem;
}

.citation-block {
  white-space: pre-wrap;
  max-width: 900px;
  margin: 14px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.discussion-shell {
  max-width: 900px;
  margin: 54px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.discussion-shell h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 630;
}

.discussion-note {
  margin: 0 0 18px;
  font-size: 0.96rem;
}

.discussion-fallback {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.back-row {
  margin-top: 40px;
}

.back-row a {
  font-weight: 620;
}

.zh-article {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.zh-article .article-section p,
.zh-article .feature-card li {
  line-height: 1.9;
}

@media (max-width: 760px) {
  .page-shell,
  .article-page {
    width: min(100% - 24px, 760px);
    padding: 20px 0 48px;
  }

  .site-topbar,
  .eyebrow-row,
  .link-panel {
    display: block;
  }

  .topbar-links,
  .language-pill,
  .panel-actions {
    margin-top: 12px;
  }

  .article-hero h1,
  .article-header h1 {
    font-size: clamp(2.6rem, 16vw, 4.2rem);
  }

  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .meta-grid div:nth-child(2n) {
    border-right: 0;
  }

  .meta-grid div {
    min-height: 76px;
    padding: 14px 12px 14px 0;
  }

  .feature-card,
  .link-panel {
    padding: 20px;
    border-radius: 18px;
  }
}


.table-figure {
  max-width: 100%;
  margin: 22px 0;
}

.table-figure figcaption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.paper-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.92rem;
}

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

.paper-table tr:last-child th,
.paper-table tr:last-child td {
  border-bottom: 0;
}

.math-block,
.latex-block {
  max-width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
}

.article-section h3 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.article-section h4 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}

.bib-list li + li {
  margin-top: 10px;
}


.visual-figure {
  max-width: 900px;
  margin: 26px 0 30px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,250,241,0.96), rgba(239,230,216,0.58));
}

.visual-figure figcaption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.visual-figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.visual-figure text {
  fill: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 620;
}

.visual-figure .small {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.visual-figure rect,
.visual-figure .box,
.visual-figure .node rect,
.visual-figure .stack rect {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1.4;
}

.visual-figure .accent rect,
.visual-figure .box.accent {
  fill: #efe0cd;
  stroke: var(--accent);
}

.visual-figure .memory {
  fill: #eadcc9;
  stroke: var(--accent);
}

.visual-figure .flow-line,
.visual-figure .axis {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 2;
}

.chart-figure .axis {
  stroke: var(--line-strong);
}

.chart-figure .bars rect {
  fill: #cdb99e;
}

.chart-figure .bars .accent-bar {
  fill: var(--accent);
}

.chart-figure .curve {
  fill: none;
  stroke-width: 3;
}

.chart-figure .accent-line {
  stroke: var(--accent);
}

.chart-figure .muted-line {
  stroke: #9a9083;
}

.chart-figure .second-line {
  stroke: #5f7564;
}

.chart-figure .third-line {
  stroke: #b07548;
}

.chart-figure .accent-text {
  fill: var(--accent);
}

.radar-grid {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.radar-kimi {
  fill: rgba(122,79,43,0.30);
  stroke: var(--accent);
  stroke-width: 3;
}

.radar-rwkv {
  fill: rgba(95,117,100,0.24);
  stroke: #5f7564;
  stroke-width: 2;
}

.radar-mamba {
  fill: rgba(154,144,131,0.22);
  stroke: #9a9083;
  stroke-width: 2;
}


.polished-chart {
  padding: 0;
  border: 0;
  background: transparent;
}

.polished-chart figcaption {
  margin: 0 0 12px;
  padding: 0 4px;
  font-weight: 560;
}

.polished-chart svg {
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(79, 53, 31, 0.10);
}

.chart-bg {
  fill: #fffaf1;
  stroke: #b9a48b;
  stroke-width: 1.2;
}

.chart-title {
  font-size: 23px !important;
  font-weight: 760 !important;
  fill: #191815 !important;
}

.chart-subtitle,
.axis-label,
.tick,
.x-label {
  fill: #5f564c !important;
  font-size: 13px !important;
  font-weight: 540 !important;
}

.grid-lines line {
  stroke: #e1d4c4;
  stroke-width: 1;
}

.axis.strong {
  stroke: #4f351f !important;
  stroke-width: 1.8 !important;
}

.value {
  fill: #191815 !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.highlight-text {
  fill: #8a3f16 !important;
}

.robot-bar {
  fill: #7b8794 !important;
}

.web-bar {
  fill: #b97845 !important;
}

.robot-bar.highlight,
.web-bar.highlight {
  fill: #8a3f16 !important;
}

.web-embed-line,
.web-kimi-line,
.robot-kimi-line,
.robot-embed-line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.web-embed-line { stroke: #b97845; }
.web-kimi-line { stroke: #8a3f16; }
.robot-kimi-line { stroke: #405a6a; }
.robot-embed-line { stroke: #7b8794; stroke-dasharray: 7 6; }

.points circle {
  fill: #405a6a;
  stroke: #fffaf1;
  stroke-width: 2;
}

.radar-grid.outer {
  stroke: #9b8064;
  stroke-width: 1.4;
}

.radar-label {
  fill: #33251b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.radar-kimi {
  fill: rgba(138, 63, 22, 0.36) !important;
  stroke: #8a3f16 !important;
  stroke-width: 3.4 !important;
}

.radar-rwkv {
  fill: rgba(64, 90, 106, 0.24) !important;
  stroke: #405a6a !important;
  stroke-width: 2.4 !important;
}

.radar-mamba {
  fill: rgba(123, 135, 148, 0.20) !important;
  stroke: #7b8794 !important;
  stroke-width: 2.4 !important;
  stroke-dasharray: 6 5;
}

.kimi-dot {
  fill: #8a3f16;
  stroke: #fffaf1;
  stroke-width: 2;
}

.legend-kimi { fill: #8a3f16; }
.legend-rwkv { fill: #405a6a; }
.legend-mamba { fill: #7b8794; }

.score-cards rect {
  fill: #f4eadb;
  stroke: #d2bea5;
}

.metric-big {
  fill: #8a3f16 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
}

.metric-big.muted {
  fill: #405a6a !important;
}


.visual-figure .legend-kimi,
.visual-figure .matrix-kimi {
  fill: #8a3f16 !important;
  stroke: none !important;
}

.visual-figure .legend-rwkv,
.visual-figure .matrix-rwkv {
  fill: #405a6a !important;
  stroke: none !important;
}

.visual-figure .legend-mamba,
.visual-figure .matrix-mamba {
  fill: #7b8794 !important;
  stroke: none !important;
}

.metric-label {
  fill: #33251b !important;
  font-size: 15px !important;
  font-weight: 760 !important;
}

.bar-matrix .value {
  font-size: 13px !important;
  font-weight: 760 !important;
}

.bar-matrix .value.muted {
  fill: #405a6a !important;
}


.generated-image-figure {
  padding: 14px;
  background: #fffaf1;
  border-color: #c7b59e;
  box-shadow: 0 18px 45px rgba(79, 53, 31, 0.10);
}

.generated-image-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(79, 53, 31, 0.14);
  background: var(--surface);
}
