@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);
  --content-max-width: 1400px;
}

.nav-user-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
  cursor: default;
}

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

.nav-avatar,
.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.auth-layout {
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 2rem;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
}

.form-alert {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(240, 88, 88, 0.35);
  background: rgba(240, 88, 88, 0.08);
  color: var(--text-primary);
  margin: 1rem 0;
}

.oauth-actions,
.auth-switch,
.comment-form-actions,
.comment-login-note,
.daily-paper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.article-comments {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.article-comments-head,
.daily-date-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.comment-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.comment-item {
  margin-left: calc(var(--comment-depth, 0) * 1.25rem);
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.comment-time {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-quote,
.comment-reply-target {
  border-left: 3px solid var(--accent-color);
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.comment-reply-button {
  border: 0;
  color: var(--accent-color);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.comment-children {
  margin-top: 1rem;
}

.daily-page {
  background:
    linear-gradient(180deg, rgba(0, 245, 255, 0.05), transparent 260px),
    linear-gradient(90deg, rgba(255, 60, 172, 0.035), transparent 42%),
    var(--dark-bg);
  overflow-x: hidden;
}

.daily-page > .container {
  max-width: var(--content-max-width);
}

.daily-page .stack > *,
.daily-hero,
.daily-filter,
.daily-topic-strip,
.daily-date-group,
.daily-paper-card {
  min-width: 0;
  max-width: 100%;
}

.daily-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 0.5rem;
}

.daily-hero > div:first-child {
  min-width: 0;
  flex: 1 1 300px;
}

.daily-hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
}

.daily-hero p:last-child {
  max-width: 680px;
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.7;
}

.daily-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  flex: 1 1 220px;
}

.daily-hero-stats span {
  min-width: 104px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 245, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  text-align: center;
}

.daily-hero-stats strong {
  display: block;
  color: var(--text-main);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
}

.daily-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(12, 18, 24, 0.84);
}

.daily-filter label,
.daily-progress-form {
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  min-width: 0;
}

.daily-filter label:first-of-type {
  flex: 1 1 520px;
}

.daily-filter label:nth-of-type(2) {
  flex: 0 1 220px;
}

.daily-filter select {
  min-width: 190px;
  width: 100%;
  min-height: 44px;
  border-color: rgba(0, 245, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.daily-filter .btn-cyber {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 92px;
  padding: 0.58rem 1.15rem;
  font-size: 0.95rem;
}

.daily-topic-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 0.75rem;
}

.daily-topic-chip {
  min-height: 86px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.daily-topic-chip:hover,
.daily-topic-chip.is-active {
  border-color: rgba(0, 245, 255, 0.5);
  background: rgba(0, 245, 255, 0.075);
  transform: translateY(-2px);
}

.daily-topic-chip span {
  display: block;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.daily-date-group {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(9, 13, 18, 0.82);
}

.daily-date-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.daily-paper-list {
  display: grid;
  gap: 0.8rem;
}

.daily-paper-card {
  display: block;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid rgba(0, 245, 255, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.daily-paper-card:hover {
  border-color: rgba(0, 245, 255, 0.32);
  border-left-color: var(--cyber-pink);
  background: rgba(255, 255, 255, 0.055);
}

.daily-paper-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.04rem;
  line-height: 1.45;
}

.daily-paper-card h3 p {
  display: inline;
  margin: 0;
}

.daily-paper-card h3 a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, text-shadow 0.18s ease;
}

.daily-paper-card h3 a:hover,
.daily-paper-card h3 a:focus-visible {
  color: var(--cyber-blue);
  border-bottom-color: currentColor;
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.22);
  outline: none;
}

.daily-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyber-blue);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
}

.daily-more-link::after {
  content: "→";
}

.daily-more-link:hover {
  color: var(--cyber-pink);
}

.daily-source-badge {
  color: var(--cyber-blue);
}

.daily-paper-summary {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.96rem;
}

.daily-paper-summary p {
  margin: 0.65rem 0 0;
}

.daily-paper-summary p:first-child {
  margin-top: 0.45rem;
}

.daily-source-note {
  padding: 1rem;
  border: 1px solid var(--dark-border-soft);
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  line-height: 1.7;
}

.daily-source-note p {
  margin: 0;
}

.daily-source-note p + p {
  margin-top: 0.5rem;
}

.daily-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-soft);
}

.daily-pagination span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.daily-progress-form {
  min-width: 190px;
}

.daily-progress-form input,
.daily-progress-form select,
.daily-filter select,
.comment-form input,
.comment-form textarea {
  max-width: 100%;
}

@media (max-width: 760px) {
  .daily-page > .container {
    max-width: var(--content-max-width);
  }

  .header-bar {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .site-nav a,
  .nav-user-link {
    flex: 0 0 auto;
  }

  .daily-hero {
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .daily-hero > div:first-child,
  .daily-hero-stats {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .daily-hero h1 {
    font-size: 2.35rem;
  }

  .daily-hero-stats {
    justify-content: stretch;
  }

  .daily-hero-stats span {
    flex: 1 1 120px;
  }

  .daily-filter {
    align-items: stretch;
  }

  .daily-filter label {
    flex: 1 1 100%;
  }

  .daily-filter .btn-cyber {
    width: 100%;
  }

  .daily-date-head {
    align-items: center;
  }

  .daily-paper-card {
    padding: 0.9rem;
  }

  .comment-item {
    margin-left: calc(var(--comment-depth, 0) * 0.55rem);
  }
}

* {
  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: var(--content-max-width);
  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: var(--content-max-width);
  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: var(--content-max-width);
}

.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-main > h2 {
  margin-top: 0.45rem;
}

.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: var(--content-max-width);
}

.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-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.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;
  }
}
/* Admin product design refresh */
.admin-body {
  --admin-bg: #020617;
  --admin-surface: #08111f;
  --admin-surface-2: #0f172a;
  --admin-line: rgba(255, 255, 255, 0.08);
  --admin-line-strong: rgba(125, 211, 252, 0.22);
  --admin-text: #e2e8f0;
  --admin-muted: #94a3b8;
  --admin-subtle: #64748b;
  --admin-accent: #22d3ee;
  --admin-accent-strong: #3b82f6;
  --admin-accent-soft: rgba(34, 211, 238, 0.12);
  --admin-warn: #b7791f;
  --admin-warn-soft: #fff4d8;
  --admin-danger: #f87171;
  --admin-danger-soft: rgba(248, 113, 113, 0.14);
  --admin-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
  --admin-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.24);
  background: var(--admin-bg);
  color: var(--admin-text);
  min-height: 100vh;
}

.admin-body .admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: var(--admin-shadow-soft);
}

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

.admin-body .admin-header-brand {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-width: 0;
}

