:root {
  --bg: #0c0f1a;
  --panel: rgba(17, 24, 46, 0.8);
  --panel-strong: rgba(21, 30, 58, 0.9);
  --text: #f7f8ff;
  --muted: #a8b2d1;
  --accent: #7cf0c6;
  --accent-2: #7cc8ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

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

body.page {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(124, 240, 198, 0.08), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(124, 200, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #0c0f1a 0%, #0d1225 50%, #0b0f20 100%);
  position: relative;
}

body.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    );
  background-size: 22px 22px, 22px 22px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
}

.page__shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 5;
  margin: 0 0 28px;
  padding: 14px 18px;
  background: linear-gradient(
    135deg,
    rgba(12, 15, 26, 0.92) 0%,
    rgba(17, 24, 46, 0.88) 50%,
    rgba(12, 15, 26, 0.92) 100%
  );
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 240, 198, 0.4) 20%,
    rgba(124, 200, 255, 0.4) 50%,
    rgba(124, 240, 198, 0.4) 80%,
    transparent 100%
  );
  opacity: 0.8;
  z-index: 1;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(124, 240, 198, 0.2) 20%,
    rgba(124, 200, 255, 0.2) 50%,
    rgba(124, 240, 198, 0.2) 80%,
    transparent 100%
  );
  opacity: 0.6;
  z-index: 1;
}

.site-header__inner {
  position: relative;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
  padding: 6px 10px;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

.site-header__brand:hover {
  background: rgba(124, 240, 198, 0.1);
  border-color: rgba(124, 240, 198, 0.3);
  transform: translateY(-1px);
}

.site-header__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.site-header__brand:hover .site-header__logo {
  transform: scale(1.05);
  background: rgba(124, 240, 198, 0.15);
}

.site-header__title {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(124, 240, 198, 0.2);
  background: linear-gradient(135deg, rgba(124, 240, 198, 0.15), rgba(124, 200, 255, 0.1));
  transition: all 0.2s ease;
}

.site-header__brand:hover .site-header__title {
  border-color: rgba(124, 240, 198, 0.4);
  background: linear-gradient(135deg, rgba(124, 240, 198, 0.2), rgba(124, 200, 255, 0.15));
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav__item {
  text-decoration: none;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.site-nav__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 240, 198, 0.1), transparent);
  transition: left 0.5s ease;
}

.site-nav__item:hover::before {
  left: 100%;
}

