:root {
  --bg: #07111f;
  --bg-soft: #0b172a;
  --panel: rgba(8, 19, 38, 0.66);
  --panel-strong: rgba(9, 20, 39, 0.9);
  --border: rgba(135, 205, 255, 0.16);
  --text: #ecf7ff;
  --muted: #93a9c5;
  --primary: #6ae2ff;
  --primary-strong: #2cbcff;
  --accent: #7b61ff;
  --highlight: #54f2b3;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(57, 116, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #050d18 0%, #091321 48%, #07111f 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.aurora {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.6;
  animation: float 16s ease-in-out infinite;
}

.aurora-one {
  top: 8%;
  left: -8%;
  width: 24rem;
  height: 24rem;
  background: rgba(84, 242, 179, 0.14);
}

.aurora-two {
  top: 18%;
  right: -10%;
  width: 32rem;
  height: 32rem;
  background: rgba(106, 226, 255, 0.16);
  animation-delay: -5s;
}

.aurora-three {
  bottom: 10%;
  left: 22%;
  width: 28rem;
  height: 28rem;
  background: rgba(123, 97, 255, 0.18);
  animation-delay: -10s;
}

.grid,
.noise {
  position: absolute;
  inset: 0;
}

.grid {
  background-image:
    linear-gradient(rgba(132, 190, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 190, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.86), transparent 78%);
}

.noise {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px),
    radial-gradient(circle at 55% 70%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px);
  background-size: 180px 180px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 20px 0;
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(6, 13, 24, 0.52);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled .nav {
  background: rgba(6, 13, 24, 0.82);
  border-color: rgba(106, 226, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(106, 226, 255, 0.22), rgba(123, 97, 255, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--primary), transparent);
  transition: transform 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.section {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 36px;
  padding: 72px 0 52px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #f7fbff 0%, var(--primary) 46%, var(--highlight) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text,
.glass-card p,
.focus-card p,
.post-card p,
.timeline-item p,
.cta-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 60ch;
  margin: 24px 0 0;
  font-size: 1.04rem;
}

.hero-roles {
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 23, 42, 0.44);
}

.hero-roles-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #05111f;
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  box-shadow: 0 18px 34px rgba(84, 242, 179, 0.18);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.glass-card,
.focus-card,
.post-card,
.timeline-item,
.cta-card,
.profile-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 25, 47, 0.86) 0%, rgba(7, 16, 31, 0.74) 100%);
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px 20px;
}

.hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

.hero-stats span {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.profile-card {
  width: min(100%, 430px);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(106, 226, 255, 0.18), transparent 68%);
}

.profile-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  padding: 4px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(106, 226, 255, 0.55), rgba(123, 97, 255, 0.58));
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.profile-name {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.profile-title {
  margin: 8px 0 0;
  color: var(--muted);
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.signal-list span,
.post-meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
  font-size: 0.82rem;
}

.profile-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-panel p {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 700;
}

.profile-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.profile-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.profile-links a {
  color: var(--muted);
}

.profile-links a:hover {
  color: var(--text);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.about,
.focus,
.featured,
.timeline,
.connect {
  padding: 60px 0;
}

.about-grid,
.focus-grid,
.featured-grid {
  display: grid;
  gap: 20px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-card,
.focus-card,
.post-card {
  padding: 24px;
}

.glass-card h3,
.focus-card h3,
.post-card h3,
.timeline-item h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-index {
  color: var(--highlight);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
}

.post-card:hover,
.glass-card:hover,
.focus-card:hover,
.timeline-item:hover {
  transform: translateY(-6px);
  border-color: rgba(106, 226, 255, 0.28);
}

.timeline-list {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
}

.timeline-date {
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
}

.comment-shell {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 25, 47, 0.86) 0%, rgba(7, 16, 31, 0.74) 100%);
  box-shadow: var(--shadow);
}

.comment-shell-head {
  margin-bottom: 22px;
}

.comment-shell-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: -0.04em;
}

.comment-shell-head p:last-child {
  color: var(--muted);
}

.comment-board {
  min-height: 320px;
}

.v {
  color: var(--text) !important;
}

.v .vwrap,
.v .vlist .vcard,
.v .vempty,
.v .vpage .vmore {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: var(--radius-md) !important;
}

