:root {
  color-scheme: light;
  --bg: #f6f7fa;
  --card: #fff;
  --text: #1d2535;
  --muted: #697386;
  --line: #e3e7ee;
  --accent: #5269c9;
  --soft: #edf0fc;
  --glass: rgba(246, 247, 250, 0.86);
  --shadow: 0 12px 32px rgba(32, 43, 75, 0.045);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11151e;
  --card: #191f2b;
  --text: #e6eaf2;
  --muted: #a0aec2;
  --line: #2b3545;
  --accent: #a6b7ff;
  --soft: #252e49;
  --glass: rgba(17, 21, 30, 0.87);
  --shadow: 0 12px 32px #0002;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 28px;
  margin-bottom: 0;
}
h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.shell {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
}
.brand-caption {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  margin-left: auto;
  gap: 6px;
}
.nav-links a {
  padding: 7px 16px;
  color: var(--muted);
  font-size: 13px;
  border-radius: 9px;
}
.nav-links a[aria-current],
.nav-links a:hover {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 5px #00000008;
}
.nav-tools {
  display: flex;
  gap: 5px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 7px;
  min-width: 32px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 84px;
  align-items: center;
  padding: 92px 0 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 17px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #46a485;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #46a48510;
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.34;
  letter-spacing: -0.05em;
  margin: 24px 0;
}
.hero h1 span {
  display: block;
}
.accent {
  color: var(--accent);
}
.hero-description {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 480px;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.hero-footnote {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin: 34px 0 0;
}
.hero-footnote span {
  margin: 0 8px;
  color: var(--line);
}
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px #2738610a;
  overflow: hidden;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.window-dots {
  color: #b9c0cf;
  letter-spacing: 3px;
}
.focus-header {
  text-align: center;
  padding: 28px 20px 8px;
}
.focus-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  width: 48px;
  height: 48px;
  background: var(--soft);
  color: var(--accent);
  border-radius: 15px;
  font-size: 28px;
}
.focus-header h2 {
  font-size: 21px;
}
.focus-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.flow {
  padding: 6px 25px 22px;
  display: grid;
  gap: 9px;
}
.flow > div {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
}
.flow span {
  font-size: 9px;
  color: var(--muted);
}
.flow b {
  font-size: 12px;
  font-weight: 500;
}
.flow small {
  font-size: 9px;
  color: var(--muted);
}
.panel-bottom {
  border-top: 1px solid var(--line);
  padding: 12px;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
}
.panel-bottom .status-dot {
  margin-right: 6px;
  width: 4px;
  height: 4px;
}
.section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: 25px;
}
.text-link {
  font-size: 12px;
  color: var(--muted);
}
.text-link:hover {
  color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.project-art {
  height: 178px;
  background: #eef0f8;
  display: grid;
  place-items: center;
  padding: 24px;
}
.art-1 {
  background: #edf3f2;
}
.art-2 {
  background: #f2eff7;
}
[data-theme="dark"] .project-art {
  background: #262e43;
}
.art-window {
  width: 90%;
  height: 125px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  box-shadow: 0 8px 18px #242e4510;
}
.art-window > span {
  font-size: 9px;
  color: var(--muted);
}
.art-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 16px 0;
}
.art-nodes b {
  font-size: 7px;
  font-weight: 500;
  background: var(--soft);
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 5px;
}
.art-nodes i {
  font-size: 10px;
  color: var(--muted);
}
.art-lines {
  display: grid;
  gap: 4px;
}
.art-lines i {
  height: 3px;
  background: var(--line);
  width: 80%;
  border-radius: 2px;
}
.art-lines i:nth-child(2) {
  width: 60%;
}
.art-lines i:nth-child(3) {
  width: 70%;
}
.project-copy {
  padding: 22px;
}
.project-copy .eyebrow {
  font-size: 8px;
}
.project-copy h3 {
  font-size: 17px;
}
.project-copy h3 a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.project-copy h3 span {
  color: var(--muted);
}
.muted {
  color: var(--muted);
  line-height: 1.85;
}
.project-copy .muted {
  font-size: 12px;
}
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tags a,
.tags span {
  font-size: 9px;
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}
.tags a:hover {
  color: var(--accent);
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.focus-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.focus-number {
  font-size: 10px;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}
.focus-card h3 {
  font-size: 16px;
}
.focus-card p {
  font-size: 12px;
  margin-bottom: 0;
}
.post-row {
  display: grid;
  grid-template-columns: 145px 1fr 28px;
  gap: 20px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
}
.post-row:first-child {
  border-top: 0;
}
.post-date {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.post-date span {
  font-size: 9px;
}
.post-row h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.post-row h3 a:hover {
  color: var(--accent);
}
.post-row .muted {
  font-size: 12px;
  margin-bottom: 12px;
}
.row-arrow {
  align-self: center;
  color: var(--muted);
}
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 20px 0 68px;
  padding: 35px 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.contact-card h2 {
  font-size: 25px;
}
.contact-card .muted {
  font-size: 12px;
  margin: 10px 0 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer .brand {
  font-size: 13px;
}
.footer p {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 0;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
}
.page {
  padding-top: 60px;
  padding-bottom: 90px;
  min-height: 70vh;
}
.page-heading {
  margin-bottom: 42px;
}
.page-heading h1 {
  font-size: 38px;
  line-height: 1.5;
}
.reading {
  max-width: 800px;
}
.search {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}
.search input,
.search select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.search input {
  flex: 1;
}
.empty {
  padding: 35px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
}
.article-header {
  max-width: 820px;
  margin: 45px 0;
}
.article-header h1 {
  font-size: 42px;
}
.article-meta {
  color: var(--muted);
  font-size: 12px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 210px;
  gap: 64px;
  align-items: start;
}
.prose {
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  min-width: 0;
}
.prose h1 {
  font-size: 30px;
}
.prose h2 {
  font-size: 25px;
  margin: 42px 0 20px;
}
.prose h3 {
  margin: 32px 0 15px;
}
.prose p {
  margin-bottom: 24px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose pre {
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 13px;
  line-height: 1.75;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--soft);
  padding: 2px 5px;
  border-radius: 4px;
}
.prose pre code {
  padding: 0;
  background: none;
}
.prose blockquote {
  margin: 25px 0;
  padding: 10px 24px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
}
.prose table {
  display: block;
  overflow: auto;
  border-collapse: collapse;
  margin: 25px 0;
  max-width: 100%;
}
.prose th,
.prose td {
  padding: 12px 20px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.toc {
  position: sticky;
  top: 110px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.toc a {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.toc .toc-level-3 {
  padding-left: 10px;
}
.toc .button {
  margin-top: 20px;
}
.toc span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 30px;
}
.demo-banner,
.preview-notice {
  text-align: center;
  background: var(--soft);
  color: var(--accent);
  padding: 8px;
  font-size: 11px;
}
.skip {
  position: fixed;
  left: 10px;
  top: -100px;
  z-index: 99;
  background: var(--card);
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 110px;
    padding-bottom: 95px;
  }
}
@media (max-width: 950px) {
  .brand-caption {
    display: none;
  }
  .hero {
    gap: 35px;
  }
  .flow {
    padding: 8px 14px 20px;
  }
  .flow > div {
    grid-template-columns: 22px 1fr;
  }
  .flow small {
    grid-column: 2;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 30px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 640px) {
  .shell {
    width: calc(100% - 36px);
  }
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 100px;
    padding-top: 12px;
    padding-bottom: 8px;
  }
  .brand {
    font-size: 15px;
  }
  .nav-tools {
    margin-left: auto;
    border: 0;
    padding: 0;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .nav-links a {
    padding: 5px 14px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 40px;
    gap: 32px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-footnote {
    font-size: 7px;
  }
  .hero-panel {
    max-width: none;
  }
  .flow > div {
    grid-template-columns: 24px 1fr auto;
  }
  .flow small {
    grid-column: auto;
  }
  .focus-header {
    padding-top: 22px;
  }
  .section {
    padding: 32px 0;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .project-grid,
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .project-art {
    height: 180px;
  }
  .project-copy .muted,
  .focus-card p {
    font-size: 13px;
  }
  .focus-card {
    padding: 20px;
  }
  .focus-number {
    margin-bottom: 10px;
  }
  .post-row {
    grid-template-columns: 1fr 24px;
    gap: 8px;
  }
  .post-date {
    grid-column: 1/-1;
    flex-direction: row;
    gap: 12px;
    font-size: 10px;
  }
  .post-row h3 {
    font-size: 18px;
  }
  .post-row .muted {
    font-size: 13px;
  }
  .contact-card {
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
  }
  .contact-card h2 {
    font-size: 23px;
  }
  .footer {
    flex-direction: column;
    gap: 15px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 12px;
  }
  .page {
    padding-top: 40px;
    padding-bottom: 55px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .search {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search input {
    flex-basis: 100%;
  }
  .search select {
    flex: 1;
  }
  .article-header {
    margin: 28px 0;
  }
  .article-header h1 {
    font-size: 30px;
  }
  .article-layout {
    display: flex;
    flex-direction: column;
  }
  .toc {
    order: -1;
    position: static;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .prose {
    font-size: 16px;
    width: 100%;
  }
  .prose pre {
    padding: 16px;
  }
  .article-layout .toc .eyebrow {
    margin-bottom: 10px;
  }
  .prose h2 {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
