@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

:root {
  --dark-bg: #0a0a0a;
  --dark-surface: rgba(26, 26, 26, 0.85);
  --dark-border: #333333;
  --dark-border-soft: rgba(255, 255, 255, 0.08);
  --cyber-blue: #00f5ff;
  --cyber-purple: #8b5cf6;
  --cyber-pink: #ff3cac;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --shadow-blue: rgba(0, 245, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background: linear-gradient(to bottom, transparent, #1a1a1a) #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
}

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

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.center {
  text-align: center;
}

.site-main {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--dark-border-soft);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyber-blue);
  text-shadow: 0 0 10px currentColor;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-link:hover .brand-mark::after {
  opacity: 1;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px;
}

.brand-text {
  transition: all 0.3s ease;
}

.brand-link:hover .brand-text {
  color: transparent;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--cyber-blue);
}

.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

.hero-section {
  padding: 80px 0;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 245, 255, 0.4);
  border-radius: 999px;
  color: var(--cyber-blue);
  background: rgba(0, 245, 255, 0.08);
  font-size: 0.9rem;
}

.hero-title {
  margin: 0;
  margin-bottom: 2rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 900;
}

.hero-title-small {
  font-size: 3rem;
}

.hero-accent {
  color: var(--cyber-blue);
  text-shadow: 0 0 10px currentColor;
}

.hero-subtitle {
  max-width: 768px;
  margin: 0 auto 3rem;
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1.65;
  white-space: pre-line;
}

.about-hero {
  padding: 80px 0;
}

.about-hero-inner,
.about-narrow {
  max-width: 896px;
}

.about-wide {
  width: min(1152px, calc(100% - 2rem));
}

.about-hero-title {
  margin-bottom: 2rem;
  font-size: clamp(3rem, 8vw, 4.5rem);
}

.about-hero-subtitle {
  max-width: 768px;
  font-size: 1.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.project-actions,
.filter-pills,
.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(0, 245, 255, 0.5);
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(139, 92, 246, 0.1));
  color: var(--cyber-blue);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.hero-actions .btn-cyber {
  font-size: 1.125rem;
}

.hero-cta-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.8);
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.2), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.btn-cyber:active {
  transform: translateY(0);
}

.btn-cyber-alt {
  color: var(--text-main);
}

.section {
  padding: 80px 0;
}

.about-section {
  padding: 80px 0;
}

.section-surface {
  background: rgba(26, 26, 26, 0.65);
}

.section.section-surface.home-specialties {
  background-color: rgb(26, 26, 26);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.section-head {
  margin-bottom: 4rem;
}

.about-section-head {
  margin-bottom: 4rem;
}

.section-head.spaced {
  margin-top: 4rem;
}

.section-title {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.25rem;
  color: var(--cyber-blue);
}

.about-section-title {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.section-title.left {
  text-align: left;
}

.section-subtitle {
  margin: 0.8rem auto 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1.65;
  white-space: pre-line;
}

.about-section-subtitle {
  max-width: 768px;
  font-size: 1.25rem;
  line-height: 1.7;
}

.card-cyber,
.article-card,
.project-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-cyber:hover,
.project-card:hover {
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 10px 30px var(--shadow-blue);
  transform: translateY(-4px);
}

.feature-grid,
.post-card-grid,
.skill-grid,
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-section .skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.feature-card,
.skill-card {
  padding: 2rem;
  text-align: center;
}

.post-highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  text-align: left;
}

.feature-icon,
.post-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.post-visual:empty::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.feature-card h3,
.skill-card h3,
.project-card h3,
.blog-card h2 {
  margin: 0 0 1rem;
  color: var(--cyber-blue);
  font-size: 1.25rem;
}

.post-highlight h3 {
  width: 100%;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--cyber-blue);
  font-size: 1.25rem;
}

.feature-card p,
.skill-card p,
.project-card p,
.blog-card p,
.timeline-card p,
.article-body,
.legal-wrap p {
  color: var(--text-soft);
  line-height: 1.8;
}

.post-highlight p {
  width: 100%;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  text-align: left;
}

.post-highlight .post-visual {
  align-self: center;
}

.post-highlight .meta-row {
  width: 100%;
  justify-content: space-between;
  margin-top: 1.4rem;
  gap: 0.8rem 1rem;
}

.meta-row,
.project-meta-row,
.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.center-row {
  justify-content: center;
}

.read-link,
.inline-link {
  color: var(--cyber-blue);
}

.cta-wrap {
  margin-top: 3rem;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.blog-discovery-panel {
  padding: 0;
  overflow: hidden;
}

.blog-discovery-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

.blog-discovery-summary::-webkit-details-marker {
  display: none;
}

.blog-discovery-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.blog-discovery-kicker {
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-discovery-copy strong {
  color: #f8fafc;
  font-size: 1.08rem;
  font-weight: 700;
}

.blog-discovery-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.blog-discovery-side,
.blog-discovery-current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

.blog-discovery-side {
  margin-left: auto;
}

.blog-discovery-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.18);
  background: rgba(0, 245, 255, 0.08);
  color: var(--cyber-blue);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.blog-discovery-toggle::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.blog-discovery-panel[open] .blog-discovery-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.blog-toolbar-panel {
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  align-items: flex-end;
}

.search-wrap {
  position: relative;
  flex: 1 1 360px;
}

.search-field,
.filter-field,
.comment-form input,
.comment-form textarea,
form.stack input,
form.stack textarea,
form.stack select {
  width: 100%;
  border: 1px solid #4b5563;
  background: rgba(26, 26, 26, 0.8);
  color: #f3f4f6;
  border-radius: 0.45rem;
  padding: 0.8rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus,
.filter-field:focus,
.comment-form input:focus,
.comment-form textarea:focus,
form.stack input:focus,
form.stack textarea:focus,
form.stack select:focus {
  outline: none;
  border-color: #40e0d0;
  box-shadow: 0 0 0 1px #40e0d0;
}

.filter-field {
  flex: 0 1 220px;
}

.blog-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.blog-layout,
.project-detail-wrap {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.blog-layout-wide {
  max-width: 1400px;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  align-items: start;
}

.article-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
}

.article-layout-wide {
  max-width: 1400px;
}

.blog-main,
.blog-aside {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.blog-aside {
  position: sticky;
  top: 96px;
}

.blog-list-section,
.article-sidebar {
  display: block;
  min-width: 0;
}

.blog-article-list {
  display: grid;
  gap: 1.5rem;
}

.blog-side-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
}

.blog-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-side-title {
  margin: 0;
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
}

.blog-category-nav,
.blog-hot-list {
  display: grid;
  gap: 0.75rem;
}

.blog-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: #e5eef7;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.blog-category-link:hover,
.blog-category-link.is-active {
  border-color: rgba(0, 245, 255, 0.32);
  background: rgba(0, 245, 255, 0.08);
  transform: translateY(-1px);
}

.blog-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  font-size: 0.82rem;
}

.blog-hot-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-hot-item:first-child {
  padding-top: 0;
}

.blog-hot-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.blog-hot-link {
  color: #f8fafc;
  text-decoration: none;
  line-height: 1.65;
  font-weight: 600;
}

.blog-hot-link:hover {
  color: var(--cyber-blue);
}

.blog-hot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.blog-card {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 2rem;
}

.blog-pinned-section {
  display: grid;
  gap: 1.5rem;
}

.blog-section-head {
  margin-bottom: 0;
}

.blog-section-subtitle {
  margin-left: 0;
  max-width: none;
}

.blog-pinned-list {
  display: grid;
  gap: 1.25rem;
}

.blog-pinned-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 2.45rem 1.9rem 1.8rem;
  overflow: hidden;
}

