@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0f0f11;
  --bg-card: #171821;
  --surface: #1c1d27;
  --text: #f5f5f5;
  --text-dim: #d0d0d0;
  --text-muted: #aaaaaa;
  --border: rgba(255,255,255,.08);
  --border-soft: rgba(255,255,255,.05);
  --border-strong: rgba(255,255,255,.16);
  --accent: #3b82f6;
  --accent-2: #a855f7;
  --accent-3: #f97316;
  --accent-dark: #1e3a8a;
  --accent-glow: 0 0 18px rgba(59, 130, 246, .55), 0 0 42px rgba(59, 130, 246, .35);
  --accent-glow-strong: 0 0 30px rgba(59, 130, 246, .7), 0 0 55px rgba(59, 130, 246, .45);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 20px 35px rgba(0,0,0,.28);
  --shadow-lg: 0 35px 65px rgba(0,0,0,.35);
  --shadow-xl: 0 50px 90px rgba(0,0,0,.42);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,.05), 0 25px 60px rgba(0,0,0,.55);
  --bg-gradient: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .18), transparent 52%),
                 radial-gradient(circle at 85% 28%, rgba(168, 85, 247, .12), transparent 55%),
                 radial-gradient(circle at 50% 100%, rgba(249, 115, 22, .1), transparent 70%),
                 linear-gradient(180deg, #0e0e13 0%, #08080a 70%, #08080a 100%);
  --bg-pattern: linear-gradient(transparent 23px, rgba(255,255,255,.03) 24px),
                linear-gradient(90deg, transparent 23px, rgba(255,255,255,.03) 24px);
  --bg-overlay: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, .12), transparent 45%),
                radial-gradient(circle at 75% 18%, rgba(168, 85, 247, .1), transparent 48%),
                linear-gradient(120deg, rgba(255,255,255,.04), transparent 60%);
  --panel-bg: rgba(20, 21, 30, .92);
  --panel-border: rgba(255,255,255,.08);
  --panel-border-strong: rgba(59, 130, 246, .45);
  --panel-glow: 0 0 0 1px rgba(255,255,255,.05), 0 18px 45px rgba(0,0,0,.46);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --tag-accent-1: #3b82f6;
  --tag-accent-2: #a855f7;
  --tag-accent-3: #f97316;
}

html[data-theme=cyber-cyan] {
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --accent-3: #f97316;
  --accent-glow: 0 0 22px rgba(34, 197, 94, .65), 0 0 44px rgba(34, 197, 94, .35);
}

html[data-theme=cyber-magenta] {
  --accent: #ef4444;
  --accent-2: #facc15;
  --accent-3: #38bdf8;
  --accent-glow: 0 0 22px rgba(239, 68, 68, .65), 0 0 44px rgba(239, 68, 68, .35);
}

html[data-theme=cyber-lime] {
  --accent: #fb923c;
  --accent-2: #22c55e;
  --accent-3: #38bdf8;
  --accent-glow: 0 0 22px rgba(251, 146, 60, .65), 0 0 44px rgba(251, 146, 60, .35);
}

html[data-theme=cyber-violet] {
  --accent: #a855f7;
  --accent-2: #8b5cf6;
  --accent-3: #38bdf8;
  --accent-glow: 0 0 22px rgba(168, 85, 247, .65), 0 0 44px rgba(168, 85, 247, .35);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --accent-glow: none;
    --accent-glow-strong: none;
  }
}
.glow-text {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.55);
}

.glow-border {
  box-shadow: var(--accent-glow);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.surface-panel, .widget {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--panel-glow);
  position: relative;
  overflow: hidden;
}

.surface-panel::before, .widget::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-2xl) - 2px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  opacity: 0.55;
}

.focus-ring:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.4));
}

:root {
  font-size: 16px;
}

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

html {
  height: 100%;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-gradient), var(--bg-pattern);
  background-size: cover, 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  opacity: 0.9;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 15, 20, 0.7), transparent 35%), linear-gradient(180deg, rgba(15, 15, 22, 0.85), transparent 30%);
  pointer-events: none;
  z-index: -3;
}

main {
  display: block;
}