.admin-body .admin-brand {
  color: var(--admin-text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.admin-body .admin-header-subtitle {
  color: var(--admin-muted);
  font-size: 0.82rem;
  margin: 0;
}

.admin-body .admin-header-links a {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  color: var(--admin-muted);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.admin-body .admin-header-links a:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent-strong);
  background: var(--admin-accent-soft);
}

.admin-body .admin-shell {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 0;
  max-width: 1680px;
  margin: 0 auto;
}

.admin-body .admin-nav {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  overflow: auto;
  padding: 1rem 0.75rem 1.5rem;
  border-right: 1px solid var(--admin-line);
  background: #fbfcfa;
}

.admin-body .admin-nav-section {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.admin-body .admin-nav-label {
  color: var(--admin-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0.65rem 0.65rem 0.35rem;
}

.admin-body .admin-nav a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--admin-text);
  padding: 0.62rem 0.7rem;
  text-decoration: none;
}

.admin-body .admin-nav a:hover {
  border-color: var(--admin-line);
  background: var(--admin-surface);
}

.admin-body .admin-nav a.active {
  border-color: #9ed7cf;
  background: var(--admin-accent-soft);
  color: var(--admin-accent-strong);
  box-shadow: inset 3px 0 0 var(--admin-accent);
}

.admin-body .admin-nav-text {
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
}

.admin-body .admin-nav-hint {
  color: var(--admin-muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.admin-body .admin-main {
  width: 100%;
  min-width: 0;
  padding: 1.25rem 1.5rem 3rem;
}

.admin-body .admin-main > .stack,
.admin-body .admin-main > section {
  max-width: 1320px;
  margin-inline: auto;
}

.admin-body .admin-page-heading,
.admin-body .section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-body .admin-page-heading h1,
.admin-body .section-heading h1 {
  color: var(--admin-text);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
}

.admin-body .admin-page-heading h2,
.admin-body .card h2 {
  color: var(--admin-text);
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
}

.admin-body .muted {
  color: var(--admin-muted);
}

.admin-body .card {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow-soft);
}

.admin-body .card-cyber {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.admin-body .card:hover {
  border-color: var(--admin-line-strong);
}

.admin-body .section-title {
  color: var(--admin-text);
  letter-spacing: 0;
}

.admin-body .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-body .stat-card {
  display: grid;
  gap: 0.45rem;
  min-height: 96px;
  padding: 1rem;
}

.admin-body .stat-card span {
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-body .stat-card strong {
  color: var(--admin-text);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
}

.admin-body .btn,
.admin-body button,
.admin-body input[type="submit"] {
  border-radius: 8px;
  font-weight: 750;
  letter-spacing: 0;
}

.admin-body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid transparent;
  padding: 0.55rem 0.82rem;
  text-decoration: none;
}

.admin-body .btn-primary {
  border-color: var(--admin-accent);
  background: var(--admin-accent);
  color: #ffffff;
}

.admin-body .btn-primary:hover {
  border-color: var(--admin-accent-strong);
  background: var(--admin-accent-strong);
}

.admin-body .btn-secondary {
  border-color: var(--admin-line-strong);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-body .btn-secondary:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent-strong);
  background: var(--admin-accent-soft);
}

.admin-body .btn-danger {
  border-color: var(--admin-danger);
  background: var(--admin-danger);
  color: #ffffff;
}

.admin-body form.stack,
.admin-body .arxiv-filter-form {
  gap: 0.8rem;
}

.admin-body label {
  color: var(--admin-text);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  min-height: 38px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--admin-text);
  padding: 0.55rem 0.68rem;
}

.admin-body textarea {
  min-height: 112px;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--admin-accent);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.admin-body .inline-form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-body .inline-form label {
  display: grid;
  gap: 0.35rem;
}

.admin-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
}

.admin-body th,
.admin-body td {
  border-bottom: 1px solid var(--admin-line);
  padding: 0.72rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin-body th {
  background: var(--admin-surface-2);
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-body tr:last-child td {
  border-bottom: 0;
}

.admin-body .list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  padding: 0.8rem 0.9rem;
}

.admin-body .list-row + .list-row {
  margin-top: 0.55rem;
}

.admin-body .list-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.admin-body .status-pill,
.admin-body .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--admin-line-strong);
  border-radius: 999px;
  background: var(--admin-surface-2);
  color: var(--admin-muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
}

.admin-body .status-badge-success {
  border-color: rgba(34, 211, 238, 0.34);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

.admin-body .status-badge-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: var(--admin-warn-soft);
  color: #fde68a;
}

.admin-body .status-badge-danger {
  border-color: rgba(248, 113, 113, 0.34);
  background: var(--admin-danger-soft);
  color: var(--admin-danger);
}

.admin-body .status-badge-muted {
  background: var(--admin-surface-2);
  color: var(--admin-muted);
}

.admin-body .alert-card {
  border-color: rgba(245, 158, 11, 0.34);
  background: var(--admin-warn-soft);
  color: #fde68a;
}

.admin-body .empty,
.admin-body .empty-state {
  border: 1px dashed var(--admin-line-strong);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--admin-muted);
  padding: 1rem;
}

.admin-body .arxiv-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.admin-body .arxiv-paper-card {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  padding: 1rem;
}

.admin-body .arxiv-paper-card + .arxiv-paper-card {
  margin-top: 0.75rem;
}

.admin-body .arxiv-paper-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
}

.admin-body .arxiv-paper-card a {
  color: var(--admin-text);
}

.admin-body .arxiv-paper-card a:hover {
  color: var(--admin-accent-strong);
}

.admin-body code {
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--admin-surface-2);
  color: var(--admin-text);
  padding: 0.12rem 0.28rem;
}

@media (max-width: 1120px) {
  .admin-body .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-body .admin-nav {
    position: static;
    height: auto;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    padding: 0.75rem;
  }

  .admin-body .admin-nav-section {
    min-width: 220px;
    margin-bottom: 0;
  }

  .admin-body .admin-main {
    padding: 1rem 1rem 2rem;
  }
}

@media (max-width: 760px) {
  .admin-body .admin-header-inner,
  .admin-body .admin-page-heading,
  .admin-body .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .admin-header-subtitle,
  .admin-body .admin-nav-hint {
    display: none;
  }

  .admin-body .stats-grid,
  .admin-body .arxiv-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-body .list-row,
  .admin-body .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .btn,
  .admin-body button,
  .admin-body input,
  .admin-body textarea,
  .admin-body select {
    width: 100%;
  }

  .admin-body table {
    display: block;
    overflow-x: auto;
  }
}

