/* 基础页面与下方内容样式；首屏光照、构图和动画由 hero.css 管理。 */
:root {
  color-scheme: dark;
  --bg: #05060f;
  --surface: #0c101d;
  --surface-raised: #141b2b;
  --line: #242c3d;
  --line-hover: #465570;
  --text: #d8e5fc;
  --muted: #99abc9;
  --quiet: #7e91b0;
  --accent: #b3cff9;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}
::selection {
  background: #aecbf1;
  color: #080e1b;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
.mono {
  font-family: var(--mono);
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 20;
  left: 20px;
  top: 15px;
  padding: 12px 18px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.page-frame {
  max-width: 1280px;
  margin: 0 auto;
  border-inline: 1px solid #1c1c20;
}
.section-pad {
  padding-inline: 56px;
}
.section-block {
  padding-block: 80px;
  border-bottom: 1px solid var(--line);
}
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #5b5b62;
  border-radius: 6px;
  margin-right: 11px;
  font-size: 21px;
  position: relative;
  font-style: italic;
  line-height: 1;
}
.brand-mark > span {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  color: var(--accent);
  font-style: normal;
}
.brand-dot {
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}
.site-nav a {
  padding-block: 12px;
  transition: color 0.18s;
}
.site-nav a:hover {
  color: var(--text);
}
.site-nav .nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.nav-social .icon {
  width: 15px;
  height: 15px;
}
.nav-social-arrow {
  margin-left: 5px;
  color: var(--quiet);
}
.menu-toggle {
  display: none;
}
.button {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
  min-height: 44px;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button-primary {
  background: #e5e5e7;
  color: #151517;
  border-color: #e5e5e7;
}
.button-primary:hover {
  background: #fff;
  border-color: #fff;
}
.button-secondary {
  background: #131315;
  border-color: #333338;
  color: #d4d4d8;
}
.button-secondary:hover {
  background: #1c1c20;
  border-color: #55555c;
}
.focus-strip {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-block: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: #b3b3bb;
  background: #0c0c0e;
}
.strip-label {
  color: var(--quiet);
  font-size: 9px;
  letter-spacing: 0.7px;
}
.strip-cross {
  color: #505057;
  font-weight: 300;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 32px;
}
.eyebrow {
  color: #a0a0a8;
  font-size: 9px;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.eyebrow > span {
  color: #686872;
  margin-right: 10px;
}
h2 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.4;
}
.title-dot {
  color: var(--accent);
  margin-left: 3px;
}
.section-intro {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}
/* 交错宽窄的十二列网格，移动端回归单列，不隐藏示意界面。 */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  grid-column: span 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.project-card:hover {
  border-color: var(--line-hover);
}
.project-card:nth-child(4n + 1),
.project-card:nth-child(4n + 4) {
  grid-column: span 7;
}
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
  grid-column: span 5;
}
.project-content {
  padding: 23px 26px 25px;
  border-top: 1px solid #232327;
  flex: 1;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.project-category {
  color: var(--quiet);
  font-size: 8px;
  letter-spacing: 1px;
}
.project-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.project-status.public {
  color: #b2c4a8;
}
.project-status.public::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #9ebc90;
  border-radius: 50%;
}
.project-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-heading h3 {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.55px;
}
.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #19191c;
  border: 1px solid #303036;
  border-radius: 6px;
  color: #b8b8bf;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.project-link:hover {
  background: #252529;
  color: white;
  border-color: #52525b;
}
.project-link .icon {
  width: 18px;
  height: 18px;
}
.project-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 7px;
}
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags {
  margin-top: 18px;
}
.tech-tags > span {
  font-family: var(--mono);
  font-size: 9px;
  padding: 5px 8px;
  color: #b0b0ba;
  background: #19191c;
  border: 1px solid #2b2b30;
  border-radius: 4px;
  line-height: 1.2;
}
.project-disclaimer {
  font-size: 9px;
  color: var(--quiet);
  margin-top: 18px;
  text-align: right;
}
.mockup {
  height: 235px;
  position: relative;
  overflow: hidden;
  background: #090d18;
}
.assistant-mockup {
  padding: 30px 28px 0;
  background-image:
    linear-gradient(#25334a40 1px, transparent 1px),
    linear-gradient(90deg, #25334a40 1px, transparent 1px);
  background-size: 28px 28px;
}
.mock-window {
  border: 1px solid #34435d;
  border-radius: 7px 7px 0 0;
  background: #0e1422;
  height: 232px;
  box-shadow: 0 8px 32px #0004;
}
.mock-toolbar {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--quiet);
  font-size: 8px;
}
.window-dots {
  display: flex;
  gap: 4px;
}
.window-dots i {
  width: 4px;
  height: 4px;
  background: #47474f;
  border-radius: 50%;
}
.mock-toolbar-end {
  font-size: 12px;
}
.assistant-layout {
  display: flex;
  height: 199px;
}
.mock-sidebar {
  width: 110px;
  flex-shrink: 0;
  padding: 12px 9px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.mini-brand {
  font-size: 16px;
  font-weight: 600;
  padding-left: 7px;
  margin-bottom: 5px;
}
.mini-brand > span {
  color: var(--accent);
  font-size: 11px;
}
.sidebar-item {
  font-size: 8px;
  padding: 6px;
  color: var(--quiet);
  border-radius: 3px;
}
.sidebar-item.active {
  color: #cacacf;
  background: #232327;
}
.sidebar-bottom {
  position: absolute;
  bottom: 13px;
  left: 12px;
  font-size: 5px;
  color: #777780;
}
.mock-chat {
  padding: 17px 15px;
  flex: 1;
  min-width: 0;
}
.mock-user {
  margin-left: auto;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 5px;
  background: #252529;
  font-size: 9px;
  color: #c3c3cb;
}
.mock-answer {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
}
.ai-avatar {
  display: grid;
  place-items: center;
  border: 1px solid #4b658a;
  border-radius: 5px;
  color: #bfd4f4;
  background: #1a2941;
  font-size: 12px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mock-answer strong {
  font-size: 9px;
  font-weight: 500;
}
.mock-answer p {
  font-size: 8px;
  color: #9999a3;
  line-height: 1.8;
  margin-top: 5px;
}
.source-chip {
  display: inline-block;
  font-size: 6px;
  color: #b0c7e8;
  background: #152035;
  border: 1px solid #2b405d;
  padding: 3px 5px;
  border-radius: 3px;
  margin-top: 7px;
}
.mock-input {
  margin-top: 13px;
  border: 1px solid #313137;
  color: #8e8e98;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  padding: 7px 9px;
  border-radius: 4px;
}
.mock-input > span:last-child {
  color: #111;
  background: #b9d0f1;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
}
.knowledge-mockup {
  padding: 29px 35px 24px;
}
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 65px;
  background: #18181c;
  border: 1px solid #34343b;
  border-radius: 6px;
  color: #9d9da8;
  gap: 9px;
  position: relative;
}
.pipeline-node > span:last-child {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.3px;
}
.pipeline-core {
  border-color: #405b83;
  color: #b6cdef;
  background: #151f31;
}
.pipeline-edge {
  height: 1px;
  flex: 1;
  max-width: 40px;
  background: #41414b;
  position: relative;
}
.pipeline-edge::after {
  content: "";
  width: 3px;
  height: 3px;
  background: #8cadd9;
  position: absolute;
  top: -1px;
  left: 48%;
}
.vector-symbol {
  font-size: 25px;
  height: 20px;
  line-height: 0.65;
  letter-spacing: 1px;
}
.retrieval-panel {
  margin: 21px auto 0;
  border: 1px solid #2d2d33;
  background: #141417;
  border-radius: 5px;
  max-width: 335px;
  padding: 12px 14px;
}
.retrieval-label {
  display: flex;
  justify-content: space-between;
  color: #93939c;
  font-size: 7px;
  margin-bottom: 9px;
}
.retrieval-label span:last-child {
  color: #8ca8cf;
}
.retrieval-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 7px;
  color: #898991;
}
.retrieval-row i {
  width: 75%;
  height: 4px;
  background: #496387;
  border-radius: 1px;
}
.retrieval-row:nth-child(3) i {
  width: 66%;
  background: #354c6c;
}
.retrieval-row:nth-child(4) i {
  width: 53%;
  background: #283a54;
}
.retrieval-row b {
  font-weight: 400;
  margin-left: auto;
}
.simulation-mockup {
  padding: 21px 25px 12px;
}
.plot-label {
  font-size: 7px;
  color: #92929d;
  display: flex;
  justify-content: space-between;
}
.simulation-plot {
  width: 100%;
  height: 169px;
  margin-top: 4px;
}
.plot-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 6px;
  color: #9a9aa4;
}
.plot-legend > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.plot-legend i {
  display: block;
  width: 12px;
  height: 1px;
  background: #a2b4ce;
}
.plot-legend > span:last-child i {
  background: #646973;
}
.lab-mockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(#35353c 0.65px, transparent 0.65px);
  background-size: 17px 17px;
}
.lab-orbit {
  border: 1px solid #2d2d35;
  width: 147px;
  height: 147px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.lab-orbit-inner {
  position: absolute;
  inset: 20px;
  border: 1px dashed #3d3d45;
  border-radius: 50%;
}
.lab-plus {
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  background: #18181c;
  border: 1px solid #4a4a54;
  border-radius: 11px;
  font-size: 31px;
  font-weight: 200;
  color: #aaaab4;
  transform: rotate(-8deg);
}
.orbit-point {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0b8a6;
  position: absolute;
  right: 17px;
  top: 21px;
}
.orbit-corner {
  position: absolute;
  right: -44px;
  bottom: 15px;
  font-size: 7px;
  color: #92929e;
}
.lab-mockup > p {
  font-size: 6px;
  color: var(--quiet);
  letter-spacing: 1px;
  margin-top: 19px;
  background: #090d18;
  padding: 4px;
}
.fallback-card {
  min-height: 200px;
}
.fallback-card .project-content {
  border-top: 0;
}
.fallback-card h3 {
  margin-block: 12px;
  font-size: 24px;
}
.text-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--accent);
}
.project-message {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  grid-column: 1/-1;
  color: var(--muted);
  line-height: 1.8;
}
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.about-intro h2 {
  font-size: 31px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.muted-heading {
  color: #95959e;
}
.about-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  max-width: 370px;
  margin-top: 12px;
}
.about-signature {
  margin-top: 29px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.signature-mark {
  font-family: Georgia, serif;
  font-size: 25px;
  font-style: italic;
  letter-spacing: -1px;
}
.signature-mark > span {
  color: var(--accent);
}
.about-signature > .mono {
  color: var(--quiet);
  font-size: 7px;
  letter-spacing: 0.8px;
}
.expertise {
  display: flex;
  gap: 19px;
  border-bottom: 1px solid var(--line);
  padding-block: 25px;
}
.expertise:first-child {
  padding-top: 2px;
}
.expertise:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.expertise-index {
  color: #777782;
  font-size: 10px;
  padding-top: 4px;
}
.expertise h3 {
  font-size: 14px;
  font-weight: 500;
}
.expertise h3 > span {
  color: #7f7f89;
  font-size: 11px;
  font-weight: 400;
  margin-left: 12px;
}
.expertise p {
  color: var(--muted);
  font-size: 11px;
  margin-block: 10px 14px;
  line-height: 1.7;
}
.notes-caption {
  color: var(--quiet);
  font-size: 10px;
}
.notes-list {
  border-top: 1px solid var(--line);
}
.note {
  border-bottom: 1px solid var(--line);
}
.note summary {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 24px 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.note summary::-webkit-details-marker {
  display: none;
}
.note summary:hover {
  background: #111114;
}
.note-index {
  font-size: 10px;
  color: #85858e;
}
.note-category {
  color: var(--quiet);
  font-size: 8px;
  letter-spacing: 0.7px;
  display: block;
  margin-bottom: 7px;
}
.note h3 {
  font-size: 15px;
  font-weight: 450;
}
.note-action {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}
.note-action .mono {
  font-size: 9px;
}
.note-action .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.note[open] .note-action .icon {
  transform: rotate(180deg);
}
.note-body {
  padding: 0 50px 26px 57px;
  max-width: 850px;
  color: #adadb7;
  font-size: 13px;
  line-height: 2;
}
.note-body p + p {
  margin-top: 12px;
}
.contact-section {
  padding-block: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #0c0c0e;
  border-bottom: 1px solid var(--line);
}
.contact-section .eyebrow {
  font-size: 8px;
  margin-bottom: 13px;
}
.contact-section h2 {
  font-size: 25px;
}
.contact-section p:last-child {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.contact-projects {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #414148;
  border-radius: 50%;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.contact-projects:hover {
  background: #1f1f23;
  border-color: #6b6b73;
}
.contact-projects .icon {
  width: 23px;
  height: 23px;
  transform: rotate(-45deg);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px;
  gap: 24px;
}
.footer-identity {
  display: flex;
  align-items: center;
  gap: 19px;
}
.footer-wordmark {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.footer-wordmark > span {
  color: var(--accent);
}
.footer-identity p {
  color: var(--quiet);
  font-size: 9px;
}
.social-matrix {
  display: flex;
  gap: 17px;
  font-size: 10px;
  color: #b1b1b8;
}
.social-matrix small {
  font-size: 8px;
  color: var(--quiet);
  margin-left: 3px;
}
.back-top {
  font-size: 8px;
  color: var(--quiet);
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-top:hover {
  color: var(--text);
}
/* 原生 dialog 提供焦点围栏与 Escape；全站无字体/CDN/模糊滤镜依赖。 */
.project-dialog {
  background: #141416;
  border: 1px solid #414148;
  border-radius: 12px;
  color: var(--text);
  padding: 28px;
  width: min(500px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
}
.project-dialog::backdrop {
  background: #000b;
}
.dialog-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.dialog-topline .mono {
  font-size: 9px;
  color: var(--muted);
}
.dialog-close {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: #232327;
  border: 1px solid #3c3c42;
  border-radius: 5px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  font-weight: 300;
}
.project-dialog h2 {
  font-size: 27px;
}
#dialog-description {
  font-size: 13px;
  color: #b5b5be;
  line-height: 1.9;
  margin-block: 18px;
}
.dialog-status {
  font-size: 11px;
  color: var(--muted);
  padding-block: 20px;
}
.dialog-done {
  width: 100%;
}
@media (min-width: 1600px) {
  .page-frame {
    margin-block: 28px;
    border-top: 1px solid #1c1c20;
    border-bottom: 1px solid #1c1c20;
  }
}
@media (max-width: 1100px) {
  .section-pad {
    padding-inline: 32px;
  }
  .about-section {
    gap: 50px;
  }
  .project-content {
    padding-inline: 21px;
  }
  .knowledge-mockup {
    padding-inline: 22px;
  }
  .mock-sidebar {
    width: 85px;
  }
  .assistant-mockup {
    padding-inline: 20px;
  }
  .footer-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}
@media (max-width: 800px) {
  .section-pad {
    padding-inline: 26px;
  }
  .section-block {
    padding-block: 56px;
  }
  .site-header {
    height: 76px;
  }
  .site-nav {
    gap: 20px;
  }
  .focus-strip {
    gap: 12px;
    font-size: 10px;
    min-height: 59px;
  }
  .strip-label {
    font-size: 7px;
  }
  h2 {
    font-size: 26px;
  }
  .project-card:nth-child(n) {
    grid-column: span 6;
  }
  .project-grid {
    gap: 14px;
  }
  .project-content {
    padding: 20px;
  }
  .project-category {
    font-size: 7px;
    letter-spacing: 0.4px;
  }
  .project-status {
    font-size: 8px;
  }
  .project-heading h3 {
    font-size: 19px;
  }
  .project-description {
    font-size: 11px;
  }
  .mockup {
    height: 211px;
  }
  .assistant-mockup {
    padding: 25px 13px 0;
  }
  .mock-sidebar {
    display: none;
  }
  .mock-chat {
    padding-inline: 12px;
  }
  .mock-answer p {
    font-size: 7px;
  }
  .knowledge-mockup {
    padding-inline: 14px;
    padding-top: 25px;
  }
  .pipeline-node {
    width: 64px;
    height: 58px;
  }
  .pipeline-node > span:last-child {
    font-size: 5px;
  }
  .retrieval-panel {
    margin-top: 16px;
  }
  .simulation-mockup {
    padding: 17px 12px;
  }
  .simulation-plot {
    height: 143px;
  }
  .lab-orbit {
    width: 125px;
    height: 125px;
  }
  .about-section {
    gap: 30px;
  }
  .about-intro h2 {
    font-size: 27px;
  }
  .expertise {
    gap: 12px;
  }
  .expertise h3 > span {
    display: block;
    margin: 4px 0 0;
    font-size: 10px;
  }
  .expertise h3 {
    font-size: 13px;
  }
  .social-matrix {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 600px) {
  .section-pad {
    padding-inline: 22px;
  }
  .page-frame {
    border: 0;
  }
  .site-header {
    height: 72px;
    position: relative;
    flex-wrap: wrap;
    z-index: 3;
    background: var(--bg);
  }
  .wordmark {
    font-size: 22px;
  }
  .site-nav {
    gap: 14px;
    font-size: 11px;
  }
  .site-nav .nav-social {
    padding-left: 14px;
  }
  .nav-social .icon,
  .nav-social-arrow {
    display: none;
  }
  /* JS 初始化成功后才启用折叠菜单；禁用 JS 时导航仍可直接使用。 */
  .js .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .menu-toggle > span {
    height: 1px;
    width: 17px;
    background: #b9b9c1;
    transition: transform 0.18s;
  }
  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] > span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    padding: 15px 22px 20px;
    background: #0e1422;
    border-bottom: 1px solid #3c3c42;
    gap: 0;
  }
  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .js .site-nav a {
    padding: 14px 10px;
    font-size: 13px;
  }
  .js .site-nav .nav-social {
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 5px;
    padding-top: 18px;
  }
  .js .nav-social .icon {
    display: block;
  }
  .button {
    font-size: 12px;
    padding: 11px 15px;
    gap: 18px;
  }
  .focus-strip {
    padding-block: 19px;
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: 13px;
    row-gap: 13px;
    font-size: 10px;
  }
  .strip-label {
    flex: 0 0 100%;
    font-size: 7px;
  }
  .strip-cross {
    font-size: 9px;
  }
  .section-block {
    padding-block: 49px;
  }
  .section-heading {
    display: block;
    margin-bottom: 25px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    margin-bottom: 13px;
  }
  h2 {
    font-size: 25px;
    letter-spacing: -0.9px;
  }
  .section-intro {
    margin-top: 15px;
    font-size: 11px;
  }
  .section-intro br {
    display: none;
  }
  .project-card:nth-child(n) {
    grid-column: 1/-1;
  }
  .project-grid {
    gap: 17px;
  }
  .mockup {
    height: 225px;
  }
  .assistant-mockup {
    padding: 25px 18px 0;
  }
  .mock-sidebar {
    display: flex;
    width: 79px;
  }
  .sidebar-item {
    font-size: 7px;
    padding-inline: 3px;
  }
  .sidebar-bottom {
    font-size: 4px;
    left: 9px;
  }
  .mock-chat {
    padding: 14px 10px;
  }
  .mock-user {
    font-size: 7px;
    padding-inline: 7px;
  }
  .mock-answer {
    gap: 6px;
  }
  .mock-answer strong {
    font-size: 8px;
  }
  .mock-answer p {
    font-size: 7px;
  }
  .source-chip {
    font-size: 5px;
  }
  .mock-input {
    font-size: 7px;
  }
  .project-content {
    padding: 20px 21px 23px;
  }
  .project-category {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .project-heading h3 {
    font-size: 22px;
  }
  .project-description {
    font-size: 12px;
  }
  .project-status {
    font-size: 9px;
  }
  .project-tags {
    margin-top: 16px;
  }
  .tech-tags > span {
    font-size: 9px;
  }
  .project-disclaimer {
    font-size: 8px;
    text-align: left;
  }
  .knowledge-mockup {
    padding: 28px 28px 24px;
  }
  .pipeline-node {
    width: 66px;
    height: 60px;
  }
  .pipeline-node > span:last-child {
    font-size: 6px;
  }
  .retrieval-panel {
    margin-top: 19px;
  }
  .simulation-mockup {
    padding: 23px 20px 14px;
  }
  .simulation-plot {
    height: 157px;
  }
  .lab-orbit {
    width: 140px;
    height: 140px;
  }
  .about-section {
    display: block;
  }
  .about-intro h2 {
    font-size: 29px;
  }
  .about-intro > p:not(.eyebrow) {
    font-size: 12px;
  }
  .about-signature {
    margin-top: 23px;
  }
  .expertise-list {
    margin-top: 38px;
    border-top: 1px solid var(--line);
  }
  .expertise:first-child {
    padding-top: 24px;
  }
  .expertise {
    padding-block: 22px;
    gap: 18px;
  }
  .expertise h3 {
    font-size: 14px;
  }
  .expertise h3 > span {
    display: inline;
    margin-left: 12px;
  }
  .notes-caption {
    display: inline-block;
    margin-top: 14px;
    font-size: 9px;
  }
  .note summary {
    padding-block: 21px;
    gap: 15px;
  }
  .note-index {
    font-size: 8px;
  }
  .note-category {
    font-size: 7px;
  }
  .note h3 {
    font-size: 13px;
    line-height: 1.6;
  }
  .note-action .mono {
    display: none;
  }
  .note-action {
    gap: 0;
  }
  .note-action .icon {
    width: 15px;
  }
  .note-body {
    padding: 0 8px 22px 32px;
    font-size: 12px;
  }
  .contact-section {
    padding-block: 41px;
    gap: 20px;
  }
  .contact-section h2 {
    font-size: 21px;
  }
  .contact-section .eyebrow {
    font-size: 6px;
  }
  .contact-section p:last-child {
    font-size: 10px;
  }
  .contact-projects {
    width: 42px;
    height: 42px;
  }
  .site-footer {
    padding-block: 26px;
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-identity {
    flex: 1;
  }
  .social-matrix {
    font-size: 9px;
  }
  .back-top {
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-size: 7px;
  }
}
@media (max-width: 360px) {
  .section-pad {
    padding-inline: 17px;
  }
  .mock-sidebar {
    display: none;
  }
  .focus-strip {
    column-gap: 10px;
    font-size: 9px;
  }
  .site-nav {
    gap: 9px;
    font-size: 9px;
  }
  .site-nav .nav-social {
    padding-left: 9px;
  }
  .contact-section h2 {
    font-size: 18px;
  }
  .contact-projects {
    width: 35px;
    height: 35px;
  }
  h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 600px) {
  .project-link {
    width: 44px;
    height: 44px;
  }
  html:not(.js) .site-header {
    height: auto;
    padding-block: 18px;
    gap: 18px;
  }
  html:not(.js) .site-nav {
    flex-wrap: wrap;
  }
}
