/* Super's Blog — Shared Styles */
:root {
  --bg-primary: #FAFAF5;
  --bg-surface: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-tertiary: #999999;
  --accent: #E87451;
  --accent-light: #FDF0EB;
  --border-color: #E8E4DE;
  --tag-bg: #F5F2ED;
  --nav-bg: #F0EDE8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.05);
  --shadow-elevated: 0 4px 24px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --bg-primary: #141414;
  --bg-surface: #1E1E1E;
  --text-primary: #F5F5F5;
  --text-secondary: #B0B0B0;
  --text-tertiary: #777777;
  --accent: #E87451;
  --accent-light: #2A1A14;
  --border-color: #2E2E2E;
  --tag-bg: #262626;
  --nav-bg: #262626;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-elevated: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.page-container {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--bg-primary);
  overflow: hidden;
  min-height: 100vh;
}

/* ===== Navigation ===== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-item:hover { background: var(--nav-bg); color: var(--text-primary); }
.nav-item.active { background: var(--nav-bg); color: var(--text-primary); font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 40px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  background: var(--nav-bg);
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  transition: background-color 0.3s ease;
}
.search-bar::placeholder { color: var(--text-tertiary); }
.search-bar:focus { background: var(--bg-primary); box-shadow: 0 0 0 2px var(--accent); }
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-wrapper svg { position: absolute; left: 12px; pointer-events: none; z-index: 1; }

.dark-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--nav-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}
.dark-toggle:hover { background: var(--accent-light); color: var(--accent); }

.subscribe-btn {
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg-surface);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}
[data-theme="dark"] .subscribe-btn { background: var(--accent); color: #FFFFFF; }
.subscribe-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ===== Hero ===== */
.hero-section {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 56px 48px;
  background: var(--bg-surface);
}
.hero-left { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--accent-light);
  width: fit-content;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.badge-text { font-size: 13px; font-weight: 500; color: var(--accent); }