/* Admin redesign v2: cleaner product console */
.admin-body {
  --admin-bg: #020617;
  --admin-surface: #08111f;
  --admin-surface-2: #0f172a;
  --admin-line: rgba(255, 255, 255, 0.08);
  --admin-line-strong: rgba(125, 211, 252, 0.22);
  --admin-text: #e2e8f0;
  --admin-muted: #94a3b8;
  --admin-subtle: #64748b;
  --admin-accent: #22d3ee;
  --admin-accent-strong: #3b82f6;
  --admin-accent-soft: rgba(34, 211, 238, 0.12);
  --admin-focus: #22d3ee;
  --admin-warn: #f59e0b;
  --admin-warn-soft: rgba(245, 158, 11, 0.14);
  --admin-danger: #f87171;
  --admin-danger-soft: rgba(248, 113, 113, 0.14);
  --admin-radius: 8px;
  --admin-shadow: 0 18px 42px rgba(2, 6, 23, 0.34);
  --admin-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.24);
  background:
    linear-gradient(180deg, #020617 0, #0f172a 280px),
    var(--admin-bg);
  color: var(--admin-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-body .admin-header {
  border-bottom: 1px solid var(--admin-line);
  background: rgba(8, 14, 26, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.admin-body .admin-header-inner {
  min-height: 58px;
}

.admin-body .admin-header-brand {
  gap: 0.7rem;
}

.admin-body .admin-brand {
  color: var(--admin-text);
  font-size: 0.98rem;
  font-weight: 760;
}

.admin-body .admin-header-subtitle {
  color: var(--admin-muted);
  font-size: 0.8rem;
}

.admin-body .admin-header-links a {
  border-color: var(--admin-line);
  border-radius: var(--admin-radius);
  background: #ffffff;
  color: var(--admin-text);
  font-size: 0.84rem;
}

.admin-body .admin-header-links a:hover {
  border-color: var(--admin-text);
  background: var(--admin-text);
  color: #ffffff;
}

.admin-body .admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
  max-width: none;
}

.admin-body .admin-nav {
  top: 58px;
  height: calc(100vh - 58px);
  border-right: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem 0.7rem;
}

.admin-body .admin-nav-section {
  gap: 0.16rem;
  margin-bottom: 0.85rem;
}

.admin-body .admin-nav-label {
  color: var(--admin-subtle);
  font-size: 0.68rem;
  font-weight: 800;
  margin: 0.75rem 0.65rem 0.28rem;
}

.admin-body .admin-nav a {
  border-radius: var(--admin-radius);
  padding: 0.56rem 0.66rem;
}

.admin-body .admin-nav a:hover {
  border-color: transparent;
  background: var(--admin-surface-2);
}

.admin-body .admin-nav a.active {
  border-color: transparent;
  background: var(--admin-text);
  color: #ffffff;
  box-shadow: none;
}

.admin-body .admin-nav a.active .admin-nav-hint,
.admin-body .admin-nav a.active .admin-nav-text {
  color: #ffffff;
}

.admin-body .admin-nav-text {
  font-size: 0.88rem;
  font-weight: 720;
}

.admin-body .admin-nav-hint {
  color: var(--admin-muted);
  font-size: 0.71rem;
}

.admin-body .admin-main {
  padding: 1.35rem 1.65rem 3rem;
}

.admin-body .admin-main > .stack,
.admin-body .admin-main > section {
  max-width: 1240px;
}

.admin-body .admin-page-heading,
.admin-body .section-heading {
  align-items: flex-end;
  margin-bottom: 1.1rem;
}

.admin-body .admin-page-heading h1,
.admin-body .section-heading h1 {
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  font-weight: 780;
}

.admin-body .admin-page-heading p,
.admin-body .section-heading p {
  max-width: 760px;
}

.admin-body .card,
.admin-body .card-cyber,
.admin-body .arxiv-paper-card {
  border: 1px solid var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  box-shadow: var(--admin-shadow);
}

.admin-body .card:hover,
.admin-body .arxiv-paper-card:hover {
  border-color: var(--admin-line-strong);
}

.admin-body .card h2,
.admin-body .admin-page-heading h2 {
  font-size: 1rem;
  font-weight: 760;
}

.admin-body .stats-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.8rem;
}

.admin-body .stat-card {
  min-height: 92px;
  padding: 0.95rem;
}

.admin-body .stat-card span {
  color: var(--admin-muted);
  font-size: 0.76rem;
}

.admin-body .stat-card strong {
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 790;
}

.admin-body .btn,
.admin-body .btn-cyber {
  min-height: 38px;
  border-radius: var(--admin-radius);
  font-size: 0.86rem;
  font-weight: 760;
}

.admin-body .btn-primary,
.admin-body .btn-cyber {
  border: 1px solid var(--admin-text);
  background: var(--admin-text);
  color: #ffffff;
  box-shadow: none;
}

.admin-body .btn-primary:hover,
.admin-body .btn-cyber:hover {
  border-color: #000000;
  background: #000000;
  transform: none;
}

.admin-body .btn-secondary {
  border-color: var(--admin-line-strong);
  background: #ffffff;
  color: var(--admin-text);
}

.admin-body .btn-secondary:hover {
  border-color: var(--admin-text);
  background: var(--admin-surface-2);
  color: var(--admin-text);
}

.admin-body .btn-danger {
  border-color: var(--admin-danger);
  background: var(--admin-danger);
}

.admin-body label {
  color: var(--admin-text);
  font-size: 0.8rem;
  font-weight: 720;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  border: 1px solid var(--admin-line-strong);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
  color: var(--admin-text);
  box-shadow: none;
}

.admin-body input:hover,
.admin-body textarea:hover,
.admin-body select:hover {
  border-color: #aeb6c2;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--admin-focus);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.admin-body table {
  border-color: var(--admin-line);
  border-radius: var(--admin-radius);
  box-shadow: var(--admin-shadow-soft);
}

.admin-body th {
  background: #fafafa;
  color: var(--admin-muted);
  font-size: 0.72rem;
}

.admin-body td {
  background: #ffffff;
}

.admin-body .list-row {
  border-color: var(--admin-line);
  border-radius: var(--admin-radius);
  background: var(--admin-surface);
}

.admin-body .status-pill,
.admin-body .status-badge {
  border-radius: 999px;
  background: var(--admin-surface-2);
  color: var(--admin-muted);
}

.admin-body .status-badge-success {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.admin-body .status-badge-warning {
  border-color: #fedf89;
  background: var(--admin-warn-soft);
  color: var(--admin-warn);
}

.admin-body .status-badge-danger {
  border-color: #fecdca;
  background: var(--admin-danger-soft);
  color: var(--admin-danger);
}

.admin-body .alert-card {
  border-color: #fedf89;
  background: #fffcf5;
  color: #7a2e0e;
}

.admin-body .empty,
.admin-body .empty-state {
  border-color: var(--admin-line);
  background: #ffffff;
  color: var(--admin-muted);
}

.admin-body .arxiv-admin-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
}

.admin-body .arxiv-paper-card h3 {
  font-size: 1rem;
  font-weight: 760;
}

.admin-body .arxiv-paper-card a {
  color: var(--admin-text);
}

.admin-body .arxiv-paper-card a:hover {
  color: var(--admin-focus);
}

.admin-body .section-title {
  color: var(--admin-text);
  font-weight: 780;
}

.admin-body main.container .card-cyber {
  padding: 2rem !important;
}

@media (max-width: 1120px) {
  .admin-body .admin-nav {
    top: auto;
    background: rgba(8, 14, 26, 0.96);
  }
}

@media (max-width: 760px) {
  .admin-body .admin-main {
    padding: 0.9rem 0.85rem 2rem;
  }

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

/* Admin redesign v3: contrast-first navigation */
.admin-body {
  --admin-bg: #020617;
  --admin-surface: #08111f;
  --admin-surface-2: #0f172a;
  --admin-line: rgba(255, 255, 255, 0.08);
  --admin-line-strong: rgba(125, 211, 252, 0.22);
  --admin-text: #e2e8f0;
  --admin-muted: #94a3b8;
  --admin-subtle: #64748b;
  --admin-accent: #22d3ee;
  --admin-accent-strong: #3b82f6;
  --admin-accent-soft: rgba(34, 211, 238, 0.12);
  background: #020617;
}

.admin-body .admin-header {
  background: rgba(8, 14, 26, 0.92);
  border-bottom-color: var(--admin-line);
}

.admin-body .admin-header-subtitle,
.admin-body .muted {
  color: var(--admin-muted);
}

.admin-body .admin-shell {
  background: var(--admin-bg);
}

.admin-body .admin-nav {
  background: rgba(8, 14, 26, 0.55);
  border-right-color: var(--admin-line);
}

.admin-body .admin-nav-label {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-body .admin-nav a {
  color: var(--admin-text);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
}

.admin-body .admin-nav a:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(59, 130, 246, 0.14));
  border-color: rgba(56, 189, 248, 0.24);
}

.admin-body .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: #f8fafc;
}

.admin-body .admin-nav-text {
  color: var(--admin-text);
  font-weight: 780;
}

.admin-body .admin-nav-hint {
  color: #4b5563;
  font-weight: 520;
}

.admin-body .admin-nav a:hover .admin-nav-text {
  color: #000000;
}

.admin-body .admin-nav a:hover .admin-nav-hint {
  color: #374151;
}

.admin-body .admin-nav a.active .admin-nav-text,
.admin-body .admin-nav a.active .admin-nav-hint {
  color: #ffffff;
}

.admin-body .admin-main {
  background: #ffffff;
}

.admin-body .card,
.admin-body .card-cyber,
.admin-body .arxiv-paper-card,
.admin-body table,
.admin-body .list-row {
  border-color: #d7dce2;
}

/* Admin redesign v4: fix navigation hierarchy */
.admin-body .admin-nav-section {
  gap: 0.18rem;
  padding-top: 0.35rem;
  margin-bottom: 0.95rem;
}

.admin-body .admin-nav-section + .admin-nav-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.85rem;
}