.blog-pinned-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-pinned-sticker {
  position: absolute;
  top: 0.78rem;
  left: -1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.98), rgba(251, 146, 60, 0.96));
  color: #1f2937;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
  transform: rotate(-45deg);
  z-index: 1;
}

.blog-pinned-card h2 {
  margin: 0;
  color: var(--cyber-blue);
  font-size: 1.45rem;
}

.blog-pinned-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.blog-pinned-footer {
  justify-content: space-between;
  gap: 0.85rem 1rem;
}

.blog-card-main {
  flex: 1;
}

.blog-card-side {
  display: flex;
  align-items: center;
}

.chip,
.tag-chip,
.filter-pill,
.status-chip,
.star-chip,
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.86rem;
}

.chip,
.tag-chip,
.timeline-badge {
  color: var(--cyber-blue);
  background: rgba(0, 245, 255, 0.12);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-pills {
  margin-top: 1.5rem;
}

.project-filter-row {
  margin-top: 1rem;
}

.project-filter-label {
  color: var(--text-soft);
}

.filter-pill {
  color: var(--text-soft);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--dark-border);
}

.filter-pill.is-active,
.filter-pill:hover {
  color: #fff;
  background: rgba(0, 245, 255, 0.22);
  border-color: rgba(0, 245, 255, 0.45);
}

.page-indicator {
  color: var(--text-soft);
}

.pagination-wrap-stack {
  flex-direction: column;
}

.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pagination-number:hover {
  color: var(--cyber-blue);
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.14);
}

.pagination-number.is-current {
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.2), rgba(139, 92, 246, 0.2));
  border-color: rgba(0, 245, 255, 0.55);
  color: var(--cyber-blue);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.18);
}

.aside-card {
  padding: 1.5rem;
}

.aside-card h3 {
  margin: 0 0 1rem;
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
}

.article-page {
  padding-top: 80px;
}

.article-card {
  padding: clamp(2rem, 3vw, 3rem);
  background: rgba(15, 18, 24, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

.article-head {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-head h1 {
  margin: 0;
  color: #f8fafc;
  font-family: inherit;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.project-detail-card h1 {
  margin: 0 0 1rem;
  text-align: center;
  color: #f8fafc;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.project-detail-container {
  max-width: 1120px;
}

.project-yuv-detail {
  display: grid;
  gap: 2rem;
}

.project-yuv-hero,
.project-yuv-reference-head {
  display: grid;
  gap: 0.75rem;
}

.project-yuv-meta {
  justify-content: center;
}

.project-yuv-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-yuv-tool {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
}

.project-yuv-tool-head {
  display: grid;
  gap: 0.5rem;
}

.project-yuv-tool-head h2,
.project-yuv-reference-section h3 {
  margin: 0;
  color: #f8fafc;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

.project-yuv-tool-head p,
.project-yuv-reference-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.section-subtitle-left {
  margin-left: 0;
  max-width: none;
  text-align: left;
}

.project-yuv-controls,
.project-yuv-input-grid,
.project-yuv-output-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-yuv-input-grid,
.project-yuv-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-yuv-controls label,
.project-yuv-input-grid label,
.project-yuv-output-grid label {
  display: grid;
  gap: 0.45rem;
}

.project-yuv-field {
  align-content: start;
}

.project-yuv-controls span,
.project-yuv-input-grid span,
.project-yuv-output-grid span {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

.project-yuv-controls select,
.project-yuv-input-grid input {
  width: 100%;
  border: 1px solid #4b5563;
  background: rgba(26, 26, 26, 0.8);
  color: #f3f4f6;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  font: inherit;
}

.project-yuv-controls select:focus,
.project-yuv-input-grid input:focus {
  outline: none;
  border-color: #40e0d0;
  box-shadow: 0 0 0 1px #40e0d0;
}

.project-yuv-input-grid input.is-invalid {
  border-color: rgba(248, 113, 113, 0.92);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
  background: rgba(127, 29, 29, 0.22);
}

.project-yuv-field-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.project-yuv-field-hint.is-invalid {
  color: #fca5a5;
}

.project-yuv-math {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 18, 0.76);
  overflow-x: auto;
}

.project-yuv-math .arithmatex {
  margin: 0;
}

.project-yuv-math mjx-container {
  color: #f8fafc;
}

.project-yuv-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.project-yuv-hint {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.project-yuv-output-grid output {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: #e0f2fe;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.95rem;
  white-space: nowrap;
}

.project-yuv-output-grid-double {
  gap: 1.25rem;
}

.project-yuv-result-field {
  gap: 0.7rem;
}

.project-yuv-output-stack {
  display: grid;
  gap: 0.75rem;
}

.project-yuv-output-item {
  display: grid;
  gap: 0.35rem;
}

.project-yuv-output-item output {
  min-height: 50px;
}

.project-yuv-divider {
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.46), rgba(148, 163, 184, 0.34), transparent);
}

.project-yuv-reference {
  display: grid;
  gap: 1.5rem;
}

.project-yuv-reference-stack {
  display: grid;
  gap: 1.75rem;
}

.project-yuv-reference-section {
  display: grid;
  gap: 1.1rem;
}

.project-yuv-figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.project-yuv-figure {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.project-yuv-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.85rem;
  box-sizing: border-box;
}

.project-yuv-figure figcaption {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: center;
}

.project-flow-detail {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.project-flow-detail .project-yuv-hero,
.project-flow-detail h1 {
  min-width: 0;
}

.project-flow-detail h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.project-flow-tool,
.project-flow-data-card,
.project-flow-table-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  min-width: 0;
}

.project-flow-controls,
.project-flow-summary-grid,
.project-flow-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-flow-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.project-flow-controls label,
.project-flow-array-field {
  display: grid;
  gap: 0.45rem;
}

.project-flow-controls [hidden],
.project-yuv-math [hidden] {
  display: none !important;
}

.project-flow-controls span,
.project-flow-array-field span {
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
}

.project-flow-controls input,
.project-flow-controls select {
  width: 100%;
  min-width: 0;
  border: 1px solid #4b5563;
  background: rgba(26, 26, 26, 0.8);
  color: #f3f4f6;
  border-radius: 0.7rem;
  padding: 0.85rem 1rem;
  font: inherit;
}

.project-flow-controls input:focus,
.project-flow-controls select:focus {
  outline: none;
  border-color: #40e0d0;
  box-shadow: 0 0 0 1px #40e0d0;
}

.project-flow-controls input.is-invalid {
  border-color: rgba(248, 113, 113, 0.92);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.6);
  background: rgba(127, 29, 29, 0.22);
}

.project-flow-summary-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(14, 165, 233, 0.07);
}

.project-flow-summary-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
}

.project-flow-summary-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #f8fafc;
  font-size: 1.35rem;
}

