/* ==========================================================================
   Personal Blog - Core SSR Design System & Typography
   ========================================================================== */

:root {
  /* Common variables */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --max-width: 1080px;
  --content-width: 820px;
  --header-height: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg-color: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --code-bg: #f1f5f9;
}

/* Dark theme (Default) */
[data-theme="dark"] {
  --bg-color: #0b0f17;
  --bg-surface: #111827;
  --bg-card: #151e2e;
  --border-color: #1f293d;
  --border-light: #162033;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0b0f17;
  --accent-color: #38bdf8;
  --accent-hover: #0ea5e9;
  --accent-light: #0369a1;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --code-bg: #1e293b;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body.site-body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Site Wrapper */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

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

.brand-logo {
  font-size: 24px;
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.desktop-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--border-color);
}

.nav-link.is-active {
  color: var(--accent-color);
  background-color: var(--border-light);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.icon-button:hover {
  color: var(--text-primary);
  border-color: var(--accent-color);
  background-color: var(--border-light);
}

[data-theme="dark"] .icon-sun { display: inline-block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline-block; }

.mobile-menu-toggle {
  display: none;
}

.mobile-nav-drawer {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-link.is-active {
  color: var(--accent-color);
  background-color: var(--border-light);
  font-weight: 600;
}

/* Main Container */
.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Footer */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 36px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

.footer-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

/* Pagination */
.pagination-wrapper {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.pagination-list {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  background-color: var(--bg-surface);
}

.page-item:not(.disabled):not(.active) .page-link:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.page-item.active .page-link {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
}

.page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Error Page */
.error-page-container {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.error-card {
  max-width: 500px;
  text-align: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
}

.error-badge {
  display: inline-block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.error-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

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

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

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .brand-subtitle {
    display: none;
  }

  .site-main {
    padding: 24px 16px;
  }

  .home-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

/* ==========================================================================
   Home Page Layout & Card Components
   ========================================================================== */

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.main-content-column {
  min-width: 0;
}

.articles-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card.is-pinned {
  border-left: 4px solid #ef4444;
}

.article-card-inner {
  display: flex;
  flex-direction: column;
}

.article-cover-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--border-light);
  display: block;
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-cover-img {
  transform: scale(1.03);
}

.article-card-content {
  padding: 24px;
}

.article-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.badge-top {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.badge-protected {
  background-color: #f59e0b;
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.article-card-title {
  width: 100%;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 0 0;
}

.article-card-title a {
  color: var(--text-primary);
}

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

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-card-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tags-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag-pill {
  background-color: var(--border-light);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  transition: var(--transition);
}

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

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 64px 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* Sidebar Widgets */
.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), #818cf8);
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.avatar-fallback {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
}

.profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 18px;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-links {
  display: flex;
  gap: 10px;
}

.profile-link-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--border-light);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.profile-link-btn:hover {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.widget-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.category-link:hover {
  background-color: var(--border-light);
  color: var(--accent-color);
}

.category-count {
  background-color: var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
}

.widget-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cloud-tag-pill {
  background-color: var(--border-light);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition);
}

.cloud-tag-pill:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
}

.tag-count {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ==========================================================================
   Article Detail Page Components & TOC
   ========================================================================== */

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

@media (max-width: 900px) {
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .article-detail-sidebar {
    display: none;
  }
}

.article-detail-main {
  min-width: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .article-detail-main {
    padding: 24px 18px;
  }
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-header-crumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.crumb-current {
  color: var(--text-secondary);
}

.article-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .article-page-title {
    font-size: 1.65rem;
  }
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.article-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.article-featured-image {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 380px;
  border: 1px solid var(--border-color);
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  margin-bottom: 40px;
}

/* Protected Gate Card */
.protected-gate-card {
  text-align: center;
  padding: 48px 24px;
  background-color: var(--border-light);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  margin: 32px 0;
}

.protected-gate-card .lock-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.protected-title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.protected-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.unlock-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.unlock-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  font-size: 0.95rem;
}

.unlock-input:focus {
  border-color: var(--accent-color);
}

.protected-alert {
  margin: 0 auto 16px;
  max-width: 380px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 0.9rem;
}

.unlocked-notice-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 20px;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Copyright Box */
.copyright-box {
  background-color: var(--border-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 40px 0 32px 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.copyright-item strong {
  color: var(--text-primary);
}

/* Adjacent Older/Newer Nav */
.adjacent-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
  .adjacent-nav {
    grid-template-columns: 1fr;
  }
}

.adjacent-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background-color: var(--border-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

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

.adjacent-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.adjacent-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.adjacent-link.is-empty {
  color: var(--text-muted);
  font-weight: normal;
}

/* TOC Widget */
.article-detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toc-widget {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.toc-container ul {
  list-style: none;
  padding-left: 12px;
  margin: 6px 0;
}

.toc-container > ul {
  padding-left: 0;
}

.toc-container li {
  margin: 6px 0;
}

.toc-container a {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

.toc-container a:hover {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* ==========================================================================
   Archive Timeline & Taxonomy Aggregations
   ========================================================================== */

.archive-page-container {
  max-width: 860px;
  margin: 0 auto;
}

.page-intro-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.page-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Timeline Components */
.timeline-wrapper {
  position: relative;
  padding-left: 28px;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), var(--border-color));
}

.timeline-year-section {
  position: relative;
  margin-bottom: 40px;
}

.timeline-year-badge {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 14px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-color);
  border-radius: var(--radius-full);
  margin-left: -28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-year-badge .year-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-color);
}

.timeline-year-badge .year-count {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.timeline-month-group {
  margin-bottom: 24px;
}

.timeline-month-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-month-heading .month-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-left: -24px;
  border: 2px solid var(--bg-body);
  box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-month-heading .month-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.timeline-article-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.timeline-article-item:hover {
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.timeline-time {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.timeline-article-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  text-decoration: none;
}

.timeline-article-link:hover {
  color: var(--accent-color);
}

.timeline-cat-tag {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--border-light);
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
}

.timeline-cat-tag:hover {
  color: var(--accent-color);
  background-color: rgba(99, 102, 241, 0.1);
}

/* Taxonomy Layout */
.taxonomy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.taxonomy-header-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
}

.taxonomy-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.taxonomy-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
}

.taxonomy-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.taxonomy-count-badge {
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background-color: var(--border-light);
  color: var(--text-muted);
}

.taxonomy-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
  line-height: 1.6;
}

.tag-pill-active {
  background-color: var(--accent-color) !important;
  color: #fff !important;
  border-color: var(--accent-color) !important;
}

.taxonomy-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quick-nav-links {
  display: flex;
  gap: 10px;
}

@media (max-width: 860px) {
  .taxonomy-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Topic Series & Serial Reading Styles
   ========================================================================== */

.topics-page-container {
  max-width: 1080px;
  margin: 0 auto;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.topic-card-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: var(--border-light);
}

.topic-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.topic-card:hover .topic-cover-img {
  transform: scale(1.05);
}

.topic-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.topic-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.topic-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--accent-color);
}

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

.topic-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.topic-card-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.topic-card-title a:hover {
  color: var(--accent-color);
}

.topic-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.topic-link-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Topic Detail Page */
.topic-detail-container {
  max-width: 920px;
  margin: 0 auto;
}

.topic-hero-banner {
  display: flex;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.topic-banner-cover {
  width: 260px;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--border-light);
}

.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-banner-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.topic-hero-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.topic-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.topic-hero-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.topic-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.serial-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.serial-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.serial-count-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.serial-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.serial-item-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  transition: var(--transition);
}

.serial-item-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.serial-index-box {
  flex-shrink: 0;
}

.serial-index-num {
  font-family: var(--font-mono, monospace);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--border-color);
  transition: color 0.2s ease;
}