.admin-body .admin-nav-label {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0.65rem 0.42rem;
}

.admin-body .admin-nav-text {
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-body .admin-nav-hint {
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Admin redesign v5: collapsible navigation groups */
.admin-body .admin-nav-section {
  display: grid;
  gap: 0.22rem;
}

.admin-body .admin-nav-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.2;
  margin: 0;
  padding: 0.45rem 0.65rem;
  text-align: left;
}

.admin-body .admin-nav-label::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1;
}

.admin-body .admin-nav-label:hover {
  background: #f3f4f6;
}

.admin-body .admin-nav-label:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.admin-body .admin-nav-section:not(.is-collapsed) .admin-nav-label {
  background: #f3f4f6;
}

.admin-body .admin-nav-section:not(.is-collapsed) .admin-nav-label::after {
  content: "-";
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.admin-body .admin-nav-items {
  display: grid;
  gap: 0.16rem;
  padding: 0.12rem 0 0.35rem;
}

.admin-body .admin-nav-section.is-collapsed .admin-nav-items {
  display: none;
}

.admin-body .wechat-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--admin-line);
  margin-bottom: 1rem;
}

.admin-body .wechat-tabs a {
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  color: var(--admin-muted);
  font-weight: 740;
  padding: 0.58rem 0.78rem;
  text-decoration: none;
}

.admin-body .wechat-tabs a:hover {
  background: var(--admin-accent-soft);
  color: var(--admin-text);
}

.admin-body .wechat-tabs a.active {
  border-color: var(--admin-line);
  background: var(--admin-surface);
  color: var(--admin-text);
  margin-bottom: -1px;
}