.project-flow-chart-wrap {
  display: grid;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.1), transparent 34%),
    rgba(8, 12, 18, 0.76);
}

.project-flow-chart {
  width: 100%;
  min-width: 640px;
  height: auto;
}

.project-flow-chart-axis {
  stroke: rgba(148, 163, 184, 0.55);
  stroke-width: 1.5;
}

.project-flow-chart-raw,
.project-flow-chart-shifted {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.project-flow-chart-raw {
  stroke: #38bdf8;
}

.project-flow-chart-shifted {
  stroke: #fbbf24;
}

.project-flow-chart-label {
  fill: #94a3b8;
  font-size: 13px;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}

.project-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.project-flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.project-flow-legend i {
  width: 1.25rem;
  height: 0.25rem;
  border-radius: 999px;
}

.project-flow-legend-raw {
  background: #38bdf8;
}

.project-flow-legend-shifted {
  background: #fbbf24;
}

.project-flow-data-card h2,
.project-flow-table-card h2 {
  margin: 0;
  color: #f8fafc;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1.35rem;
}

.project-flow-array-field textarea {
  min-height: 112px;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  background: rgba(8, 12, 18, 0.78);
  color: #e0f2fe;
  padding: 0.9rem 1rem;
  font: 0.9rem/1.7 "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
}

.project-flow-table-wrap {
  overflow-x: auto;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-flow-table {
  min-width: 760px;
}

.project-flow-table th,
.project-flow-table td {
  white-space: nowrap;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.9rem;
}

.project-flow-table th {
  color: #bae6fd;
}

.article-body {
  margin-top: 1.75rem;
}

.article-summary-note {
  position: relative;
  margin-top: 1.6rem;
  padding: 2rem 1.4rem 1.3rem;
  border-radius: 28px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background:
    radial-gradient(circle at top right, rgba(0, 245, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 18, 24, 0.95));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.article-summary-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 40%);
}

.article-summary-sticker {
  position: absolute;
  top: 0.7rem;
  left: -1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.3rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.98), rgba(129, 140, 248, 0.96));
  color: #0f172a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22);
  transform: rotate(-45deg);
}

.article-summary-content {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #dbe5f0;
  font-size: 1.03rem;
  line-height: 1.92;
}

.article-summary-divider {
  width: min(100%, 52rem);
  height: 1px;
  margin: 1.1rem 0 0;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.7), rgba(148, 163, 184, 0.28), transparent);
}

.article-adjacent-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.article-adjacent-link,
.article-adjacent-placeholder {
  min-height: 100%;
}

.article-adjacent-link {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 24, 0.78);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.article-adjacent-link:hover {
  border-color: rgba(0, 245, 255, 0.28);
  background: rgba(13, 20, 30, 0.92);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.article-adjacent-prev {
  text-align: left;
}

.article-adjacent-next {
  text-align: right;
}

.article-adjacent-label {
  color: #7dd3fc;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.article-adjacent-title {
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.6;
}

.article-adjacent-date {
  color: #94a3b8;
  font-size: 0.86rem;
}

.article-adjacent-placeholder {
  display: block;
}

.article-meta-row {
  margin-top: 0.95rem;
}

.article-meta-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.4;
}

.article-meta-chip-pinned {
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.3);
  font-weight: 700;
}

.article-meta-chip-label {
  color: #94a3b8;
}

.article-meta-chip-value {
  color: #f8fafc;
}

.article-taxonomy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.article-taxonomy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(0, 245, 255, 0.08);
  color: #c9f8ff;
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.article-taxonomy-chip:hover {
  color: #ffffff;
  border-color: rgba(0, 245, 255, 0.4);
  background: rgba(0, 245, 255, 0.14);
  transform: translateY(-1px);
}

.article-taxonomy-category {
  color: #a5f3fc;
}