.skip-link {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: var(--panel-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--panel-border);
  color: var(--text);
  transition: top 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 24px;
  outline: none;
  box-shadow: var(--accent-glow);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.45);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

pre, code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Monaco, "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
}

pre {
  margin: 24px 0;
  border-radius: var(--radius-lg);
  background: rgba(10, 11, 18, 0.95);
  border: 1px solid var(--panel-border);
}

code {
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: var(--text);
}

hr {
  border: 0;
  height: 1px;
  margin: 48px 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

body > svg {
  position: absolute;
  width: 0;
  height: 0;
}

@media (max-width: 640px) {
  :root {
    font-size: 15px;
  }
  body {
    line-height: 1.65;
  }
}
/* Minimal reset + 可访问性基线 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4); /* 使用蓝色强调色 */
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

button:hover {
  border-color: rgba(59, 130, 246, 0.4); /* 使用蓝色强调色 */
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); /* 使用蓝色强调色 */
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); /* 使用蓝色强调色 */
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

/* 添加赛博感网格背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* 在减少动画模式下隐藏网格背景 */
  body::before {
    display: none;
  }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: var(--text);
  color: color-mix(in srgb, var(--text) 90%, #ffffff 10%);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.prose {
  max-width: 72ch;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 32px 0 16px;
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  margin: 24px 0 8px;
  color: color-mix(in srgb, var(--text) 85%, transparent);
}

h4 {
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  margin: 16px 0 8px;
}

h5 {
  font-size: 1.125rem;
  margin: 16px 0 4px;
}

h6 {
  font-size: 1rem;
  margin: 8px 0 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  color: color-mix(in srgb, var(--text) 88%, transparent);
  margin: 0 0 16px;
  line-height: 1.8;
}

a {
  color: color-mix(in srgb, var(--accent) 80%, #dbeafe 20%);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-color: rgba(59, 130, 246, 0.45);
  text-underline-offset: 4px;
}

strong, b {
  font-weight: 700;
  color: var(--text);
}

em, i {
  font-style: italic;
  color: var(--accent-2);
}

code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Monaco, "Inconsolata", "Roboto Mono", "Source Code Pro", monospace;
  font-size: 0.9em;
  background: rgba(20, 22, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

pre {
  background: rgba(16, 18, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}
pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

blockquote {
  background: #1A1A1A;
  border-left: 4px solid var(--accent);
  padding: 24px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  position: relative;
}
blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: Georgia, serif;
}
blockquote p {
  color: var(--text);
  margin-bottom: 0;
  font-style: italic;
}
blockquote cite {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.875rem;
}
blockquote cite::before {
  content: "— ";
}

ul, ol {
  margin: 16px 0;
  padding-left: 32px;
}
ul li, ol li {
  margin-bottom: 4px;
  color: var(--text-dim);
  line-height: 1.7;
}
ul li::marker, ol li::marker {
  color: var(--accent);
}
ul ul, ul ol, ol ul, ol ol {
  margin: 4px 0;
}

ul {
  list-style-type: none;
  padding-left: 24px;
}
ul li {
  position: relative;
}
ul li::before {
  content: "▶";
  position: absolute;
  left: -24px;
  color: var(--accent);
  font-size: 0.75rem;
}

ol {
  counter-reset: item;
}
ol li {
  counter-increment: item;
}
ol li::marker {
  content: counter(item) ". ";
  font-weight: 700;
  color: var(--accent);
}

hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px 0;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

.desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
  }
  h2::after {
    width: 60px;
    height: 3px;
  }
  h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
  }
  blockquote {
    padding: 16px;
  }
  blockquote::before {
    font-size: 2rem;
    left: 8px;
  }
  ul, ol {
    padding-left: 24px;
  }
  ul li::before {
    left: -16px;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 520ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}
.btn:hover::before {
  left: 100%;
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}
.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn:disabled:hover {
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(13, 13, 13, 0.9));
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn.primary::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.btn.primary:hover {
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  border-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 30px rgba(59, 130, 246, 0.3);
  transform: translateY(-3px);
}
.btn.primary:active {
  transform: translateY(-1px);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--accent);
}
.btn.secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-dim);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}

.btn.sm {
  padding: 4px 16px;
  font-size: 0.75rem;
}