.admin-body .wechat-login-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.admin-body .wechat-login-panel img {
  width: min(100%, 720px);
  max-height: 640px;
  object-fit: contain;
  border: 1px solid #d7dce2;
  border-radius: 8px;
  background: #f9fafb;
}
/* Restore the previous production dark palette while preserving the newer IA. */
.admin-body {
  --admin-bg: #020617;
  --admin-surface: #08111f;
  --admin-surface-2: #0f172a;
  --admin-line: rgba(148, 163, 184, 0.24);
  --admin-line-strong: rgba(125, 211, 252, 0.46);
  --admin-text: #e2e8f0;
  --admin-muted: #94a3b8;
  --admin-subtle: #7dd3fc;
  --admin-accent: #22d3ee;
  --admin-accent-strong: #7dd3fc;
  --admin-accent-soft: rgba(34, 211, 238, 0.12);
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-body .admin-header {
  background: rgba(8, 17, 31, 0.96);
  border-bottom-color: var(--admin-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.admin-body .admin-brand,
.admin-body .admin-header-links a,
.admin-body .section-title,
.admin-body .admin-page-heading h1,
.admin-body .section-heading h1,
.admin-body label,
.admin-body form.stack label {
  color: var(--admin-text);
}

.admin-body .admin-header-subtitle,
.admin-body .muted,
.admin-body .admin-muted,
.admin-body .help-text,
.admin-body .field-help,
.admin-body .dashboard-card p,
.admin-body .arxiv-paper-meta,
.admin-body .wechat-admin-muted {
  color: var(--admin-muted);
}

.admin-body .admin-shell,
.admin-body .admin-main {
  background: var(--admin-bg);
  color: var(--admin-text);
}

.admin-body .admin-nav {
  background: rgba(8, 17, 31, 0.94);
  border-color: var(--admin-line);
  box-shadow: none;
}

.admin-body .admin-nav-section {
  border-bottom-color: var(--admin-line);
}

.admin-body .admin-nav-section:last-child {
  border-bottom: 0;
}

.admin-body .admin-nav-label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem 0.65rem;
  border: 0;
  background: transparent;
  color: var(--admin-subtle);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.admin-body .admin-nav-label::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-right: 2px solid var(--admin-muted);
  border-bottom: 2px solid var(--admin-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.admin-body .admin-nav-section:not(.is-collapsed) .admin-nav-label::after {
  transform: rotate(225deg) translateY(-1px);
}

.admin-body .admin-nav-items {
  display: grid;
  gap: 0.25rem;
  padding: 0 0.55rem 0.75rem;
}

.admin-body .admin-nav-section.is-collapsed .admin-nav-items {
  display: none;
}

.admin-body .admin-nav a {
  background: transparent;
  border: 1px solid transparent;
  color: var(--admin-text);
}

.admin-body .admin-nav a:hover,
.admin-body .admin-nav a.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(59, 130, 246, 0.18));
  border-color: var(--admin-line-strong);
  color: #f8fafc;
}

.admin-body .admin-nav-text,
.admin-body .admin-nav a:hover .admin-nav-text,
.admin-body .admin-nav a.active .admin-nav-text {
  color: inherit;
}

.admin-body .admin-nav-hint {
  color: var(--admin-muted);
}

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

.admin-body .card,
.admin-body .admin-card,
.admin-body .form-card,
.admin-body .dashboard-card,
.admin-body .card-cyber,
.admin-body .arxiv-paper-card,
.admin-body .wechat-admin-card,
.admin-body .wechat-login-panel,
.admin-body table,
.admin-body .list-row {
  background: var(--admin-surface);
  border-color: var(--admin-line);
  color: var(--admin-text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.admin-body th {
  background: var(--admin-surface-2);
  color: #cbd5e1;
}

.admin-body td {
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body form.stack input,
.admin-body form.stack textarea,
.admin-body form.stack select {
  background: var(--admin-surface-2);
  border-color: var(--admin-line-strong);
  color: var(--admin-text);
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.admin-body .btn-primary,
.admin-body .btn-cyber {
  border-color: #0369a1;
  background: #0369a1;
  color: #ffffff;
}

.admin-body .btn-primary:hover,
.admin-body .btn-cyber:hover {
  border-color: #075985;
  background: #075985;
}

.admin-body .btn-secondary {
  border-color: var(--admin-line-strong);
  background: var(--admin-surface-2);
  color: var(--admin-text);
}

.admin-body a {
  color: var(--admin-accent-strong);
}

/* Admin console v2: compact editorial workspace. */
.admin-body {
  --admin-bg: #080d16;
  --admin-sidebar: #0b111c;
  --admin-surface: #101824;
  --admin-surface-raised: #141e2c;
  --admin-surface-soft: #182333;
  --admin-border: #253246;
  --admin-border-strong: #34445d;
  --admin-text: #f1f5f9;
  --admin-text-secondary: #b6c2d2;
  --admin-text-muted: #8593a7;
  --admin-accent: #4fa3ff;
  --admin-accent-hover: #74b7ff;
  --admin-accent-soft: rgba(79, 163, 255, 0.12);
  --admin-success: #53d6a1;
  --admin-warning: #f2bd62;
  --admin-danger: #ff7f8d;
  --admin-radius-sm: 6px;
  --admin-radius: 10px;
  --admin-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% -10%, rgba(79, 163, 255, 0.1), transparent 30rem),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.admin-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.admin-body::-webkit-scrollbar-track {
  background: var(--admin-bg);
}

.admin-body::-webkit-scrollbar-thumb {
  border: 2px solid var(--admin-bg);
  border-radius: 999px;
  background: var(--admin-border-strong);
}

.admin-body .admin-header {
  height: 64px;
  border-bottom: 1px solid var(--admin-border);
  background: rgba(8, 13, 22, 0.9);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.admin-body .admin-header-inner {
  width: 100%;
  max-width: none;
  min-height: 64px;
  padding: 0 24px;
}

.admin-header-brand,
.admin-brand,
.admin-brand-copy {
  display: flex;
  align-items: center;
}

.admin-body .admin-brand {
  gap: 10px;
  color: var(--admin-text);
  text-decoration: none;
}

.admin-brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid rgba(116, 183, 255, 0.45);
  border-radius: 9px;
  background: linear-gradient(145deg, #1f76d2, #0e4e91);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 118, 210, 0.22);
}

.admin-brand-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
}

.admin-brand-copy strong {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.admin-brand-copy small {
  color: var(--admin-text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.admin-body .admin-header-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-body .admin-header-links a {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: var(--admin-radius-sm);
  background: transparent;
  color: var(--admin-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.admin-body .admin-header-links a:hover {
  border-color: var(--admin-border);
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-body .admin-logout-link {
  border-color: var(--admin-border);
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-surface);
}

.admin-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 3px 0;
  background: var(--admin-text-secondary);
}

.admin-body .admin-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
  background: transparent;
}

.admin-body .admin-nav {
  top: 64px;
  height: calc(100vh - 64px);
  padding: 18px 12px 28px;
  border: 0;
  border-right: 1px solid var(--admin-border);
  border-radius: 0;
  background: rgba(11, 17, 28, 0.94);
  box-shadow: none;
}

.admin-nav-intro {
  display: grid;
  gap: 2px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 8px;
}

.admin-nav-intro span,
.admin-eyebrow,
.admin-login-eyebrow {
  margin: 0;
  color: var(--admin-accent-hover);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-nav-intro strong {
  color: var(--admin-text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.admin-body .admin-nav-section {
  margin: 0;
  padding: 5px 0;
  border-top: 0;
  border-bottom: 0;
}

.admin-body .admin-nav-section + .admin-nav-section {
  border-top: 0;
}

.admin-body .admin-nav {
  scrollbar-color: var(--admin-border-strong) transparent;
  scrollbar-width: thin;
}

.admin-body .admin-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-body .admin-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-body .admin-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--admin-border-strong);
}

.admin-body .admin-nav-label {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: var(--admin-radius-sm);
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.admin-body .admin-nav-label:hover,
.admin-body .admin-nav-section:not(.is-collapsed) .admin-nav-label {
  background: transparent;
  color: var(--admin-text-secondary);
}

.admin-body .admin-nav-label::after {
  width: 6px;
  height: 6px;
  border-color: currentColor;
}

.admin-body .admin-nav-items {
  gap: 2px;
  padding: 2px 0 5px;
}

.admin-body .admin-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--admin-text-secondary);
}

.admin-body .admin-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--admin-border-strong);
}

.admin-body .admin-nav a:hover {
  border-color: transparent;
  background: var(--admin-surface);
  color: var(--admin-text);
}

.admin-body .admin-nav a.active {
  border-color: rgba(79, 163, 255, 0.22);
  background: var(--admin-accent-soft);
  color: #ffffff;
  box-shadow: inset 2px 0 0 var(--admin-accent);
}

.admin-body .admin-nav a.active::before {
  background: var(--admin-accent);
  box-shadow: 0 0 10px rgba(79, 163, 255, 0.7);
}

.admin-body .admin-nav-text {
  font-size: 13px;
  font-weight: 620;
  line-height: 1.3;
}

.admin-body .admin-nav-hint {
  display: none;
}

.admin-nav-backdrop {
  display: none;
}

.admin-body .admin-main {
  width: 100%;
  min-width: 0;
  padding: 34px 40px 64px;
  background: transparent;
}

.admin-body .admin-main > .stack,
.admin-body .admin-main > section,
.admin-body .admin-main > .section-header,
.admin-body .admin-main > .card,
.admin-body .admin-main > .table-wrap,
.admin-body .admin-main > .pagination-wrap {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.admin-body .stack {
  gap: 20px;
}

.admin-body .compact-stack {
  gap: 8px;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body p {
  margin-top: 0;
}

.admin-body h1,
.admin-body .admin-page-heading h1,
.admin-body .section-heading h1,
.admin-body .section-header h1 {
  margin-bottom: 6px;
  color: var(--admin-text);
  font-size: clamp(25px, 2.2vw, 32px);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.admin-body h2,
.admin-body .card h2 {
  margin-bottom: 4px;
  color: var(--admin-text);
  font-size: 17px;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.admin-body h3 {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 650;
}

.admin-body .muted,
.admin-body .admin-muted,
.admin-body .help-text,
.admin-body .field-help,
.admin-body .dashboard-card p,
.admin-body .arxiv-paper-meta,
.admin-body .wechat-admin-muted {
  color: var(--admin-text-muted);
}

.admin-body .admin-page-heading,
.admin-body .section-heading,
.admin-body .section-header {
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-body .admin-dashboard-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-body .card,
.admin-body .admin-card,
.admin-body .form-card,
.admin-body .dashboard-card,
.admin-body .card-cyber,
.admin-body .arxiv-paper-card,
.admin-body .wechat-admin-card,
.admin-body .wechat-login-panel,
.admin-body .list-row {
  padding: 22px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: linear-gradient(180deg, rgba(20, 30, 44, 0.96), rgba(16, 24, 36, 0.96));
  color: var(--admin-text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025), var(--admin-shadow);
}

.admin-body .card:hover,
.admin-body .arxiv-paper-card:hover {
  border-color: var(--admin-border-strong);
}

.admin-body .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-body .stat-card {
  position: relative;
  min-height: 132px;
  align-content: space-between;
  gap: 4px;
  padding: 20px;
  overflow: hidden;
}

.admin-body .stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(79, 163, 255, 0.13);
  border-radius: 50%;
}

.admin-body .stat-card-primary {
  border-color: rgba(79, 163, 255, 0.36);
  background: linear-gradient(145deg, rgba(31, 85, 142, 0.55), rgba(16, 24, 36, 0.96));
}

.admin-body .stat-card span {
  color: var(--admin-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.admin-body .stat-card strong {
  color: var(--admin-text);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 720;
  letter-spacing: -0.04em;
}

.admin-body .stat-card small {
  color: var(--admin-text-muted);
  font-size: 11px;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 16px;
}

.admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--admin-border);
}

.admin-card-heading > a {
  color: var(--admin-accent-hover);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.admin-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(52, 68, 93, 0.55);
}

.admin-recent-item:last-child {
  border-bottom: 0;
}

.admin-recent-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-recent-item a {
  overflow: hidden;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recent-item div span {
  color: var(--admin-text-muted);
  font-size: 11px;
}

.admin-quick-links {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.admin-quick-links a {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 11px 34px 11px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--admin-text);
  text-decoration: none;
}

.admin-quick-links a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 12px;
  color: var(--admin-text-muted);
  transform: translateY(-50%);
}

.admin-quick-links a:hover {
  border-color: var(--admin-border);
  background: var(--admin-surface-soft);
}

.admin-quick-links span {
  font-size: 13px;
  font-weight: 630;
}

.admin-quick-links small {
  color: var(--admin-text-muted);
  font-size: 11px;
}

.admin-body .btn,
.admin-body .btn-cyber,
.admin-body button,
.admin-body input[type="submit"] {
  min-height: 40px;
  border-radius: var(--admin-radius-sm);
  font-size: 13px;
  font-weight: 650;
}

.admin-body .btn {
  padding: 8px 13px;
}

.admin-body .btn-primary,
.admin-body .btn-cyber {
  border-color: #3187df;
  background: #3187df;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(49, 135, 223, 0.18);
}

.admin-body .btn-primary:hover,
.admin-body .btn-cyber:hover {
  border-color: var(--admin-accent);
  background: var(--admin-accent);
}

.admin-body .btn-secondary {
  border-color: var(--admin-border-strong);
  background: var(--admin-surface-soft);
  color: var(--admin-text-secondary);
}

.admin-body .btn-secondary:hover {
  border-color: #4b607e;
  background: #1d2a3d;
  color: var(--admin-text);
}

.admin-body .btn-danger {
  border-color: rgba(255, 127, 141, 0.48);
  background: rgba(255, 127, 141, 0.12);
  color: #ffb4bd;
}

.admin-body label,
.admin-body form.stack label {
  color: var(--admin-text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.admin-body input,
.admin-body textarea,
.admin-body select,
.admin-body form.stack input,
.admin-body form.stack textarea,
.admin-body form.stack select {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--admin-border-strong);
  border-radius: var(--admin-radius-sm);
  background: #0c1420;
  color: var(--admin-text);
  font-size: 14px;
}

.admin-body input::placeholder,
.admin-body textarea::placeholder {
  color: #637187;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: var(--admin-accent);
  outline: 3px solid rgba(79, 163, 255, 0.14);
  box-shadow: none;
}

.admin-body table {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .table-wrap,
.admin-body .table-scroll {
  overflow-x: auto;
}

.admin-body th,
.admin-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border);
  background: transparent;
  color: var(--admin-text-secondary);
  font-size: 13px;
}

.admin-body th {
  background: rgba(8, 13, 22, 0.5);
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-body tbody tr:hover td {
  background: rgba(79, 163, 255, 0.035);
  color: var(--admin-text);
}

.admin-body .status-pill,
.admin-body .status-badge {
  min-height: 24px;
  padding: 3px 8px;
  border-color: var(--admin-border-strong);
  background: var(--admin-surface-soft);
  color: var(--admin-text-secondary);
  font-size: 10px;
  font-weight: 700;
}

.admin-body .status-badge-success {
  border-color: rgba(83, 214, 161, 0.3);
  background: rgba(83, 214, 161, 0.1);
  color: #83e5bd;
}

.admin-body .status-badge-warning {
  border-color: rgba(242, 189, 98, 0.3);
  background: rgba(242, 189, 98, 0.1);
  color: #f7d18e;
}

.admin-body .status-badge-danger {
  border-color: rgba(255, 127, 141, 0.3);
  background: rgba(255, 127, 141, 0.1);
  color: #ffb4bd;
}

.admin-body .empty,
.admin-body .empty-state {
  border-color: var(--admin-border-strong);
  background: rgba(8, 13, 22, 0.42);
  color: var(--admin-text-muted);
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  max-width: 460px;
  place-items: center;
  padding: 40px 20px;
}

.admin-body .admin-login-card {
  width: 100%;
  padding: 36px;
}

.admin-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.admin-login-eyebrow,
.admin-login-card h1,
.admin-login-intro {
  text-align: center;
}

.admin-login-card h1 {
  margin: 8px 0;
  font-size: 27px;
}

.admin-login-intro {
  margin-bottom: 26px;
  color: var(--admin-text-muted);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .admin-body .admin-main {
    padding: 28px 28px 56px;
  }

  .admin-body .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-body .admin-menu-toggle {
    display: block;
    width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  .admin-body .admin-header-inner {
    padding: 0 16px;
  }

  .admin-body .admin-shell {
    display: block;
  }

  .admin-body .admin-nav {
    position: fixed;
    top: 64px;
    left: 0;
    z-index: 50;
    display: block;
    width: min(300px, 86vw);
    height: calc(100vh - 64px);
    border-right: 1px solid var(--admin-border);
    border-bottom: 0;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .admin-menu-open .admin-nav {
    transform: translateX(0);
  }

  .admin-nav-backdrop {
    position: fixed;
    inset: 64px 0 0;
    z-index: 45;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .admin-menu-open .admin-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-menu-open {
    overflow: hidden;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-body {
    font-size: 14px;
  }

  .admin-body .admin-header-links .admin-site-link,
  .admin-brand-copy small {
    display: none;
  }

  .admin-body .admin-main {
    padding: 22px 16px 48px;
  }

  .admin-body .admin-page-heading,
  .admin-body .section-heading,
  .admin-body .section-header {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .admin-body .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-body .stat-card {
    min-height: 112px;
    padding: 16px;
  }

  .admin-body .card,
  .admin-body .admin-card,
  .admin-body .form-card,
  .admin-body .dashboard-card,
  .admin-body .card-cyber,
  .admin-body .arxiv-paper-card,
  .admin-body .wechat-admin-card {
    padding: 16px;
  }

  .admin-body .btn,
  .admin-body button,
  .admin-body input,
  .admin-body textarea,
  .admin-body select {
    min-height: 44px;
  }

  .admin-body input,
  .admin-body textarea,
  .admin-body select {
    font-size: 16px;
  }

  .admin-body .admin-login-card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-body *,
  .admin-body *::before,
  .admin-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* WeChat operations center */
.wechat-ops-page { gap: 24px; }
.wechat-page-heading { margin-bottom: 0 !important; }
.wechat-heading-actions { display: flex; align-items: center; gap: 10px; }
.wechat-service-indicator { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius-sm); color: var(--admin-text-secondary); font-size: 12px; font-weight: 650; }
.wechat-service-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--admin-danger); box-shadow: 0 0 10px rgba(255,127,141,.45); }
.wechat-service-indicator.is-online span { background: var(--admin-success); box-shadow: 0 0 10px rgba(83,214,161,.45); }
.wechat-notice { padding: 16px 18px; border: 1px solid var(--admin-border); border-left-width: 3px; border-radius: var(--admin-radius-sm); background: var(--admin-surface); }
.wechat-notice strong { color: var(--admin-text); font-size: 13px; }
.wechat-notice p { margin: 4px 0 0; color: var(--admin-text-secondary); }
.wechat-notice code { display: inline-block; margin-top: 8px; }
.wechat-notice.is-error { border-left-color: var(--admin-danger); }
.wechat-notice.is-success { border-left-color: var(--admin-success); }
.wechat-monitor-card { overflow: hidden; border: 1px solid var(--admin-border); border-radius: 12px; background: linear-gradient(135deg, rgba(20,30,44,.98), rgba(11,17,28,.98)); box-shadow: var(--admin-shadow); }
.wechat-monitor-card::before { content: ""; display: block; height: 3px; background: var(--admin-text-muted); }
.wechat-monitor-card.is-success::before { background: var(--admin-success); }
.wechat-monitor-card.is-failed::before, .wechat-monitor-card.is-unavailable::before { background: var(--admin-danger); }
.wechat-monitor-card.is-running::before { background: var(--admin-warning); }
.wechat-monitor-primary { display: flex; align-items: flex-start; gap: 16px; padding: 24px 24px 20px; }
.wechat-monitor-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px; border: 1px solid var(--admin-border-strong); border-radius: 50%; background: var(--admin-surface-soft); color: var(--admin-text-secondary); font-size: 20px; font-weight: 800; }
.is-success .wechat-monitor-icon { border-color: rgba(83,214,161,.4); background: rgba(83,214,161,.1); color: #83e5bd; }
.is-failed .wechat-monitor-icon, .is-unavailable .wechat-monitor-icon { border-color: rgba(255,127,141,.4); background: rgba(255,127,141,.1); color: #ffb4bd; }
.is-running .wechat-monitor-icon { border-color: rgba(242,189,98,.4); background: rgba(242,189,98,.1); color: #f7d18e; }
.wechat-monitor-kicker { margin: 0 0 5px; color: var(--admin-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.wechat-monitor-primary h2 { margin: 0 0 5px !important; font-size: 21px !important; }
.wechat-monitor-primary p:last-child { max-width: 760px; margin: 0; color: var(--admin-text-secondary); }
.wechat-monitor-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--admin-border); border-bottom: 1px solid var(--admin-border); }
.wechat-monitor-fact { display: grid; min-width: 0; gap: 3px; padding: 18px 24px; border-right: 1px solid var(--admin-border); color: var(--admin-text); text-decoration: none; }
.wechat-monitor-fact:last-child { border-right: 0; }
a.wechat-monitor-fact:hover { background: rgba(79,163,255,.055); }
.wechat-monitor-fact > span { color: var(--admin-text-muted); font-size: 11px; font-weight: 650; }
.wechat-monitor-fact strong { color: var(--admin-text); font-size: 28px; line-height: 1.15; }
.wechat-monitor-fact .wechat-fact-text { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.wechat-session-expired { color: #ffb4bd !important; }
.wechat-session-saved { color: #f7d18e !important; }
.wechat-monitor-fact small { overflow: hidden; color: var(--admin-accent-hover); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.wechat-monitor-actions { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.wechat-sync-form, .wechat-filter-bar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.wechat-sync-form label, .wechat-filter-bar label { display: grid; gap: 5px; }
.wechat-sync-form select { min-width: 150px; }
.wechat-last-run { margin: 0; color: var(--admin-text-muted); font-size: 11px; text-align: right; }
.wechat-last-run strong { color: var(--admin-text-secondary); }
.admin-body .wechat-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; overflow: hidden; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: rgba(11,17,28,.7); }
.admin-body .wechat-tabs a { display: grid; gap: 2px; padding: 13px 16px; border: 0; border-right: 1px solid var(--admin-border); border-radius: 0; background: transparent; color: var(--admin-text-secondary); text-decoration: none; }
.admin-body .wechat-tabs a:last-child { border-right: 0; }
.admin-body .wechat-tabs a span { font-size: 13px; font-weight: 650; }
.admin-body .wechat-tabs a small { color: var(--admin-text-muted); font-size: 10px; }
.admin-body .wechat-tabs a:hover { background: var(--admin-surface); color: var(--admin-text); }
.admin-body .wechat-tabs a.active { border: 0; border-right: 1px solid var(--admin-border); background: var(--admin-accent-soft); color: #fff; box-shadow: inset 0 -2px 0 var(--admin-accent); }
.admin-body .wechat-tabs a.active small { color: #a9d2ff; }
.wechat-content-section { display: grid; gap: 16px; }
.wechat-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.wechat-section-heading h2 { margin: 4px 0 !important; font-size: 20px !important; }
.wechat-section-heading p:last-child { margin-bottom: 0; }
.wechat-section-heading.compact { align-items: flex-start; }
.wechat-run-list { display: grid; gap: 10px; }
.wechat-run-card { display: grid; grid-template-columns: 150px 140px 120px minmax(150px,.7fr) minmax(220px,1.3fr); align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--admin-border); border-left: 3px solid var(--admin-text-muted); border-radius: var(--admin-radius); background: rgba(16,24,36,.88); }
.wechat-run-card.is-success { border-left-color: var(--admin-success); }
.wechat-run-card.is-failed { border-left-color: var(--admin-danger); }
.wechat-run-card.is-running { border-left-color: var(--admin-warning); }
.wechat-run-date, .wechat-run-finish, .wechat-run-error { display: grid; gap: 3px; min-width: 0; }
.wechat-run-date strong { color: var(--admin-text); font-size: 14px; }
.wechat-run-date span, .wechat-run-finish span, .wechat-run-error span { color: var(--admin-text-muted); font-size: 10px; font-weight: 650; }
.wechat-run-result { display: grid; justify-items: start; gap: 5px; color: var(--admin-text-muted); font-size: 11px; }
.wechat-run-count { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 5px; color: var(--admin-text); text-decoration: none; }
.wechat-run-count strong { font-size: 25px; line-height: 1; }
.wechat-run-count span { color: var(--admin-text-secondary); font-size: 11px; }
.wechat-run-count small { grid-column: 1/-1; margin-top: 4px; color: var(--admin-accent-hover); font-size: 10px; }
.wechat-run-finish strong { overflow: hidden; color: var(--admin-text-secondary); font-size: 11px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.wechat-run-error p { display: -webkit-box; margin: 0; overflow: hidden; color: #ffb4bd; font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wechat-run-error.is-empty p { color: var(--admin-text-muted); }
.wechat-result-total { padding: 7px 10px; border: 1px solid var(--admin-border); border-radius: 999px; color: var(--admin-text-secondary); font-size: 11px; }
.wechat-filter-bar { padding: 14px; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); background: rgba(11,17,28,.72); }
.wechat-article-list { display: grid; border: 1px solid var(--admin-border); border-radius: var(--admin-radius); overflow: hidden; }
.wechat-article-row { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; gap: 18px; min-height: 78px; padding: 14px 16px; border-bottom: 1px solid var(--admin-border); background: rgba(16,24,36,.8); }
.wechat-article-row:last-child { border-bottom: 0; }
.wechat-article-row:hover { background: rgba(79,163,255,.04); }
.wechat-article-source, .wechat-article-title { display: grid; gap: 4px; min-width: 0; }
.wechat-article-source span { color: var(--admin-text-secondary); font-size: 12px; font-weight: 650; }
.wechat-article-source time, .wechat-article-title small { color: var(--admin-text-muted); font-size: 10px; }
.wechat-article-title a { overflow: hidden; color: var(--admin-text); font-size: 14px; font-weight: 620; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.wechat-article-title a:hover { color: var(--admin-accent-hover); }
.wechat-empty-state { display: grid; justify-items: start; gap: 6px; padding: 28px !important; }
.wechat-empty-state strong { color: var(--admin-text); }
.wechat-empty-state p { margin: 0 0 8px; }
.wechat-account-grid, .wechat-service-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 14px; }
.wechat-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.wechat-service-card { position: relative; display: grid; align-content: start; gap: 8px; min-height: 190px; }
.wechat-service-card > span:first-child { color: var(--admin-text-muted); font-size: 11px; font-weight: 700; }
.wechat-service-card > strong { color: var(--admin-text); font-size: 18px; }
.wechat-service-card code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wechat-service-card .status-badge { position: absolute; top: 18px; right: 18px; }
.wechat-service-card form { margin-top: auto; }
.wechat-danger-zone { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-color: rgba(255,127,141,.28) !important; }
@media (max-width: 1100px) { .wechat-run-card { grid-template-columns: 130px 130px 100px 1fr; } .wechat-run-error { grid-column: 1/-1; padding-top: 10px; border-top: 1px solid var(--admin-border); } .wechat-service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .wechat-page-heading, .wechat-monitor-actions, .wechat-section-heading, .wechat-danger-zone { align-items: stretch; flex-direction: column; } .wechat-heading-actions { justify-content: space-between; } .wechat-monitor-primary { padding: 20px 16px 16px; } .wechat-monitor-facts { grid-template-columns: 1fr; } .wechat-monitor-fact { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--admin-border); } .wechat-monitor-fact:last-child { border-bottom: 0; } .wechat-monitor-actions { padding: 16px; } .wechat-sync-form > *, .wechat-sync-form select, .wechat-filter-bar > * { width: 100%; } .admin-body .wechat-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); overflow: visible; } .admin-body .wechat-tabs a { min-width: 0; border-bottom: 1px solid var(--admin-border); } .admin-body .wechat-tabs a:nth-last-child(-n+2) { border-bottom: 0; } .wechat-run-card { grid-template-columns: 1fr 1fr; } .wechat-run-error { grid-column: 1/-1; } .wechat-article-row { grid-template-columns: 1fr auto; } .wechat-article-source { grid-column: 1/-1; display: flex; justify-content: space-between; } .wechat-account-grid, .wechat-service-grid { grid-template-columns: 1fr; } }