.article-taxonomy-tag {
  border-color: rgba(125, 211, 252, 0.2);
  background: rgba(30, 41, 59, 0.72);
  color: #dbeafe;
}

.article-taxonomy-tag:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(30, 41, 59, 0.95);
}

.article-taxonomy-label {
  color: #7dd3fc;
}

.article-engagement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-stat-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.article-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.article-like-button {
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  font-size: 0.92rem;
}

.article-like-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.article-like-button.is-active {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.5);
  background: linear-gradient(45deg, rgba(248, 113, 113, 0.15), rgba(236, 72, 153, 0.12));
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.18);
}

.article-like-button.is-active:hover {
  border-color: rgba(248, 113, 113, 0.75);
  background: linear-gradient(45deg, rgba(248, 113, 113, 0.22), rgba(236, 72, 153, 0.16));
  box-shadow: 0 0 24px rgba(248, 113, 113, 0.24);
}

.article-like-icon {
  font-size: 1rem;
  line-height: 1;
}

.article-page .aside-card {
  background: rgba(15, 18, 24, 0.88);
}

.article-sidebar .aside-card {
  position: fixed;
  top: var(--article-toc-top, 88px);
  right: max(8px, calc((100vw - 1280px) / 2 + 8px));
  z-index: 60;
  width: 252px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - var(--article-toc-top, 88px) - 24px);
  overflow: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.article-sidebar .aside-card.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.article-page .aside-card h3 {
  color: #f8fafc;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

.article-body,
.prose,
.post-editor-mde-wrap .editor-preview-prose {
  color: #d6dbe4;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1.04rem;
  line-height: 1.9;
  word-break: break-word;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body blockquote,
.article-body pre,
.article-body .arithmatex,
.prose p,
.prose ul,
.prose ol,
.prose table,
.prose blockquote,
.prose pre,
.prose .arithmatex,
.post-editor-mde-wrap .editor-preview-prose p,
.post-editor-mde-wrap .editor-preview-prose ul,
.post-editor-mde-wrap .editor-preview-prose ol,
.post-editor-mde-wrap .editor-preview-prose table,
.post-editor-mde-wrap .editor-preview-prose blockquote,
.post-editor-mde-wrap .editor-preview-prose pre,
.post-editor-mde-wrap .editor-preview-prose .arithmatex {
  margin: 0 0 1.35rem;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6,
.post-editor-mde-wrap .editor-preview-prose h1,
.post-editor-mde-wrap .editor-preview-prose h2,
.post-editor-mde-wrap .editor-preview-prose h3,
.post-editor-mde-wrap .editor-preview-prose h4,
.post-editor-mde-wrap .editor-preview-prose h5,
.post-editor-mde-wrap .editor-preview-prose h6 {
  color: #f8fafc;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.42;
  scroll-margin-top: 96px;
}

.article-body h1,
.prose h1,
.post-editor-mde-wrap .editor-preview-prose h1 {
  font-size: 2rem;
  margin: 2.2rem 0 1rem;
}

.article-body h2,
.prose h2,
.post-editor-mde-wrap .editor-preview-prose h2 {
  font-size: 1.7rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body h3,
.prose h3,
.post-editor-mde-wrap .editor-preview-prose h3 {
  font-size: 1.4rem;
  margin: 1.8rem 0 0.9rem;
}

.article-body h4,
.prose h4,
.post-editor-mde-wrap .editor-preview-prose h4 {
  font-size: 1.18rem;
  margin: 1.5rem 0 0.8rem;
}

.article-body h5,
.article-body h6,
.prose h5,
.prose h6,
.post-editor-mde-wrap .editor-preview-prose h5,
.post-editor-mde-wrap .editor-preview-prose h6 {
  font-size: 1rem;
  margin: 1.3rem 0 0.7rem;
}

.article-body a,
.prose a,
.post-editor-mde-wrap .editor-preview-prose a,
.article-head .inline-link {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.35);
  text-underline-offset: 0.18em;
}

.article-body code,
.prose code,
.post-editor-mde-wrap .editor-preview-prose code {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.14);
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.article-body pre,
.prose pre,
.post-editor-mde-wrap .editor-preview-prose pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0b1120;
  color: #e5e7eb;
}

.article-body pre code,
.prose pre code,
.post-editor-mde-wrap .editor-preview-prose pre code {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.article-body blockquote,
.prose blockquote,
.post-editor-mde-wrap .editor-preview-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(125, 211, 252, 0.8);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.article-body ul,
.article-body ol,
.prose ul,
.prose ol,
.post-editor-mde-wrap .editor-preview-prose ul,
.post-editor-mde-wrap .editor-preview-prose ol {
  padding-left: 1.5rem;
}

.article-body li + li,
.prose li + li,
.post-editor-mde-wrap .editor-preview-prose li + li {
  margin-top: 0.45rem;
}

.article-body table,
.prose table,
.post-editor-mde-wrap .editor-preview-prose table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.article-body th,
.article-body td,
.prose th,
.prose td,
.post-editor-mde-wrap .editor-preview-prose th,
.post-editor-mde-wrap .editor-preview-prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.article-body thead th,
.prose thead th,
.post-editor-mde-wrap .editor-preview-prose thead th {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.article-body tbody tr:last-child td,
.prose tbody tr:last-child td,
.post-editor-mde-wrap .editor-preview-prose tbody tr:last-child td {
  border-bottom: none;
}

.article-body hr,
.prose hr,
.post-editor-mde-wrap .editor-preview-prose hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body img,
.prose img,
.post-editor-mde-wrap .editor-preview-prose img {
  display: block;
  max-width: 100%;
  margin: 1.75rem auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body span.arithmatex,
.prose span.arithmatex,
.post-editor-mde-wrap .editor-preview-prose span.arithmatex {
  white-space: nowrap;
}

.article-body div.arithmatex,
.prose div.arithmatex,
.post-editor-mde-wrap .editor-preview-prose div.arithmatex {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0;
}

.article-body mjx-container,
.prose mjx-container,
.post-editor-mde-wrap .editor-preview-prose mjx-container {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.article-body mjx-container[display="true"],
.prose mjx-container[display="true"],
.post-editor-mde-wrap .editor-preview-prose mjx-container[display="true"] {
  margin: 1.5rem 0 !important;
}

.toc-list {
  display: grid;
  gap: 0.7rem;
}

.toc-item {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
}

.toc-level-2 { padding-left: 0.75rem; }
.toc-level-3 { padding-left: 1.5rem; }
.toc-level-4,
.toc-level-5,
.toc-level-6 { padding-left: 2rem; }

.comment-form {
  display: grid;
  gap: 1rem;
}

.comment-form label,
form.stack label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
}

.comment-form textarea,
form.stack textarea {
  min-height: 160px;
  resize: vertical;
}

.comment-item {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--dark-border);
}

.comment-item p {
  margin-bottom: 0;
}

.comment-time {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.copyright-box {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.45);
}

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

.copyright-box h4 {
  margin: 0 0 0.7rem;
  color: #f87171;
}

.copyright-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: var(--text-soft);
}

.copyright-panel-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.copyright-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.copyright-panel li + li {
  margin-top: 0.35rem;
}

.copyright-panel-info {
  background: rgba(30, 58, 138, 0.18);
  border-color: rgba(96, 165, 250, 0.25);
}

.copyright-panel span {
  color: #93c5fd;
}

.timeline {
  display: grid;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyber-blue), var(--cyber-purple));
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 8px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyber-blue);
  box-shadow: 0 0 10px var(--cyber-blue);
}