.site-nav__item:hover {
  border-color: rgba(124, 240, 198, 0.3);
  background: rgba(124, 240, 198, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(124, 240, 198, 0.15);
}

.hero {
  padding: 18px 18px;
  background: var(--panel-strong);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  background: rgba(124, 240, 198, 0.08);
}

.hero__title {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.hero__desc {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.6;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.stat {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.stat__num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.stat__label {
  color: var(--muted);
  font-size: 0.95rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-pill {
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: 0.12s ease;
}

.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-pill.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 240, 198, 0.12);
}

.tag-chip {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.filter-bar {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.filter-row {
  display: grid;
  gap: 6px;
}

.search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 240, 198, 0.12);
}

.filter-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.sort-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sort-tab {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: 0.12s ease;
}

.sort-tab:hover {
  border-color: var(--accent);
}

.sort-tab.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 240, 198, 0.12);
}

.content {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 18px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.15rem;
}

.ghost-link {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 10px;
}

.ghost-link:hover {
  border-color: var(--border);
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 10px 10px;
}

.card {
  display: block;
  padding: 16px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(18, 26, 47, 0.7);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 240, 198, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card__count {
  color: var(--muted);
  font-size: 0.95rem;
}

.card__title {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.card__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  background: rgba(124, 240, 198, 0.12);
}

.card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-badge {
  font-size: 0.82rem;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(124, 200, 255, 0.12);
}

.tag-badge:nth-child(4n + 1) {
  background: rgba(124, 240, 198, 0.14);
}

.tag-badge:nth-child(4n + 2) {
  background: rgba(124, 200, 255, 0.14);
}

.tag-badge:nth-child(4n + 3) {
  background: rgba(255, 204, 102, 0.14);
}

.tag-badge:nth-child(4n) {
  background: rgba(255, 122, 188, 0.14);
}

.tag-badge--muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.card--link .card__title {
  font-size: 1.05rem;
}

.card--tool .card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
}

.card__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-grid {
  position: relative;
}

.tool-grid.empty::after {
  content: "暂无匹配结果";
  color: var(--muted);
  display: block;
  padding: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.pill {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(124, 240, 198, 0.6);
  color: var(--accent);
  background: rgba(124, 240, 198, 0.1);
  font-weight: 700;
  font-size: 0.9rem;
}

.pill--muted {
  border-color: var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.post {
  padding: 0;
}
.post__header{
    padding: 10px;
}

.post__header h1 {
  margin: 0 0 8px;
}

.post__subtitle {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Blog (posts) */
.blog {
  max-width: none;
}

.blog__header {
  margin-bottom: 14px;
}

.blog__title {
  margin: 0 0 8px;
}

.blog__subtitle {
  margin: 0;
  color: var(--muted);
}

.blog-list {
  display: grid;
  gap: 14px;
}

.blog-item {
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.blog-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-item__title {
  margin: 10px 0 8px;
  font-size: 1.25rem;
}

.blog-item__title a {
  text-decoration: none;
  color: var(--text);
}

.blog-item__title a:hover {
  color: var(--accent);
}

.blog-item__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.blog-item__more {
  margin-top: 10px;
}

.blog-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.blog-pagination__info {
  font-size: 0.95rem;
}

.blog-post {
  max-width: 880px;
  margin: 0 auto;
}

.blog-post__header {
  margin-bottom: 14px;
}

.blog-post__title {
  margin: 0 0 10px;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.blog-post__subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.blog-post__footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.prose {
  color: var(--reader-text, rgba(245, 247, 255, 0.92));
  line-height: 2;
  font-size: 1.05rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  text-align: justify;
}

/* 阅读模式下的 prose 样式 */
.reader-body .prose {
  color: var(--reader-text);
}

.reader-body .prose a {
  color: var(--reader-link);
  text-decoration: underline;
  text-decoration-color: rgba(124, 200, 255, 0.4);
  text-underline-offset: 3px;
}

.reader-body .prose a:hover {
  color: var(--reader-accent-2);
  text-decoration-color: var(--reader-accent-2);
}

.reader-body .prose h2,
.reader-body .prose h3 {
  color: var(--reader-text);
  border-bottom-color: var(--reader-border);
}

.reader-body .prose code {
  background: rgba(124, 200, 255, 0.1);
  border-color: var(--reader-border);
  color: var(--reader-accent);
}

.reader-body .prose pre {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--reader-border);
}

.reader-body .prose blockquote {
  border-left-color: var(--reader-accent-2);
  background: rgba(124, 240, 198, 0.06);
  color: var(--reader-text-secondary);
}

.reader-body .prose img {
  border-color: var(--reader-border);
}

.prose h2,
.prose h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.prose h2 {
  font-size: 1.4rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 18px;
  text-indent: 0;
}

.prose li {
  margin-bottom: 8px;
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-bottom: 18px;
}

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

.prose code {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

.prose pre {
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  overflow: auto;
}

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

.prose blockquote {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(124, 240, 198, 0.6);
  background: rgba(124, 240, 198, 0.06);
  color: var(--muted);
}

.prose img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.prose img[style] {
  max-width: none !important;
}

.prose img[width],
.prose img[height] {
  max-width: none !important;
}

/* KaTeX Math Formula Styles */
.prose .katex {
  font-size: 1.1em;
}

.prose .katex-display {
  margin: 20px 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.prose .katex-display > .katex {
  display: inline-block;
  text-align: initial;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0 24px;
  padding: 12px 10px;
}

.link-card {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.1s ease, border-color 0.1s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 240, 198, 0.7);
}

.link-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.link-card__header .card__logo {
  flex-shrink: 0;
}

.link-card__title {
  font-weight: 700;
  margin: 0;
  text-align: right;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 8px;
  display: block;
  width: 100%;
}

.link-card__spacer {
  flex: 1;
  min-height: 8px;
}

.link-card .tag-row {
  margin-top: 0;
  margin-bottom: 0;
}

.site-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(124, 200, 255, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.site-footer__email:hover {
  border-color: var(--accent-2);
  background: rgba(124, 200, 255, 0.15);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.site-footer__email svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Blog Layout - Left Sidebar + Right Content */
.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.blog-sidebar {
  position: static;
}

.blog-sidebar__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.blog-sidebar__list {
  display: grid;
  gap: 8px;
}

.blog-sidebar__item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text);
  transition: 0.12s ease;
}

.blog-sidebar__item:hover {
  border-color: var(--accent);
  background: rgba(124, 240, 198, 0.08);
}

.blog-sidebar__item.is-active {
  border-color: var(--accent);
  background: rgba(124, 240, 198, 0.12);
  color: var(--accent);
}

.blog-sidebar__item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  line-height: 1.4;
}

.blog-sidebar__item-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-sidebar__item.is-active .blog-sidebar__item-meta {
  color: var(--accent);
  opacity: 0.8;
}

.blog-sidebar__pagination,
.blog-sidebar__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.blog-content {
  min-width: 0;
}

.blog-post {
  max-width: none;
}

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-sidebar {
    position: static;
    order: 2;
  }
  .blog-content {
    order: 1;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .site-nav {
    flex-wrap: wrap;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 16px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Filter Cloud */
.filter-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  transition: all 0.15s ease;
}

.filter-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-tag--category {
  border-color: rgba(124, 200, 255, 0.3);
  background: rgba(124, 200, 255, 0.08);
}

.filter-tag--category:hover {
  border-color: rgba(124, 200, 255, 0.6);
  background: rgba(124, 200, 255, 0.15);
  color: var(--accent-2);
}

.filter-tag--tag {
  border-color: rgba(124, 240, 198, 0.3);
  background: rgba(124, 240, 198, 0.08);
}

.filter-tag--tag:hover {
  border-color: rgba(124, 240, 198, 0.6);
  background: rgba(124, 240, 198, 0.15);
  color: var(--accent);
}

.filter-tag--tag.is-active {
  border-color: var(--accent);
  background: rgba(124, 240, 198, 0.25);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(124, 240, 198, 0.3);
}

.filter-tag__name {
  font-weight: 500;
}

.filter-tag__count {
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(124, 200, 255, 0.4);
  background: rgba(124, 200, 255, 0.12);
  color: var(--accent-2);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.12s ease;
  margin-right: 4px;
}

.category-badge:hover {
  border-color: rgba(124, 200, 255, 0.7);
  background: rgba(124, 200, 255, 0.2);
}

/* Blog Sidebar Group Title */
.blog-sidebar__group {
  margin-bottom: 12px;
}

.blog-sidebar__group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text);
  transition: all 0.15s ease;
}

.category-list__item:hover {
  border-color: rgba(124, 200, 255, 0.5);
  background: rgba(124, 200, 255, 0.1);
  transform: translateX(4px);
}

.category-list__item.is-active {
  border-color: var(--accent-2);
  background: rgba(124, 200, 255, 0.2);
  color: var(--accent-2);
  box-shadow: 0 0 12px rgba(124, 200, 255, 0.2);
}

.category-list__item.is-active .category-list__name {
  color: var(--accent-2);
}

.category-list__item.is-active .category-list__count {
  background: rgba(124, 200, 255, 0.3);
  color: var(--text);
}

.category-list__name {
  font-weight: 500;
  font-size: 0.95rem;
}

.category-list__name::before {
  content: "📂 ";
  font-size: 0.9em;
}

.category-list__count {
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(124, 200, 255, 0.15);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Article List */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: rgba(124, 240, 198, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.article-card__header {
  margin-bottom: 12px;
}

.article-card__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-card__title a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s ease;
}

.article-card__title a:hover {
  color: var(--accent);
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.article-card__categories {
  display: inline-flex;
  gap: 6px;
}

.article-card__summary {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.article-card__readmore {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(124, 240, 198, 0.4);
  background: rgba(124, 240, 198, 0.1);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.article-card__readmore:hover {
  border-color: var(--accent);
  background: rgba(124, 240, 198, 0.2);
  transform: translateX(4px);
}

/* Filter UI */
.filter-reset {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 100, 100, 0.4);
  background: rgba(255, 100, 100, 0.1);
  color: #ff6b6b;
  font-size: 0.78rem;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s ease;
}

.filter-reset:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.6);
}

.filter-count {
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(124, 240, 198, 0.15);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title h2 {
  margin: 0;
  font-size: 1.15rem;
}

/* ==================== */
/* Reader Layout - 阅读页面 */
/* ==================== */

/* 阅读模式配色变量 - 深蓝护眼 */
.reader-layout {
  --reader-bg: #0d1220;
  --reader-panel: rgba(17, 24, 42, 0.95);
  --reader-panel-hover: rgba(22, 32, 55, 0.98);
  --reader-text: #e4e8f0;
  --reader-text-secondary: #9ca8c0;
  --reader-border: rgba(124, 200, 255, 0.1);
  --reader-accent: #7cc8ff;
  --reader-accent-2: #7cf0c6;
  --reader-link: #7cc8ff;
  --reader-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--reader-accent), var(--reader-accent-2));
  z-index: 100;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(124, 200, 255, 0.5);
}

/* 阅读器布局 */
.reader-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

/* 目录侧边栏 */
.toc-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.toc-container {
  padding: 20px;
  background: var(--reader-panel);
  border: 1px solid var(--reader-border);
  border-radius: var(--radius);
  box-shadow: var(--reader-shadow);
}

.toc-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--reader-text);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--reader-border);
}

.toc-nav {
  font-size: 0.9rem;
  line-height: 1.6;
}

.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-nav li {
  margin-bottom: 8px;
}

.toc-nav ul ul {
  padding-left: 16px;
  margin-top: 6px;
}

.toc-nav a {
  display: block;
  padding: 6px 10px;
  color: var(--reader-text-secondary);
  text-decoration: none;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.toc-nav a:hover {
  color: var(--reader-text);
  background: rgba(124, 200, 255, 0.08);
}

.toc-nav a.is-active {
  color: var(--reader-accent);
  background: rgba(124, 200, 255, 0.12);
  border-left-color: var(--reader-accent);
}

.toc-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--reader-border);
}