.btn.lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
}
.btn.icon-only.sm {
  width: 32px;
  height: 32px;
}
.btn.icon-only.lg {
  width: 48px;
  height: 48px;
}

@media (max-width: 767px) {
  .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .btn.lg {
    padding: 16px 24px;
    font-size: 0.875rem;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  border-bottom: 1px solid transparent;
  background: rgba(12, 12, 18, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: none;
  transition: background-color 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.scrolled {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 12, 18, 0.9);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  height: clamp(60px, 8vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-logo img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.brand:hover .brand-logo {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.32);
}

.brand:hover .brand-logo img {
  transform: rotate(-6deg) scale(1.06);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.85);
  color: var(--text);
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(6px);
}

.site-header.is-nav-open .nav-toggle-bars {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bars::before {
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bars::after {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

.nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-primary a {
  position: relative;
  padding: 8px 16px;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: 12px;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-primary a::before {
  content: "";
  position: absolute;
  inset: auto 16px -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-primary a:hover {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.nav-primary a:hover::before,
.nav-primary a.active::before,
.nav-primary a[aria-current=page]::before {
  opacity: 1;
  transform: scaleX(1);
}

.nav-primary a.active,
.nav-primary a[aria-current=page] {
  color: var(--accent-2);
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
}

.nav-secondary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.8);
  color: var(--text-muted);
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-icon:hover {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.nav-icon[aria-current=page] {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28);
}

.nav-icon:hover svg {
  transform: scale(1.06);
}

.nav-pill {
  padding: 0 8px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 24, 0.72);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.theme-switcher .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 32, 0.9);
  padding: 0;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theme-switcher .chip svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
  fill: none;
}

.theme-switcher .chip svg rect {
  stroke: rgba(15, 23, 42, 0.4);
  stroke-width: 0.5;
}

.theme-switcher .chip:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
}

.theme-switcher .chip[aria-pressed=true] {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 16px 32px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.8);
  color: var(--text-muted);
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.icon-button.search-trigger {
  width: auto;
  min-width: 44px;
  padding-inline: 14px;
}

.icon-button.search-trigger svg {
  margin: 0;
}

.icon-button:hover {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.icon-button:hover svg {
  transform: scale(1.08);
}

.icon-button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    inset: 64px 16px auto;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 13, 20, 0.95);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .site-header.is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-primary,
  .nav-secondary {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-primary a,
  .nav-secondary a {
    width: 100%;
    justify-content: center;
  }
  .header-actions {
    margin-left: auto;
    gap: 16px;
  }
  .theme-switcher {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
  }
  .theme-switcher .chip {
    width: 36px;
    height: 36px;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.14) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%), url("../img/grid.svg");
  background-repeat: repeat;
  background-size: auto, auto, 60px 60px;
  background-position: center top;
  padding-block: clamp(64px, 10vw, 120px);
}

.hero-grid {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  position: relative;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }
}
.hero-copy {
  display: grid;
  gap: 8px;
  justify-items: flex-start;
}

.hero-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.7);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.6rem, 9vw, 6rem);
  line-height: 1.1;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.28);
}

.hero-title::after {
  content: "";
  display: block;
  width: clamp(140px, 18vw, 220px);
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0));
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.4);
}

.subtitle {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-dim);
  font-weight: 500;
}

.desc {
  margin: 0;
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-circuit {
  position: relative;
  width: clamp(260px, 38vw, 380px);
  height: clamp(130px, 26vw, 200px);
  margin-top: clamp(16px, 4vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(168, 85, 247, 0.12)), repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.18) 0 2px, transparent 2px 12px), repeating-linear-gradient(0deg, rgba(59, 130, 246, 0.12) 0 2px, transparent 2px 12px);
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.hero-circuit::before {
  content: "";
  position: absolute;
  inset: 18px 24px auto 24px;
  height: 2px;
  background: linear-gradient(90deg, rgb(59, 130, 246), rgba(59, 130, 246, 0));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.6);
}

.hero-circuit::after {
  content: "";
  position: absolute;
  bottom: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: radial-gradient(circle at 40% 35%, rgba(59, 130, 246, 0.6), transparent 70%);
  box-shadow: inset 0 0 14px rgba(59, 130, 246, 0.4);
}