.timeline-card {
  padding: 1.5rem;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.timeline-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.timeline-company {
  margin: 0.3rem 0 0;
  color: #fff;
  font-size: 1.05rem;
}

.skill-card {
  text-align: left;
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
  color: #fff;
  flex: 0 0 auto;
}

.skill-icon svg {
  width: 24px;
  height: 24px;
}

.skill-card-head h3 {
  margin-bottom: 0.35rem;
}

.skill-category {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.skill-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.skill-meter {
  margin-top: 1rem;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-meter-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyber-blue), var(--cyber-purple));
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.status-chip {
  border: 1px solid rgba(255,255,255,0.14);
}

.status-\8fdb\884c\4e2d {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
}

.status-\5df2\5b8c\6210 {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.14);
}

.status-\6682\505c {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
}

.status-\53d6\6d88 {
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
}

.star-chip {
  color: var(--cyber-blue);
  background: rgba(0, 245, 255, 0.14);
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.project-card.featured {
  box-shadow: 0 0 0 1px rgba(0, 245, 255, 0.2), 0 14px 30px rgba(0, 245, 255, 0.08);
}

.project-card-anchor {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-anchor:hover,
.project-card-anchor:focus-visible {
  color: inherit;
}

.project-card h3 a:hover,
.blog-card h2 a:hover,
.feature-card h3 a:hover,
.post-highlight h3 a:hover {
  color: #fff;
}

.project-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.overview-list {
  display: grid;
  gap: 0.9rem;
}

.overview-list div {
  display: grid;
  gap: 0.3rem;
}

.overview-list strong {
  color: #fff;
}

.overview-list span {
  color: var(--text-soft);
  line-height: 1.6;
}

.legal-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.legal-wrap .article-card {
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-title {
  margin: 0 0 0.75rem;
  color: var(--text-main);
}

.empty-state-note {
  margin: 0;
  color: var(--text-muted);
}

.empty-state.compact {
  padding: 0;
  text-align: left;
}

.flash {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.site-footer {
  margin-top: 0;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
}

.footer-wrap {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

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

.footer-brand {
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.875rem;
  color: var(--cyber-blue);
  text-shadow: 0 0 10px currentColor;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--cyber-blue);
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-copy {
  margin: 0 0 1rem;
  color: #cbd5e1;
  line-height: 1.8;
  white-space: pre-line;
}

.footer-copy-small {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-muted,
.footer-legal {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.875rem;
  white-space: pre-line;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-items: center;
}

.footer-links a,
.footer-legal a,
.footer-icp {
  color: #94a3b8;
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-icp:hover,
.social-link:hover {
  color: var(--cyber-blue);
}

.social-link:hover {
  background: var(--dark-bg);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  text-align: center;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
}

.footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-icp svg {
  width: 12px;
  height: 12px;
}

.footer-record-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-legal {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem;
  }

  .hero-title-small {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

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

  .footer-col-brand {
    text-align: left;
  }

  .footer-col-contact {
    text-align: right;
  }

  .footer-social {
    justify-content: flex-end;
  }

  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }

  .footer-records {
    justify-content: flex-end;
  }
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--cyber-blue), var(--cyber-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #00d4e4, #7c3aed);
}

/* ---------- 管理后台（模板使用 .nav / .card / .btn / .stack 等） ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--dark-border-soft);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.nav .brand {
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cyber-blue);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.35);
}

.nav .brand:hover {
  color: #fff;
}

.admin-header-inner {
  align-items: flex-start;
  justify-content: flex-start;
  padding-block: 0.9rem;
  width: 100%;
}

.admin-header .container {
  max-width: none;
  margin: 0;
  padding-inline: 1.5rem;
}

.admin-header-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.25rem;
  text-align: left;
  flex: 1 1 auto;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.admin-header-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.admin-header-links {
  margin-left: auto;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-soft);
  padding: 0.4rem 0.5rem;
  border-radius: 0.35rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyber-blue);
  background: rgba(0, 245, 255, 0.08);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-header h1 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyber-blue);
}

.admin-main h1 {
  margin: 0 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyber-blue);
}

.stack {
  display: grid;
  gap: 1.25rem;
}

.compact-stack {
  gap: 0.25rem;
}

.card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  color: var(--cyber-blue);
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.list-meta:last-child {
  border-bottom: none;
}

.list-meta a {
  color: var(--cyber-blue);
  font-weight: 500;
  flex: 1 1 200px;
}

.list-meta span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  white-space: nowrap;
  border-radius: 0.35rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button.btn {
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-primary {
  color: var(--cyber-blue);
  border-color: rgba(0, 245, 255, 0.5);
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.12), rgba(139, 92, 246, 0.12));
}

.btn-primary:hover {
  border-color: rgba(0, 245, 255, 0.85);
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.22);
}

.btn-secondary {
  color: var(--text-soft);
  border-color: var(--dark-border);
  background: rgba(26, 26, 26, 0.6);
}

.btn-secondary:hover {
  color: var(--cyber-blue);
  border-color: rgba(0, 245, 255, 0.35);
}

.btn-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
}

.btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.2);
}

/* 后台表单：与前台 form.stack 规则协同，修正复选框行与长文本域 */
.admin-main form.card.stack {
  display: grid;
  gap: 1.1rem;
  max-width: 920px;
}

form.stack label:has(> input[type="checkbox"]) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
}

form.stack .check-row label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

form.stack label > input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin: 0;
  accent-color: var(--cyber-blue);
}

form.stack select[multiple] {
  min-height: 10rem;
  padding: 0.5rem 0.65rem;
}

form.stack option {
  background: #111827;
  color: #f3f4f6;
  padding: 0.2rem 0;
}

form.stack textarea[name="content"],
form.stack textarea[name="details"] {
  min-height: min(70vh, 560px);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  tab-size: 2;
}

form.stack textarea[name="excerpt"] {
  min-height: 120px;
}

.admin-main .admin-actions {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-main .table-wrap.card {
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-main .table-wrap.card table {
  margin: 0;
  min-width: 920px;
}

.admin-main .table-wrap.card td.table-action-cell {
  white-space: nowrap;
}

.admin-main .table-wrap.card td.table-action-cell form {
  display: inline-flex;
}

.admin-main .table-wrap.card td.table-action-cell-visibility .btn {
  min-width: 4.5rem;
}

.admin-main .table-wrap.card thead th:first-child,
.admin-main .table-wrap.card tbody td:first-child {
  padding-left: 1.25rem;
}

.admin-main .table-wrap.card thead th:last-child,
.admin-main .table-wrap.card tbody td:last-child {
  padding-right: 1.25rem;
}

.admin-main .table-wrap.card .empty {
  padding: 2rem 1.25rem;
}

.admin-pagination {
  margin-top: 1.5rem;
}

.admin-main thead th {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.admin-main .admin-actions form {
  display: inline-flex;
  margin: 0;
}

.featured-posts-card {
  margin-bottom: 1.25rem;
}

.featured-posts-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.featured-posts-header h2 {
  margin: 0 0 0.35rem;
}

.featured-posts-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.24);
  background: rgba(0, 245, 255, 0.12);
  color: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 600;
}

.featured-post-list {
  display: grid;
  gap: 0.9rem;
}

.featured-post-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.featured-post-copy {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 320px;
}

.featured-post-title-row,
.table-title-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.featured-post-title-row strong {
  color: #f8fafc;
  font-size: 1rem;
  line-height: 1.45;
}

.featured-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.status-badge-featured {
  color: #a5f3fc;
  border-color: rgba(0, 245, 255, 0.24);
  background: rgba(0, 245, 255, 0.12);
}

.status-badge-pinned {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(120, 53, 15, 0.3);
}

.status-badge-success {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(74, 222, 128, 0.12);
}

.status-badge-muted {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(51, 65, 85, 0.45);
}

.status-badge-warning {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.26);
  background: rgba(120, 53, 15, 0.3);
}

.status-badge-danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.35);
}

.arxiv-admin-page {
  max-width: 1320px;
}

.arxiv-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-main form.card.stack.arxiv-filter-form {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.arxiv-filter-form .admin-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.arxiv-policy-card {
  padding: 1rem 1.1rem;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.14);
}

.arxiv-policy-card p {
  margin: 0.45rem 0 0;
}

.arxiv-sync-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
}

.arxiv-sync-meta div {
  display: grid;
  gap: 0.25rem;
}

.arxiv-sync-meta strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.arxiv-paper-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.arxiv-paper-card h3 {
  margin: 0;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0;
}

.arxiv-paper-card h3 a {
  color: var(--text-soft);
  text-shadow: none;
}

.arxiv-paper-card h3 a:hover {
  color: var(--cyber-blue);
}

.arxiv-paper-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.92rem;
}