.hero-title { font-size: 46px; font-weight: 800; line-height: 1.22; color: var(--text-primary); }
.hero-description { font-size: 16px; font-weight: 400; line-height: 1.75; color: var(--text-secondary); }
.hero-cta { display: flex; gap: 12px; }

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.primary-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,116,81,0.35); }

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: var(--nav-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.secondary-cta:hover { border-color: var(--accent); color: var(--accent); }

.social-links { display: flex; gap: 10px; }
.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}
.social-link:hover { background: var(--accent); color: #FFFFFF; transform: translateY(-2px); }
.social-link svg { fill: currentColor; }

.hero-right { width: 480px; height: 480px; position: relative; flex-shrink: 0; }
.hero-deco {
  position: absolute;
  width: 352px;
  height: 352px;
  border-radius: 50%;
  background: var(--accent-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-avatar {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #E87451 0%, #F4A66B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Content Wrapper ===== */
.content-wrapper { padding: 56px 48px; display: flex; flex-direction: column; gap: 56px; }

/* ===== Page Header (sub pages) ===== */
.page-header {
  padding: 48px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.breadcrumb { font-size: 13px; color: var(--text-tertiary); display: flex; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--text-tertiary); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.page-header h1 { font-size: 36px; font-weight: 800; color: var(--text-primary); }
.page-header p { font-size: 15px; color: var(--text-secondary); }

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 120px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-elevated);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 13px; font-weight: 400; color: var(--text-secondary); }

/* ===== Section Header ===== */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.section-link { font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; transition: opacity 0.2s ease; }
.section-link:hover { opacity: 0.8; }

/* ===== Featured Article ===== */
.featured-card {
  display: flex;
  height: 320px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  transition: all 0.3s ease;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.featured-card-image {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.featured-card-image svg { width: 80px; height: 80px; fill: rgba(255,255,255,0.25); }
.featured-card-content { flex: 1; padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }

.tag-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}
.tag-tech { background: var(--accent-light); color: var(--accent); }
.tag-frontend { background: #EBF0FB; color: #2563EB; }
.tag-design { background: #E8F8F5; color: #0D9488; }
.tag-essay { background: #F3F0FB; color: #7C3AED; }
.tag-tool { background: var(--accent-light); color: var(--accent); }
.tag-backend { background: #F3F0FB; color: #7C3AED; }

[data-theme="dark"] .tag-tech { background: rgba(232,116,81,0.15); }
[data-theme="dark"] .tag-frontend { background: rgba(37,99,235,0.2); }
[data-theme="dark"] .tag-design { background: rgba(13,148,136,0.2); }
[data-theme="dark"] .tag-essay { background: rgba(124,58,237,0.2); }

.featured-card-title { font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.33; }
.featured-card-excerpt { font-size: 15px; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }
.featured-card-meta { display: flex; align-items: center; gap: 10px; }
.meta-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url('../avatar.jpg') center / cover no-repeat, linear-gradient(135deg, #E87451 0%, #F4A66B 100%);
  flex-shrink: 0;
}
.meta-author { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.meta-date, .meta-read { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }

/* ===== Filter Tabs ===== */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
}
.filter-tab.active { background: var(--text-primary); color: var(--bg-surface); border-color: var(--text-primary); font-weight: 600; }
[data-theme="dark"] .filter-tab.active { background: var(--accent); border-color: var(--accent); }
.filter-tab:not(.active):hover { border-color: var(--accent); color: var(--accent); }

/* ===== Article Grid ===== */
.article-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-grid.single-col { grid-template-columns: 1fr; }

.article-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.card-image { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-image svg { width: 64px; height: 64px; fill: rgba(255,255,255,0.2); }
.card-image-1 { background: linear-gradient(135deg, #2978CC 0%, #5CA0EA 100%); }
.card-image-2 { background: linear-gradient(135deg, #19BFA0 0%, #17A085 100%); }
.card-image-3 { background: linear-gradient(135deg, #E87451 0%, #ED4999 100%); }
.card-image-4 { background: linear-gradient(135deg, #7C3AED 0%, #4F44E6 100%); }
.card-image-5 { background: linear-gradient(135deg, #F59E0B 0%, #E87451 100%); }
.card-image-6 { background: linear-gradient(135deg, #2980B9 0%, #4AB892 100%); }
.card-image-7 { background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%); }
.card-image-8 { background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%); }

.card-content { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--text-primary); line-height: 1.44; }
.card-meta { display: flex; gap: 12px; align-items: center; }
.card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== Load More ===== */
.load-more-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.load-more-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Categories ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 72px;
  padding: 0 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.category-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.category-card.active { border-color: var(--accent); background: var(--accent-light); }
.category-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon-1 { background: #EBF0FB; }
.cat-icon-2 { background: #E8F8F5; }
.cat-icon-3 { background: #F3F0FB; }
.cat-icon-4 { background: var(--accent-light); }
[data-theme="dark"] .cat-icon-1 { background: rgba(37,99,235,0.15); }
[data-theme="dark"] .cat-icon-2 { background: rgba(13,148,136,0.15); }
[data-theme="dark"] .cat-icon-3 { background: rgba(124,58,237,0.15); }
[data-theme="dark"] .cat-icon-4 { background: rgba(232,116,81,0.15); }
.category-name { font-size: 15px; font-weight: 600; color: var(--text-primary); flex: 1; }
.category-count { font-size: 13px; font-weight: 400; color: var(--text-tertiary); }

/* Category detail rows (categories page) */
.category-row {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.category-row-head { display: flex; align-items: center; gap: 14px; }
.category-row-title { font-size: 18px; font-weight: 700; color: var(--text-primary); flex: 1; }
.category-row-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-article-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--tag-bg);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1 1 260px;
}
.category-article-item:hover { background: var(--accent-light); }
.category-article-item .item-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.category-article-item .item-meta { font-size: 12px; color: var(--text-tertiary); }

/* ===== Tags Cloud ===== */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--tag-bg);
  color: var(--text-secondary);
}
.tag-item.hot { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.tag-item:not(.hot):hover { background: var(--accent); color: #FFFFFF; }
.tag-item.hot:hover { background: var(--accent); color: #FFFFFF; }

/* ===== About Section (home) ===== */
.about-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}
.about-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: url('../avatar.jpg') center / cover no-repeat, linear-gradient(135deg, #E87451 0%, #F4A66B 100%);
  flex-shrink: 0;
}
.about-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.about-name { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.about-bio { font-size: 15px; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }

/* ===== About Page ===== */
.about-page { padding: 56px 48px; display: flex; flex-direction: column; gap: 32px; max-width: 860px; margin: 0 auto; }
.about-hero { display: flex; gap: 32px; align-items: center; }
.about-hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #E87451 0%, #F4A66B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.about-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-info { display: flex; flex-direction: column; gap: 10px; }
.about-hero-name { font-size: 34px; font-weight: 800; color: var(--text-primary); }
.about-hero-role { font-size: 16px; font-weight: 500; color: var(--accent); }
.about-hero-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.about-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card h2 { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.about-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.contact-link svg { fill: currentColor; }
.skill-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Article Detail Page ===== */
.article-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 48px;
  max-width: 1440px;
  margin: 0 auto;
}
.article-page { flex: 1; min-width: 0; max-width: 860px; }
.article-detail { background: var(--bg-surface); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; gap: 20px; }
.article-detail .tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.article-detail-title { font-size: 34px; font-weight: 800; line-height: 1.3; color: var(--text-primary); }
.article-detail-meta { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.article-body { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-top: 12px; scroll-margin-top: 96px; }
.article-body h3 { font-size: 18px; font-weight: 600; color: var(--text-primary); }
.article-body p { font-size: 16px; line-height: 1.85; color: var(--text-secondary); }
.article-body pre {
  background: var(--tag-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  overflow-x: auto;
}
.article-body code { font-family: 'Consolas', 'Monaco', monospace; font-size: 0.9em; }
.article-body pre code.hljs { background: transparent; padding: 0; display: block; overflow-x: visible; }

.code-block { position: relative; }
.code-block pre { margin: 0; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}
.code-block:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
@media (hover: none) { .copy-btn { opacity: 1; } }
.article-body ul { list-style: disc; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.article-nav a {
  flex: 1;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}
.article-nav a:hover { border-color: var(--accent); }
.article-nav .nav-label { font-size: 12px; color: var(--text-tertiary); }
.article-nav .nav-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* ===== TOC Sidebar ===== */
.toc-sidebar { position: sticky; top: 96px; width: 240px; flex-shrink: 0; display: none; }
@media (min-width: 1280px) { .toc-sidebar { display: block; } }
.toc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.toc-list { display: flex; flex-direction: column; border-left: 2px solid var(--border-color); }
.toc-link {
  padding: 6px 0 6px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc-link:hover { color: var(--accent); }
.toc-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* ===== Reading Progress ===== */
.reading-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99;
  pointer-events: none;
}
.reading-progress div { height: 100%; width: 0; background: var(--accent); transition: width 0.1s linear; }

/* ===== Comments ===== */
.comments-section {
  margin-top: 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  box-shadow: var(--shadow-card);
}
.comments-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.comments-placeholder { font-size: 14px; color: var(--text-tertiary); line-height: 1.7; }
.comments-placeholder code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  background: var(--tag-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ===== Search Result ===== */
.search-result-info { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.search-result-info strong { color: var(--accent); }
.no-result {
  padding: 64px 24px;
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  color: var(--text-tertiary);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ===== Newsletter ===== */
.newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px;
  background: var(--text-primary);
  border-radius: 24px;
  text-align: center;
}
[data-theme="dark"] .newsletter-section { background: #2A2A2A; border: 1px solid #333333; }
.newsletter-title { font-size: 28px; font-weight: 700; color: #FFFFFF; }
.newsletter-desc { font-size: 15px; font-weight: 400; color: #999999; line-height: 1.5; max-width: 480px; }
.newsletter-form { display: flex; gap: 12px; width: 520px; height: 52px; }
.newsletter-input {
  flex: 1;
  height: 100%;
  border-radius: var(--radius-md);
  background: #2A2A2A;
  border: 1px solid #333333;
  color: #FFFFFF;
  padding: 0 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}
[data-theme="dark"] .newsletter-input { background: #1A1A1A; border-color: #444444; }
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: #666666; }
.newsletter-btn {
  height: 100%;
  padding: 0 24px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.newsletter-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,116,81,0.4); }

/* ===== Footer ===== */
.footer {
  padding: 48px 48px 32px;
  background: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
[data-theme="dark"] .footer { background: #0A0A0A; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left { width: 340px; display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-size: 20px; font-weight: 700; color: #FFFFFF; }
.footer-desc { font-size: 14px; font-weight: 400; color: #999999; line-height: 1.57; }
.footer-nav { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 14px; font-weight: 600; color: #FFFFFF; }
.footer-col a { font-size: 13px; font-weight: 400; color: #999999; cursor: pointer; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-separator { width: 100%; height: 1px; background: #333333; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; }
.footer-copyright { font-size: 13px; font-weight: 400; color: #666666; }
.footer-back-top { font-size: 13px; font-weight: 500; color: #999999; cursor: pointer; transition: color 0.2s ease; }
.footer-back-top:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .hero-title { font-size: 36px; }
  .hero-right { width: 380px; height: 380px; }
  .hero-deco { width: 308px; height: 308px; }
  .hero-avatar { width: 280px; height: 280px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .search-wrapper { display: none; }
  .hero-section { flex-direction: column; }
  .hero-right { width: 100%; max-width: 380px; height: 380px; }
  .featured-card { flex-direction: column; height: auto; }
  .featured-card-image { width: 100%; height: 200px; }
  .article-grid { grid-template-columns: 1fr; }
  .newsletter-form { width: 100%; flex-direction: column; height: auto; gap: 12px; }
  .newsletter-input { height: 52px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .content-wrapper { padding: 32px 24px; }
  .hero-section { padding: 32px 24px; }
  .nav-bar { padding: 0 24px; }
  .footer { padding: 32px 24px 24px; }
  .page-header { padding: 32px 24px; }
  .article-layout { padding: 24px; gap: 24px; }
  .article-detail { padding: 24px; }
  .comments-section { padding: 24px; }
  .about-page { padding: 24px; }
  .about-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 28px; }
  .stats-bar { flex-wrap: wrap; height: auto; gap: 16px; padding: 24px; }
  .stat-item { flex: 1 1 40%; }
  .category-grid { grid-template-columns: 1fr; }
  .about-section { flex-direction: column; text-align: center; }
  .article-detail-title { font-size: 26px; }
}

/* ===== Reveal & Toast ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-surface);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
