:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e293b;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

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

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 210px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transform: translateX(-100%);
}

@media (min-width: 1025px) {
  .app-sidebar {
    transform: translateX(0);
  }
}

.sidebar-logo {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

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

.logo-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.sidebar-category {
  margin-bottom: 20px;
}

.sidebar-category-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.3px;
  padding: 0 12px 8px;
}

.sidebar-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-tool-item {
  margin: 0;
}

.sidebar-tool-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.sidebar-tool-item a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-tool-item.active a {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--primary-light);
  font-weight: 600;
}

.tool-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 18px;
  height: 18px;
}

.tool-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.app-main {
  margin-left: 210px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-menu-btn:hover {
  background: var(--bg-tertiary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

.hero-section {
  position: relative;
  padding: 60px 60px 15px;
  overflow: visible;
  background: linear-gradient(180deg, #f0f4ff 0%, var(--bg-primary) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: #3b82f6;
  top: -100px;
  right: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: #f59e0b;
  bottom: -50px;
  left: 5%;
  animation-delay: -3s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: #8b5cf6;
  top: 30%;
  right: 20%;
  animation-delay: -5s;
  opacity: 0.25;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(30, 58, 138, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-title-single {
  font-size: 52px;
  white-space: nowrap;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto 15px;
  position: relative;
}

.hero-search-input {
  background: white;
  box-shadow: var(--shadow-lg);
  padding: 18px 24px;
  transition: all 0.3s ease;
}

.hero-search-input:hover {
  box-shadow: var(--shadow-xl);
}

.hero-search-input:focus-within {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.hero-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin-top: 8px;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid var(--border);
  display: none;
}

.hero-search-results.active {
  display: block;
}

.hero-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  float: none;
  clear: both;
}

.hero-search-result-item:last-child {
  border-bottom: none;
}

.hero-search-result-item:hover {
  background: var(--bg-tertiary);
}

.hero-search-result-type {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.hero-search-result-type.blog {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.hero-search-result-type.news {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.hero-search-result-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.hero-search-result-meta {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.hero-search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.search-input-wrap svg {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

.tool-website-btn svg {
  width: 16px;
  height: 16px;
}

.tool-website-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text-primary);
}

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

.search-input-wrap kbd {
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: inherit;
}

.hero-pinned {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.hero-pinned-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.hero-pinned-link:hover {
  color: var(--primary);
}

.hero-pinned-tool {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.hero-pinned-title {
  font-weight: 500;
}

.section {
  padding: 25px 60px 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  color: var(--text-primary);
}

.section-title-sm {
  font-size: 18px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.title-icon svg {
  width: 18px;
  height: 18px;
}

.title-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 4px;
}

.section-more {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.section-more:hover {
  color: var(--primary-light);
}

.section-count {
  font-size: 14px;
  color: var(--text-muted);
}

.categories-section {
  padding-top: 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

.category-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.category-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.category-count {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.blog-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-cover {
  height: 160px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-card-tool {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.tag-sm {
  font-size: 11px;
  padding: 3px 8px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

.blog-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card-horizontal {
  flex-direction: row;
}

.blog-card-horizontal .blog-card-cover {
  width: 200px;
  min-width: 200px;
  height: auto;
}

.blog-card-horizontal .blog-card-body {
  padding: 24px;
}

.home-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.home-main {
  grid-column: 1;
}

.home-sidebar {
  grid-column: 2;
  position: sticky;
  top: 40px;
  height: fit-content;
}

.news-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.news-timeline {
  position: relative;
  padding-left: 24px;
}

.news-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.news-timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.news-timeline-item:last-child {
  padding-bottom: 0;
}

.news-item-first .news-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.news-item-first .news-title {
  color: var(--accent);
}

.news-item-first .news-title:hover {
  opacity: 0.8;
}

.news-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--bg-secondary);
  border: 3px solid var(--primary-light);
  border-radius: 50%;
  z-index: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.news-tool {
  font-weight: 500;
  color: var(--primary);
}

.news-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
  transition: color 0.2s ease;
}

.news-title:hover {
  color: var(--primary);
}

.news-version {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.news-compact .news-title {
  font-size: 14px;
}

.news-sidebar {
  padding-left: 20px;
}

.news-sidebar::before {
  left: 4px;
}

.news-sidebar .news-dot {
  left: -18px;
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.tool-header {
  padding: 40px 50px 30px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
}

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

.tool-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.tool-logo {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-logo svg {
  width: 64px;
  height: 64px;
  stroke: currentColor;
}

.tool-logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.tool-meta {
  flex: 1;
}

.tool-name {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tool-tagline {
  color: var(--text-secondary);
  font-size: 15px;
}

.tool-website-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tool-website-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.tool-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 700px;
}

.tool-content-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  padding: 40px 50px;
}

.tool-main-col .section-header {
  margin-bottom: 24px;
}

.tool-side-col {
  position: sticky;
  top: 30px;
  align-self: flex-start;
}

.tool-side-col .section-header {
  margin-bottom: 20px;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-sm {
  padding: 30px 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.article-header {
  background: var(--bg-primary);
}

.article-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 50px 0;
}

.article-cover {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.article-cover-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: white;
}

.article-cover-overlay .article-title {
  color: white;
  font-size: 28px;
  margin-bottom: 12px;
}

.article-cover-overlay .article-meta {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.article-cover-overlay .article-meta .dot {
  color: rgba(255, 255, 255, 0.4);
}

.article-type-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.article-title {
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-source {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.article-source:hover {
  opacity: 0.8;
}

.article-cover-overlay .article-source {
  color: rgba(255, 255, 255, 0.9);
}

.article-cover-overlay .article-source:hover {
  color: #fff;
}

.article-meta .dot {
  color: var(--border);
}

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

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 50px;
  padding: 20px 50px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.markdown-body h1 {
  font-size: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.markdown-body h2 {
  font-size: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  position: relative;
  margin-top: 36px;
  margin-bottom: 20px;
  color: #0369a1;
}

.markdown-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #0ea5e9;
  border-radius: 8px 0 0 8px;
}

.markdown-body h3 {
  font-size: 18px;
}

.markdown-body p {
  margin-bottom: 16px;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'SF Mono', Menlo, monospace;
}

.markdown-body pre {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
  display: block;
  white-space: pre;
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px auto;
}

.markdown-body a {
  color: var(--primary-light);
  text-decoration: underline;
}

.markdown-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.markdown-body .table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.markdown-body th {
  background: var(--bg-tertiary);
  font-weight: 600;
}

.article-sidebar {
  position: sticky;
  top: 30px;
  align-self: flex-start;
}

.article-toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.article-toc h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: var(--primary);
}

.related-articles {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.related-articles h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.related-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.related-title {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
  line-height: 1.4;
}

.related-item:hover .related-title {
  color: var(--primary);
}

.related-date {
  font-size: 12px;
  color: var(--text-muted);
}

.related-articles + .related-articles {
  margin-top: 16px;
}

.related-item.related-nav {
  padding: 12px 0;
}

.related-nav-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-overlay.active {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin: 0 20px;
}

.search-modal .search-input-wrap {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 24px;
}

.search-modal .search-input-wrap input {
  font-size: 16px;
}

.search-results {
  max-height: 500px;
  overflow-y: auto;
  padding: 12px;
}

.search-placeholder {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.search-hint {
  font-size: 13px;
  margin-top: 8px;
}

.search-result-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
  margin-bottom: 4px;
}

.search-result-item:hover {
  background: var(--bg-tertiary);
}

.search-result-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
}

.search-result-type.blog {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.search-result-type.news {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

.search-result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.search-result-summary {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

mark {
  background: rgba(245, 158, 11, 0.3);
  color: inherit;
  padding: 1px 2px;
  border-radius: 2px;
}

@media (max-width: 1280px) {
}

@media (max-width: 1024px) {
  body.sidebar-ready .app-sidebar {
    transition: transform 0.3s ease;
  }
  
  .app-sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .app-main {
    margin-left: 0;
  }
  
  .home-layout {
    grid-template-columns: 1fr;
  }
  
  .home-main,
  .home-sidebar {
    grid-column: auto;
  }
  
  .home-sidebar {
    position: static;
  }
  
  .tool-content-layout {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }
  
  .tool-main-col,
  .tool-side-col {
    grid-column: auto;
  }
  
  .tool-side-col {
    position: static;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    padding: 20px 30px 40px;
  }
  
  .article-sidebar {
    position: static;
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-section {
    padding: 60px 30px 40px;
  }
  
  .section {
    padding: 40px 30px;
  }
  
  .tool-header {
    padding: 30px;
  }
  
  .article-header {
    padding: 0;
  }
  
  .article-header-inner {
    padding: 30px 30px 0;
  }

  .article-cover-overlay .article-title {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card-horizontal {
    flex-direction: column;
  }
  
  .blog-card-horizontal .blog-card-cover {
    width: 100%;
    height: 140px;
    min-width: auto;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .tool-name {
    font-size: 24px;
  }
  
  .article-title {
    font-size: 26px;
  }
  
  .section-title {
    font-size: 22px;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

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

.list-header {
  margin-bottom: 40px;
  text-align: center;
}

.list-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  font-family: 'Playfair Display', serif;
}

.list-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-tertiary);
}

.load-more-count {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

@media (max-width: 1024px) {
  .list-page {
    padding: 30px 20px;
  }
  
  .list-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .list-title {
    font-size: 24px;
  }
}

.load-more-tool {
  margin-top: 32px;
}

.load-more-tool-sidebar {
  margin-top: 20px;
}

.load-more-btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.load-more-btn-sm .load-more-count {
  font-size: 12px;
}

.about-page {
  max-width: 800px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-title {
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.about-subtitle {
  font-size: 16px;
  color: #64748b;
}

.about-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 12px;
}

.about-section a {
  color: #3b82f6;
  text-decoration: none;
}

.about-section a:hover {
  text-decoration: underline;
}

.wechat-qr-section {
  text-align: center;
  margin-top: 24px;
}

.wechat-qr-wrapper {
  display: inline-block;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wechat-qr-image {
  width: 180px;
  height: 180px;
  display: block;
}

.wechat-qr-text {
  font-size: 14px;
  color: #64748b;
  margin-top: 12px;
  margin-bottom: 0;
}

.feedback-page {
  max-width: 600px;
  margin: 0 auto;
}

.feedback-header {
  text-align: center;
  margin-bottom: 48px;
}

.feedback-tag {
  font-size: 14px;
  color: #3b82f6;
  font-weight: 500;
}

.feedback-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin: 16px 0;
}

.feedback-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
}

.feedback-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.form-label .optional {
  font-weight: 400;
  color: #94a3b8;
}

.form-textarea {
  width: 100%;
  min-height: 160px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea::placeholder {
  color: #cbd5e1;
}

.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: #cbd5e1;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: #cbd5e1;
  cursor: not-allowed;
  transition: all 0.2s;
}

.feedback-submit.active {
  background: #3b82f6;
  cursor: pointer;
}

.feedback-submit.active:hover {
  background: #2563eb;
}

.feedback-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.feedback-success p {
  font-size: 16px;
  color: #166534;
  font-weight: 500;
}

.qrcode-container {
  text-align: center;
  margin-bottom: 32px;
}

.qrcode-wrapper {
  display: inline-block;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.qrcode-image {
  width: 200px;
  height: 200px;
  display: block;
}

.qrcode-hint {
  font-size: 14px;
  color: #64748b;
  margin-top: 16px;
}

.feedback-alternative {
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
}

.feedback-alternative p {
  font-size: 14px;
  color: #64748b;
}

.feedback-alternative a {
  color: #3b82f6;
  text-decoration: none;
}

.feedback-alternative a:hover {
  text-decoration: underline;
}

.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.qr-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  max-width: 320px;
  width: 90%;
}

.qr-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.qr-close:hover {
  color: #64748b;
}

.qr-modal-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  display: block;
}

.qr-modal-text {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}