.serial-item-card:hover .serial-index-num {
  color: var(--accent-color);
}

.serial-info-main {
  flex: 1;
}

.serial-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.serial-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.serial-item-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.serial-item-title a:hover {
  color: var(--accent-color);
}

.serial-item-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.serial-action-col {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .topic-hero-banner {
    flex-direction: column;
  }
  .topic-banner-cover {
    width: 100%;
    height: 180px;
  }
  .serial-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .serial-action-col {
    align-self: flex-end;
  }
}

/* ==========================================================================
   Reading Progress Bar & Back to Top & Category Hub
   ========================================================================== */

/* Reading Progress Bar (Fixed Top) */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-color), #ec4899);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Back to Top Button (Fixed Bottom-Right) */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Category Hub Cards */
.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.category-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.category-hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.hub-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.hub-content {
  flex: 1;
}

.hub-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.category-hub-card:hover .hub-title {
  color: var(--accent-color);
}

.hub-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 10px;
}

.hub-count {
  font-size: 0.82rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* ==========================================================================
   Full-Text Search Page Styles
   ========================================================================== */

.search-page-layout {
  max-width: 900px;
  margin: 0 auto;
}

.search-header {
  margin-bottom: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.search-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 12px 0 20px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.search-main-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition);
}

.search-main-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-submit-btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-color);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.search-filter-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.filter-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  min-width: 48px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.filter-pill.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  font-weight: 600;
}