.hero-circuit span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0), rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0));
  animation: circuit-scan 4s infinite ease-in-out;
  mix-blend-mode: screen;
}

@keyframes circuit-scan {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(115%);
    opacity: 0;
  }
}
@media (max-width: 768px) {
  .hero-circuit {
    width: min(320px, 100%);
    height: 150px;
  }
}
.hero-actions {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(59, 130, 246, 0.35);
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.4);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 16, 0.65);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta-label {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.hero-meta-link:hover {
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.hero-cover {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 25% 30%, rgba(59, 130, 246, 0.25), transparent 60%), radial-gradient(circle at 75% 70%, rgba(168, 85, 247, 0.18), transparent 65%), rgba(10, 12, 20, 0.85);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-cover::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: calc(var(--radius-2xl) * 0.8);
  border: 1px dashed rgba(59, 130, 246, 0.35);
  box-shadow: inset 0 0 22px rgba(59, 130, 246, 0.25);
  pointer-events: none;
}

.hero-cover::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 16%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
  filter: blur(1px);
  mix-blend-mode: screen;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(13, 16, 28, 0.95), rgba(9, 12, 24, 0.82));
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 18px rgba(59, 130, 246, 0.15);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.hero-panel-header span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: rgba(59, 130, 246, 0.85);
}

.hero-panel-header::before {
  content: "•••";
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: rgba(59, 130, 246, 0.7);
}

.hero-panel-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-panel-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.hero-stats li {
  display: grid;
  gap: 4px;
  text-align: center;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  padding: 10px 8px;
  color: var(--text);
}

.hero-stats span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-stats strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .hero-panel {
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .hero-cover {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-copy {
    justify-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
}
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, rgba(23, 24, 33, 0.92), rgba(18, 18, 24, 0.88));
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  isolation: isolate;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-2xl) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.4;
  pointer-events: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), transparent 55%, rgba(168, 85, 247, 0.12));
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-xl), 0 0 28px rgba(59, 130, 246, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.card-cover {
  position: relative;
  display: block;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transition: transform 520ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.92;
}

.card:hover .card-cover img {
  transform: scale(1.04);
  opacity: 1;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(15, 15, 20, 0.9), transparent 80%);
  pointer-events: none;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 16px);
  padding: clamp(24px, 3vw, 48px);
}

.card-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-title a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.meta::before {
  content: none;
}

.meta time {
  color: var(--text);
  font-weight: 600;
}

.meta .category {
  color: var(--accent-2);
  font-weight: 600;
}

.meta .readtime {
  color: var(--text-dim);
}

.meta-dot {
  color: var(--text-dim);
}

.excerpt {
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0;
  font-size: 1rem;
  flex-grow: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(20, 21, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tag::before {
  content: "#";
  color: var(--accent);
  font-weight: 600;
  opacity: 0.8;
}

.tag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(59, 130, 246, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
  color: var(--accent);
}

.tag:hover::after {
  opacity: 1;
}

.tag:nth-child(3n+2)::after {
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.3), transparent 60%);
}

.tag:nth-child(3n+3)::after {
  background: linear-gradient(120deg, rgba(249, 115, 22, 0.3), transparent 60%);
}

.card.pinned {
  border-color: var(--panel-border-strong);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35), 0 30px 60px rgba(59, 130, 246, 0.25);
}

.card.pinned .card-title::before {
  content: "\\2605";
  margin-right: 8px;
  font-size: 0.9em;
  color: var(--accent-3);
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

@media (max-width: 767px) {
  .card {
    border-radius: var(--radius-xl);
  }
  .card-cover img {
    height: 180px;
  }
  .card-body {
    padding: 24px;
  }
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.site-section {
  padding-block: clamp(48px, 8vw, 84px);
}

.layout-grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

@media (min-width: 960px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }
}
.section-head {
  display: grid;
  gap: 4px;
  margin-bottom: clamp(24px, 4vw, 32px);
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px);
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cards-grid .card {
  height: 100%;
}

.featured-grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

@media (min-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
.post-list {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.post-stream {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
}

.post-stream-item {
  display: grid;
  gap: clamp(8px, 3vw, 24px);
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  position: relative;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, rgba(20, 21, 28, 0.88), rgba(12, 13, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-stream-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-2xl) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.post-stream-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-xl);
}

.post-stream-thumb {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.post-stream-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-stream-body {
  display: grid;
  gap: 8px;
}

.post-stream-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-dot {
  opacity: 0.5;
}

.post-stream-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.6rem);
  line-height: 1.35;
}

.post-stream-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), text-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-stream-title a:hover {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.post-stream-excerpt {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 1rem;
}

.post-stream-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.post-stream-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.post-stream-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: text-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.post-stream-link:hover {
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 24, 0.75);
}