.v .vwrap {
  padding: 18px !important;
}

.v .vheader .vinput,
.v .veditor,
.v .vpreview,
.v .vbtn,
.v input,
.v textarea {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
}

.v .vheader .vinput,
.v .veditor {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.v .vheader .vinput::placeholder,
.v .veditor::placeholder {
  color: rgba(236, 247, 255, 0.45) !important;
}

.v .vbtn {
  min-height: 42px;
  padding: 0 16px !important;
  font-weight: 700 !important;
}

.v .vbtn:hover,
.v .vbtn:focus-visible {
  border-color: rgba(106, 226, 255, 0.3) !important;
}

.v .vctrl span,
.v .vhead .vnick,
.v .vmeta .vat,
.v a {
  color: var(--primary) !important;
}

.v .vempty,
.v .vcount,
.v .vmeta,
.v .info,
.v .vsys,
.v .vtime {
  color: var(--muted) !important;
}

.v .vcontent {
  color: var(--text) !important;
  line-height: 1.8 !important;
}

.v .vimg {
  border-radius: 14px !important;
}

.page-hero {
  padding: 64px 0 28px;
}

.page-hero .hero-text {
  max-width: 72ch;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.content-section {
  padding: 28px 0 60px;
}

.stack-section,
.list-grid,
.taxonomy-grid {
  display: grid;
  gap: 20px;
}

.list-card,
.taxonomy-card,
.article-shell,
.toc-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(13, 25, 47, 0.86) 0%, rgba(7, 16, 31, 0.74) 100%);
  box-shadow: var(--shadow);
}

.list-card,
.taxonomy-card {
  padding: 24px;
}

.list-card:hover,
.taxonomy-card:hover {
  transform: translateY(-6px);
  border-color: rgba(106, 226, 255, 0.28);
}

.list-card h3,
.taxonomy-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.list-card p,
.taxonomy-card p,
.taxonomy-card li,
.mini-list li {
  color: var(--muted);
  line-height: 1.8;
}

.list-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.list-card-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.mini-list a:hover {
  color: var(--text);
}

.taxonomy-card p {
  margin: 12px 0 0;
}

.taxonomy-count {
  color: var(--primary);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.article-shell {
  padding: 28px;
}

.article-main-header {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-main-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.article-body {
  padding-top: 24px;
}

.toc-panel {
  position: sticky;
  top: 110px;
  padding: 22px;
}

.toc-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.toc-panel ol,
.toc-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.toc-panel a {
  color: var(--muted);
}

.toc-panel a:hover {
  color: var(--text);
}

.prose {
  color: var(--text);
  line-height: 1.9;
  font-size: 1rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  margin: 1.7em 0 0.8em;
  line-height: 1.3;
  color: var(--text);
}

.prose h2,
.prose h3 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose table,
.prose pre,
.prose figure {
  margin: 1em 0;
}

.prose a {
  color: var(--primary);
}

.prose blockquote {
  padding: 16px 18px;
  border-left: 3px solid var(--primary);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.prose code {
  padding: 0.16em 0.4em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #bdf7e1;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

.prose pre {
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.prose img {
  margin: 18px auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prose hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable reveal effects for blog article pages so the original content always stays visible. */
.content-section,
.content-section .article-layout,
.content-section .article-shell,
.content-section .article-body,
.content-section .toc-panel,
.connect .comment-shell {
  visibility: visible !important;
  opacity: 1 !important;
}

.page-hero .section-heading.reveal,
.content-section.reveal,
.content-section .article-layout.reveal,
.content-section .article-layout .article-shell.reveal,
.content-section .article-layout .article-body.reveal,
.content-section .article-layout .toc-panel.reveal,
.connect .comment-shell.reveal {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.content-section .article-layout {
  display: grid !important;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 1080px) {
  .hero,
  .about-grid,
  .focus-grid,
  .featured-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .cta-card {
    display: grid;
  }

  .toc-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 16px 0;
  }

  .nav {
    padding: 12px 14px;
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 16px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .section {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.8rem, 16vw, 4.5rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--container));
    flex-direction: column;
  }

  .article-shell,
  .comment-shell {
    padding: 22px;
  }

  .list-card-head {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