/* Search Meta Bar */
.search-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.search-query-tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* Search Highlight */
mark.search-highlight {
  background-color: rgba(251, 191, 36, 0.35);
  color: inherit;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  border-bottom: 2px solid #f59e0b;
}

[data-theme="dark"] mark.search-highlight {
  background-color: rgba(245, 158, 11, 0.45);
  color: #fef08a;
}

.search-snippet {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 10px 0 14px;
  word-break: break-word;
}

/* Search Empty State */
.search-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.search-recommendations {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rec-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.rec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rec-link {
  font-size: 0.9rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rec-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   Comment System (M6-03)
   ========================================================================== */
.comment-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.comment-section-header {
  margin-bottom: 24px;
}

.comment-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.comment-count-badge {
  font-size: 0.85rem;
  background: var(--bg-surface-hover);
  color: var(--accent-color);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.comment-locked-banner {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
}

.comment-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.comment-form-card:focus-within {
  border-color: var(--accent-color);
}

.comment-form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.form-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.replying-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.btn-cancel-reply {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  transition: var(--transition);
}

.btn-cancel-reply:hover {
  color: #ef4444;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.comment-form-alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.comment-form-alert.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.comment-form-alert.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.comment-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-submit-comment {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

/* Comment List */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar-col {
  flex-shrink: 0;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.comment-avatar.is-reply {
  width: 36px;
  height: 36px;
}

.comment-content-col {
  flex: 1;
  min-width: 0;
}

.comment-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.comment-user-name,
.comment-user-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  text-decoration: none;
}

.comment-user-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.comment-badge-admin {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.2;
}

.comment-meta-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-reply-trigger {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-reply-trigger:hover {
  color: var(--accent-color);
  background: var(--bg-surface-hover);
}

.comment-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: break-word;
}

.comment-body p {
  margin: 4px 0 8px;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

.comment-nested-replies {
  margin-top: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reply-item {
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 14px;
}

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

.comment-empty-placeholder {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------
   Friend Links Page Styles (M7)
   ------------------------------------------------------------- */
.links-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.link-logo-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link-logo-fallback {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
}

.link-info {
  flex: 1;
  min-width: 0;
}

.link-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-exchange-guide {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-top: 32px;
}

.guide-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.guide-body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.guide-list {
  margin: 12px 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.my-blog-info {
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-color);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 14px;
}