.pagination .btn {
  padding: 4px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent);
  text-decoration: none;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pagination .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.sidebar {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  align-content: start;
}

.widget {
  padding: clamp(24px, 2.5vw, 48px);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(18px);
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.widget.panel {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 2.5vw, 32px);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.widget.panel:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.sidebar .panel {
  backdrop-filter: blur(16px);
}

.widget-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: uppercase;
}

.widget.overview {
  display: grid;
  gap: 8px;
}

.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.overview-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.overview-list strong {
  color: var(--text);
  font-size: 1.05rem;
}

.tag-groups {
  display: grid;
  gap: 16px;
}

.tag-group-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tag-group-body {
  display: grid;
  gap: 4px;
}

.tag-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(20, 21, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tag-rank-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.2);
}

.tag-rank-name {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-rank-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.widget-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.widget-links {
  display: grid;
  gap: 4px;
}

.widget-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn.full {
  width: 100%;
  justify-content: center;
}

.empty-hint {
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .post-stream-item {
    grid-template-columns: 1fr;
  }
  .post-stream-thumb {
    width: 100%;
    max-height: 240px;
  }
}
@media (max-width: 640px) {
  .layout-grid {
    display: block;
  }
  .post-stream-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
.search-widget {
  position: relative;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field input[type=search] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 13, 20, 0.85);
  color: var(--text);
  transition: border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), background 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-field input[type=search]:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 12px 32px rgba(59, 130, 246, 0.18);
  background: rgba(18, 19, 28, 0.95);
}

.search-suggestions {
  position: absolute;
  inset: auto 0 auto 0;
  top: calc(100% + 10px);
  display: none;
  padding: 8px;
  border-radius: 20px;
  background: rgba(13, 14, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.search-suggestions a {
  display: block;
  padding: 0.45rem 0.5rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-suggestions a:hover {
  background: rgba(59, 130, 246, 0.16);
  color: var(--accent);
}

.hot-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hot-posts li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hot-posts .hot-rank {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.hot-posts a {
  flex: 1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.related-posts {
  margin-top: clamp(48px, 6vw, 64px);
  display: grid;
  gap: 16px;
}

.related-posts .cards-grid {
  margin-top: 8px;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 13, 18, 0.9);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-overlay.open .search-box {
  transform: translateY(0);
  opacity: 1;
}
.search-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(0, 234, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(255, 61, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.search-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow-xl), var(--accent-glow);
  overflow: hidden;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}
.search-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 234, 255, 0.5) 50%, transparent 100%);
}

.search-header {
  display: flex;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(0, 234, 255, 0.05);
}
.search-header .search-icon {
  color: var(--accent);
  margin-right: 16px;
  font-size: 1.25rem;
}
.search-header .search-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-header .search-close:hover {
  color: var(--accent);
  background: rgba(0, 234, 255, 0.1);
}

.search-input {
  width: 100%;
  padding: 24px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
  outline: none;
}
.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.search-input:focus {
  background: rgba(0, 234, 255, 0.02);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid var(--border-soft);
}
.search-results::-webkit-scrollbar {
  width: 6px;
}
.search-results::-webkit-scrollbar-track {
  background: var(--bg-soft);
}
.search-results::-webkit-scrollbar-thumb {
  background: rgba(0, 234, 255, 0.3);
  border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 234, 255, 0.5);
}

.search-result {
  padding: 24px;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}
.search-result:last-child {
  border-bottom: none;
}
.search-result:hover {
  background: rgba(0, 234, 255, 0.08);
  transform: translateX(4px);
}
.search-result:hover::before {
  opacity: 1;
}
.search-result::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.search-result h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.search-result p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.5;
}
.search-result .search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-result .search-meta .category {
  background: rgba(0, 234, 255, 0.1);
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--accent-2);
}
.search-result .search-meta .date::before {
  content: "📅 ";
}