/* 主阅读区 */
.reader-content {
  min-width: 0;
}

.reader-article {
  background: var(--reader-panel);
  border: 1px solid var(--reader-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--reader-shadow);
}

/* 文章头部 */
.reader-header {
  padding: 40px 40px 30px;
  background: linear-gradient(180deg, rgba(124, 200, 255, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--reader-border);
}

.reader-header__meta {
  margin-bottom: 16px;
}

.reader-category {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(124, 200, 255, 0.15);
  color: var(--reader-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-right: 8px;
  transition: all 0.15s ease;
}

.reader-category:hover {
  background: rgba(124, 200, 255, 0.25);
}

.reader-header__title {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--reader-text);
}

.reader-header__summary {
  margin: 0 0 20px;
  font-size: 1.1rem;
  color: var(--reader-text-secondary);
  line-height: 1.7;
  font-style: italic;
}

.reader-header__info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.reader-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--reader-text-secondary);
  font-size: 0.9rem;
}

.reader-info-item svg {
  opacity: 0.7;
  color: var(--reader-accent);
}

.reader-header__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-header__tags .tag-badge {
  background: rgba(124, 240, 198, 0.12);
  border-color: rgba(124, 240, 198, 0.25);
  color: var(--reader-accent-2);
}

.reader-header__tags .tag-badge:hover {
  background: rgba(124, 240, 198, 0.2);
  border-color: var(--reader-accent-2);
}