.arxiv-paper-card .admin-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.arxiv-paper-card .list-meta {
  padding: 0;
  border-bottom: 0;
}

.arxiv-paper-card .list-meta .is-completed {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.35);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14);
}

.arxiv-reading-form {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 245, 255, 0.04);
}

.arxiv-reading-fields {
  display: grid;
  grid-template-columns: minmax(120px, 180px);
  gap: 0.75rem;
  align-items: end;
}

.arxiv-reading-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(10, 10, 10, 0.2);
}

.arxiv-reading-panel summary {
  padding: 0.65rem 0.75rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  cursor: pointer;
  user-select: none;
}

.arxiv-reading-panel summary:hover {
  color: var(--cyber-blue);
}

.arxiv-reading-panel[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arxiv-reading-panel-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.arxiv-reading-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.arxiv-reading-form input,
.arxiv-reading-form select,
.arxiv-reading-form textarea {
  width: 100%;
}

.arxiv-reading-form textarea {
  min-height: 84px;
  resize: vertical;
}

.arxiv-reading-notes {
  grid-column: 1 / -1;
}

.arxiv-reading-feedback {
  min-height: 1.3rem;
  margin: 0;
  color: var(--cyber-blue);
  font-size: 0.86rem;
}

.arxiv-reading-feedback.is-error {
  color: #f87171;
}

.arxiv-reading-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.arxiv-reading-form .js-reading-complete-action.btn-danger:disabled {
  cursor: default;
  opacity: 1;
}

@media (max-width: 1040px) {
  .arxiv-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .arxiv-reading-fields {
    grid-template-columns: 1fr;
  }
}

/* ---------- 文章发布页（Markdown 编辑器 + 双栏布局） ---------- */

.post-editor-page {
  max-width: 1400px;
}

.post-editor-header .post-editor-lead {
  margin: 0.35rem 0 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.post-editor-form {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.post-editor-sidebar {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 4.5rem;
}

.post-editor-main {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.post-editor-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.post-editor-body-head {
  margin-bottom: 1rem;
}

.post-editor-body-title {
  margin: 0 0 0.35rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.08rem;
  color: var(--cyber-blue);
}

.post-editor-body-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.post-editor-footer {
  padding: 1rem 1.25rem;
}

.post-editor-mde-wrap {
  min-width: 0;
}

.admin-fieldset {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.admin-fieldset + .admin-fieldset {
  margin-top: 0.15rem;
}

.admin-fieldset legend {
  padding: 0 0.4rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyber-blue);
}

.field-hint {
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-editor-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.post-editor-form input:not([type="checkbox"]),
.post-editor-form textarea,
.post-editor-form select {
  width: 100%;
  border: 1px solid #4b5563;
  background: rgba(26, 26, 26, 0.85);
  color: #f3f4f6;
  border-radius: 0.45rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-editor-form textarea[name="excerpt"] {
  min-height: 120px;
  resize: vertical;
  font-size: 0.875rem;
  line-height: 1.55;
}

.post-editor-form input:not([type="checkbox"]):focus,
.post-editor-form textarea:focus,
.post-editor-form select:focus {
  outline: none;
  border-color: #40e0d0;
  box-shadow: 0 0 0 1px #40e0d0;
}

.post-editor-form label:has(> input[type="checkbox"]) {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
}

.post-editor-form .check-row label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
}

.post-editor-form label > input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin: 0;
  accent-color: var(--cyber-blue);
}

.post-editor-form select[multiple],
.post-tag-select {
  min-height: 10rem;
  padding: 0.5rem 0.65rem;
}

.post-editor-form option {
  background: #111827;
  color: #f3f4f6;
}

.post-editor-checks {
  margin-top: 0.25rem;
}

.taxonomy-inline-tools {
  margin-top: -0.1rem;
}

.taxonomy-inline-toggle {
  width: 100%;
}

.taxonomy-inline-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px dashed rgba(64, 224, 208, 0.35);
  border-radius: 0.75rem;
  background: rgba(10, 14, 22, 0.72);
}

.taxonomy-inline-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.taxonomy-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.taxonomy-inline-status {
  min-height: 1.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.taxonomy-inline-status.is-success {
  color: #93c5fd;
}

.taxonomy-inline-status.is-error {
  color: #fca5a5;
}

/* EasyMDE / CodeMirror 深色主题，贴近常见「代码后台」观感 */
.post-editor-mde-wrap .EasyMDEContainer .CodeMirror {
  border-radius: 0 0 10px 10px;
  border: 1px solid var(--dark-border);
  background: #0d1117;
  color: #e6edf3;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
}

.post-editor-mde-wrap .EasyMDEContainer .CodeMirror-cursor {
  border-left-color: var(--cyber-blue);
}

.post-editor-mde-wrap .EasyMDEContainer .CodeMirror-selected {
  background: rgba(0, 245, 255, 0.12);
}

.post-editor-mde-wrap .EasyMDEContainer .CodeMirror-lines {
  padding: 1rem 0 1.25rem;
}

.post-editor-mde-wrap .EasyMDEContainer .CodeMirror-line {
  padding: 0 1.5rem;
}

.post-editor-mde-wrap .EasyMDEContainer .cm-formatting,
.post-editor-mde-wrap .EasyMDEContainer .cm-formatting-list,
.post-editor-mde-wrap .EasyMDEContainer .cm-formatting-header,
.post-editor-mde-wrap .EasyMDEContainer .cm-formatting-link,
.post-editor-mde-wrap .EasyMDEContainer .cm-formatting-quote {
  color: rgba(156, 163, 175, 0.9);
}

.post-editor-mde-wrap .EasyMDEContainer .cm-header,
.post-editor-mde-wrap .EasyMDEContainer .cm-strong {
  color: #ffffff;
}

.post-editor-mde-wrap .EasyMDEContainer .cm-link,
.post-editor-mde-wrap .EasyMDEContainer .cm-string.cm-url {
  color: var(--cyber-blue);
}

.post-editor-mde-wrap .EasyMDEContainer .cm-comment,
.post-editor-mde-wrap .EasyMDEContainer .cm-quote {
  color: #93c5fd;
}

.post-editor-mde-wrap .EasyMDEContainer .cm-variable-2,
.post-editor-mde-wrap .EasyMDEContainer .cm-hr {
  color: #f59e0b;
}

.post-editor-mde-wrap .EasyMDEContainer .cm-inline-code,
.post-editor-mde-wrap .EasyMDEContainer .cm-code {
  color: #f9a8d4;
}

.post-editor-mde-wrap .editor-toolbar {
  border: 1px solid var(--dark-border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: rgba(22, 27, 34, 0.96);
}

.post-editor-mde-wrap .editor-toolbar i.separator {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
}

.post-editor-mde-wrap .editor-toolbar button {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.08);
}

.post-editor-mde-wrap .editor-toolbar button:hover,
.post-editor-mde-wrap .editor-toolbar button.active {
  background: rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.28);
  color: #fff;
}

.post-editor-mde-wrap .editor-preview,
.post-editor-mde-wrap .editor-preview-side {
  background: rgba(15, 18, 24, 0.98);
  color: #d6dbe4;
  border-color: rgba(255, 255, 255, 0.08);
  padding: 2rem 2.2rem;
  line-height: 1.8;
}

.post-editor-mde-wrap .editor-preview-prose > *:first-child {
  margin-top: 0;
}

.post-editor-mde-wrap .editor-preview-prose > *:last-child {
  margin-bottom: 0;
}

.post-editor-mde-wrap .editor-preview-loading {
  margin: 0;
  color: var(--text-muted);
}

.post-editor-mde-wrap .editor-preview pre,
.post-editor-mde-wrap .editor-preview-side pre {
  background: #161b22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

.post-editor-mde-wrap .EasyMDEContainer .editor-statusbar {
  border: 1px solid var(--dark-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: rgba(22, 27, 34, 0.92);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.post-editor-mde-wrap .CodeMirror-fullscreen,
.post-editor-mde-wrap .editor-toolbar.fullscreen {
  z-index: 200;
}

@media (max-width: 1024px) {
  .project-yuv-tool-grid,
  .project-yuv-figure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .project-yuv-controls,
  .project-yuv-input-grid,
  .project-yuv-output-grid {
    grid-template-columns: 1fr;
  }

  .project-yuv-action-row {
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .post-editor-form {
    grid-template-columns: 1fr;
  }

  .post-editor-sidebar {
    position: static;
  }

  .taxonomy-inline-grid {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.admin-nav {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.1rem;
  background: rgba(8, 14, 26, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.admin-nav-section {
  display: grid;
  gap: 0.45rem;
}

.admin-nav-label {
  margin: 0;
  padding: 0 0.85rem;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav a {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.015);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav-text {
  color: #e2e8f0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.3;
}

.admin-nav-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.14));
  border-color: rgba(56, 189, 248, 0.24);
  color: var(--text-main);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  transform: translateY(-1px);
}

.admin-nav a:hover .admin-nav-text,
.admin-nav a.active .admin-nav-text {
  color: #f8fafc;
}

.admin-nav a:hover .admin-nav-hint,
.admin-nav a.active .admin-nav-hint {
  color: #cbd5e1;
}

.admin-main {
  padding: 1.75rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.analytics-page {
  gap: 1.25rem;
}

.sitemap-page {
  gap: 1.25rem;
}

.sitemap-note-card {
  display: grid;
  gap: 0.45rem;
}

.sitemap-note-card strong {
  color: #f8fafc;
}

.admin-split-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sitemap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sitemap-actions form {
  display: inline-flex;
}

.sitemap-hints {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.analytics-note-card {
  display: grid;
  gap: 0.45rem;
}

.analytics-note-card strong {
  color: #f8fafc;
}

.analytics-window-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analytics-window-card h2,
.analytics-card-head h2 {
  margin: 0;
  font-size: 1.02rem;
}

.analytics-window-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.analytics-window-metrics span {
  display: block;
  font-size: 0.82rem;
}

.analytics-window-metrics strong {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.4rem;
  color: #f8fafc;
}

.analytics-split-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.analytics-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.analytics-card-head p {
  margin: 0.3rem 0 0;
}

.analytics-map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.analytics-map-surface {
  min-height: 460px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(15, 118, 110, 0.16), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(45, 212, 191, 0.14);
}

.analytics-table th,
.analytics-table td {
  white-space: nowrap;
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 0.3rem;
}

.table-wrap {
  overflow-x: auto;
}

.table-scroll {
  overflow-x: auto;
}

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

th,
td {
  padding: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

thead {
  background: rgba(255, 255, 255, 0.03);
}

.admin-actions,
.check-row,
.meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.error {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.24);
}

@media (max-width: 960px) {
  .blog-layout,
  .article-layout,
  .project-detail-wrap,
  .project-flow-controls,
  .project-flow-data-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .project-flow-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header-inner {
    align-items: flex-start;
  }

  .admin-header-links {
    margin-left: 0;
  }

  .analytics-window-metrics,
  .analytics-split-grid,
  .admin-split-grid {
    grid-template-columns: 1fr;
  }

  .analytics-map-surface {
    min-height: 360px;
  }

  .admin-nav {
    padding: 1rem;
  }

  .admin-nav-section {
    gap: 0.35rem;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-pinned-card {
    padding: 2.15rem 1.45rem 1.45rem;
  }

  .blog-aside {
    position: static;
    top: auto;
  }

  .blog-discovery-summary,
  .blog-discovery-side,
  .blog-discovery-current,
  .blog-toolbar-panel {
    align-items: flex-start;
  }

  .blog-discovery-side {
    margin-left: 0;
    justify-content: flex-start;
  }

  .blog-card-side {
    justify-content: flex-start;
  }

  .article-sidebar {
    display: none;
  }

  .featured-post-item {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-bar {
    min-height: 64px;
    padding: 0.6rem 0;
  }

  .site-nav {
    gap: 0.1rem;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .hero-section {
    padding-top: 80px;
  }

  .timeline-head,
  .footer-bottom,
  .blog-toolbar {
    flex-direction: column;
    align-items: center;
  }

  .blog-layout-wide {
    gap: 1.25rem;
  }

  .blog-discovery-summary,
  .blog-toolbar-panel,
  .blog-toolbar-actions {
    align-items: stretch;
  }

  .blog-discovery-summary,
  .blog-discovery-side {
    justify-content: flex-start;
  }

  .blog-discovery-toggle {
    align-self: flex-start;
  }

  .blog-toolbar-panel {
    padding: 0 1.1rem 1.1rem;
  }

  .article-head h1 {
    font-size: 2rem;
  }

  .article-summary-note {
    padding: 2.35rem 1.1rem 1.15rem;
  }

  .blog-pinned-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-category-link {
    padding: 0.78rem 0.88rem;
  }

  .blog-pinned-sticker {
    top: 0.92rem;
    left: -1.42rem;
    min-width: 5.35rem;
    font-size: 0.72rem;
  }

  .article-summary-sticker {
    top: 0.95rem;
    left: -1.45rem;
    min-width: 4.8rem;
    font-size: 0.72rem;
  }

  .article-summary-content {
    font-size: 0.97rem;
  }

  .article-meta-chip-row,
  .article-taxonomy-row,
  .featured-post-meta {
    gap: 0.55rem;
  }

  .article-meta-chip,
  .article-taxonomy-chip {
    width: 100%;
    justify-content: flex-start;
  }

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

  .article-adjacent-next {
    text-align: left;
  }

  .article-adjacent-placeholder {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
    padding: 0.45rem 0.6rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-title-small {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.125rem;
  }

  .legal-wrap {
    max-width: 100%;
  }

  .legal-wrap .article-card {
    padding: 1.25rem;
  }

  .project-flow-tool,
  .project-flow-data-card,
  .project-flow-table-card {
    padding: 1.1rem;
  }

  .project-flow-summary-grid {
    grid-template-columns: 1fr;
  }

  .project-flow-chart {
    min-width: 560px;
  }
}