.search-empty {
  padding: 48px;
  text-align: center;
  color: var(--text-dim);
}
.search-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.search-empty h3 {
  margin: 0 0 8px;
  color: var(--text);
}
.search-empty p {
  margin: 0;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .search-overlay {
    padding: 5vh 8px 8px;
  }
  .search-header {
    padding: 16px;
  }
  .search-input {
    padding: 16px;
    font-size: 1rem;
  }
  .search-result {
    padding: 16px;
  }
}
@keyframes searchPulse {
  0%, 100% {
    box-shadow: var(--shadow-xl), var(--accent-glow);
  }
  50% {
    box-shadow: var(--shadow-xl), var(--accent-glow-strong);
  }
}
.search-box:focus-within {
  animation: searchPulse 2s ease-in-out infinite;
}

.search-overlay {
  justify-content: flex-end;
  padding: clamp(72px, 12vh, 120px) clamp(24px, 6vw, 64px) clamp(24px, 8vh, 96px) clamp(24px, 6vw, 64px);
  z-index: 1200;
}

@media (max-width: 767px) {
  .search-overlay {
    justify-content: center;
    padding: clamp(48px, 10vh, 80px) 16px 16px 16px;
  }
}
.search-box {
  max-width: 520px;
}

/* Rouge 暗色霓虹配色 + 复制按钮 */
.highlight {
  background: #1A1A1A; /* 暗灰背景 */
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: auto;
  position: relative;
  /* 添加左侧亮色竖线 */
}
.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.highlight pre {
  margin: 0;
  padding: 14px 14px 14px 24px;
  background: transparent;
}

.highlight .lineno {
  color: #AAAAAA;
  margin-right: 12px;
} /* 次级文字 */
.highlight .hll {
  background: rgba(59, 130, 246, 0.1);
} /* 使用蓝色强调色 */
.highlight .c {
  color: #AAAAAA;
} /* Comment - 次级文字 */
.highlight .k {
  color: #A855F7;
} /* Keyword - 紫色强调色 */
.highlight .s {
  color: #F97316;
} /* String - 橙色强调色 */
.highlight .na, .highlight .nf {
  color: #3B82F6;
} /* Name/Function - 蓝色强调色 */
.highlight .nt {
  color: #A855F7;
} /* Tag - 紫色强调色 */
.highlight .mi, .highlight .m {
  color: #F97316;
} /* Number - 橙色强调色 */
.highlight .o, .highlight .p {
  color: #F5F5F5;
} /* 其他符号 - 正文文字 */
.code-block {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  background: rgba(26, 26, 26, 0.8); /* 暗色背景 */
  color: var(--text);
  cursor: pointer;
  transition: all 140ms cubic-bezier(0.22, 1, 0.36, 1);
}
.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); /* 蓝色发光效果 */
  background: rgba(59, 130, 246, 0.1); /* 蓝色背景 */
  border-color: rgba(59, 130, 246, 0.4);
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 48px);
}

@media (min-width: 960px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
.toc {
  position: sticky;
  top: 96px;
  max-height: 70vh;
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(23, 24, 33, 0.9), rgba(16, 16, 22, 0.85));
  box-shadow: var(--shadow-md);
  padding: clamp(16px, 2vw, 24px);
}

.toc-title {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.toc li {
  line-height: 1.4;
}

.toc li.h3 {
  padding-left: 14px;
  opacity: 0.85;
}

.toc a {
  color: var(--text-muted);
  display: inline-block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  transition: color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 140ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toc a:hover {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.45);
}

.toc a.active {
  color: var(--accent);
  border-color: var(--accent);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}

@media (max-width: 959px) {
  .toc {
    position: relative;
    top: auto;
    max-height: none;
  }
}

/*# sourceMappingURL=main.css.map */