/* 文章内容 */
.reader-body {
  padding: 40px;
}

/* 文章底部 */
.reader-footer {
  padding: 30px 40px 40px;
  border-top: 1px solid var(--reader-border);
  background: rgba(0, 0, 0, 0.15);
}

/* 上下篇导航 */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.article-nav__item {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--reader-border);
  background: rgba(124, 200, 255, 0.03);
  text-decoration: none;
  color: var(--reader-text);
  transition: all 0.2s ease;
}

.article-nav__item:hover:not(.article-nav__empty) {
  border-color: var(--reader-accent);
  background: rgba(124, 200, 255, 0.1);
  transform: translateY(-2px);
}

.article-nav__prev {
  align-items: flex-start;
}

.article-nav__next {
  align-items: flex-end;
  text-align: right;
}

.article-nav__label {
  font-size: 0.82rem;
  color: var(--reader-text-secondary);
  margin-bottom: 6px;
}

.article-nav__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.article-nav__empty {
  opacity: 0.5;
  cursor: default;
}

.reader-footer__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.reader-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--reader-border);
  background: rgba(124, 200, 255, 0.05);
  color: var(--reader-text);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.reader-btn:hover {
  border-color: var(--reader-accent);
  background: rgba(124, 200, 255, 0.15);
  color: var(--reader-accent);
}

/* 响应式 */
@media (max-width: 900px) {
  .reader-layout {
    grid-template-columns: 1fr;
  }
  
  .toc-sidebar {
    display: none;
  }
  
  .reader-header {
    padding: 30px 24px 24px;
  }
  
  .reader-header__title {
    font-size: 1.6rem;
  }
  
  .reader-body {
    padding: 24px;
  }
  
  .reader-footer {
    padding: 24px;
  }
  
  .article-nav {
    grid-template-columns: 1fr;
  }
  
  .article-nav__next {
    align-items: flex-start;
    text-align: left;
  }
}
