/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.7;
  color: #1a202c;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1.2rem 0;
  min-height: 80px;
  gap: 3rem;
}

.header-brand .brand-link {
  text-decoration: none;
  color: #1a202c;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-brand .brand-link:hover {
  color: #2563eb;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.header-brand .brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4a5568;
  padding: 0.5rem;
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  padding: 0.6rem 0.8rem;
  transition: all 0.3s ease;
  display: block;
  font-size: 0.9rem;
  border-radius: 6px;
  position: relative;
  background: transparent;
}

.nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  font-weight: 600;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 1rem 0;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.home-layout > * {
  min-width: 0;
}

/* 教程页面特殊布局 */
.tutorials-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  min-width: 0;
}

.tutorials-layout > * {
  min-width: 0;
}

/* 左侧导航课程列表样式 - 简洁无间距版本 */
.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.lesson-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

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

.lesson-link {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #4a5568;
  background: transparent;
  border: none;
  transition: background-color 0.2s ease;
  font-size: 0.8rem !important;
  font-weight: 400;
  line-height: 1.3;
}

.lesson-link:hover {
  color: #2563eb;
  background: #f8fafc;
}

.lesson-item.current .lesson-link {
  color: #2563eb;
  background: #f1f5f9;
  font-weight: 500;
}
.main-section {
  background: transparent;
  padding: 0;
  min-width: 0;
  overflow-x: hidden;
}

/* 个人介绍区域 */
.intro-section {
  margin-bottom: 2rem;
}

.intro-container {
  display: flex;
  align-items: flex-start;
  /* gap: 1.5rem; */
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 900px;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.06);
  transition: all 0.3s ease;
}

.intro-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.intro-avatar {
  flex-shrink: 0;
}

.avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

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

.intro-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.greeting-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
}

.greeting-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: .7rem;
  font-weight: 600;
}

.intro-description {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.intro-motto {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.motto-icon {
  font-size: 1rem;
}

.motto-text {
  color: #2d3748;
  font-size: 0.9rem;
  font-weight: 600;
}

.intro-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
  background: white;
  color: #3b82f6;
  border-color: #3b82f6;
}

.action-btn.secondary:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 0.9rem;
}

/* 公众号二维码弹窗 */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qr-modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
}

.qr-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.qr-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.qr-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.qr-body {
  padding: 2rem;
  text-align: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.qr-tip {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* 覆盖老旧的课程列表样式 */
.lessons-section {
  margin-bottom: 2rem !important;
}

.lessons-section h2 {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin-bottom: 1.2rem !important;
  color: #2d3748 !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.lessons-section h2::before {
  content: "📋" !important;
  font-size: 1.2rem !important;
}

.lessons-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
}

.lessons-list .lesson-item {
  display: flex !important;
  align-items: center !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 1rem 1.5rem !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  gap: 1rem !important;
}

.lessons-list .lesson-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.2) !important;
  background: rgba(59, 130, 246, 0.02) !important;
}

.lessons-list .lesson-number {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%) !important;
  color: white !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

.lessons-list .lesson-link {
  color: #2d3748 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-right: 0 !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  position: relative !important;
}

.lessons-list .lesson-link::after {
  content: '' !important;
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%) !important;
  transition: width 0.3s ease !important;
}

.lessons-list .lesson-item:hover .lesson-link {
  color: #3b82f6 !important;
}

.lessons-list .lesson-item:hover .lesson-link::after {
  width: 100% !important;
}

.lessons-list .lesson-description {
  color: #64748b !important;
  font-size: 0.9rem !important;
  flex: 2 !important;
  line-height: 1.5 !important;
}





.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
}



.lesson-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.card-content {
  padding: 1rem 1.5rem;
}

.lesson-title {
  margin: 0 0 .9rem 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

/* 删除重复的lesson-link样式，使用上面的统一样式 */

.lesson-link.locked {
  color: #9ca3af;
  cursor: not-allowed;
}

.lesson-description {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.lesson-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
}







/* Tutorial Cards Grid */
.tutorials-section {
  margin-bottom: 1rem;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tutorial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(226, 232, 240, 0.8);
  cursor: pointer;
  overflow: hidden;
  height: 240px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.tutorial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.tutorial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.tutorial-card:hover::before {
  opacity: 1;
}

.card-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  z-index: 9999;
}

.card-status.completed {
  background: #10b981;
}

.card-status.updating {
  background: #f59e0b;
}

.card-image {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.card-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.card-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.card-gradient.docker {
  background: linear-gradient(135deg, #2496ed 0%, #0db7ed 100%);
}

.card-gradient.linux {
  background: linear-gradient(135deg, #fcc624 0%, #f57c00 100%);
}

.card-gradient.nginx {
  background: linear-gradient(135deg, #009639 0%, #00a651 100%);
}

.card-gradient.go {
  background: linear-gradient(135deg, #00add8 0%, #007d9c 100%);
}

.card-gradient.vue {
  background: linear-gradient(135deg, #4fc08d 0%, #42b883 100%);
}

.card-gradient.python {
  background: linear-gradient(135deg, #3776ab 0%, #ffd43b 100%);
}

.card-gradient.default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon {
  position: relative;
  z-index: 3;
}

.card-content {
  padding: 1rem;
  text-align: left;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 0.3rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tutorial-card:hover .card-title {
  color: #2563eb;
}

.card-description {
  color: #64748b;
  line-height: 1.4;
  font-size: 0.85rem;
  flex-grow: 1;
  font-weight: 400;
}

/* Sidebar - 简洁版本 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.widget-title {
  font-size: 0.8rem !important;
  color: #1a202c;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.widget-title::after {
  display: none;
}

.recent-posts, .related-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.recent-posts li, .related-posts li {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.recent-posts li:hover, .related-posts li:hover {
  transform: translateX(2px);
}

.recent-posts a, .related-posts a {
  text-decoration: none;
  color: #4a5568;
  font-size: 0.8rem;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  padding: 0.35rem 0.5rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 4px;
  font-weight: 500;
  position: relative;
}

.recent-posts a::before, .related-posts a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  transition: all 0.3s ease;
}

.recent-posts a:hover, .related-posts a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.recent-posts a:hover::before, .related-posts a:hover::before {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  width: 3px;
}

/* 广告组件样式 */
.ad-widget .ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.ad-widget .ad-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.ad-widget .ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ad-widget .ad-link:hover .ad-image img {
  transform: scale(1.05);
}

.ad-widget .ad-content {
  padding: 0;
  margin-top: 0.25rem;
}

.ad-widget .ad-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #2d3748;
  font-weight: 600;
  transition: color 0.3s ease;
}

.ad-widget .ad-link:hover .ad-title {
  color: #667eea;
}

.ad-widget .ad-description {
  color: #718096;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
}

/* 合作伙伴组件样式 */
.partners-widget .partners-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.partners-widget .partner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.partners-widget .partner-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.partners-widget .partner-item:hover {
  border-color: #667eea;
  background: #f7fafc;
  transform: translateY(-2px);
}

.partners-widget .partner-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 1rem;
  flex-shrink: 0;
}

.partners-widget .partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partners-widget .partner-info {
  flex: 1;
}

.partners-widget .partner-title {
  margin: 0 0 0.3rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
}

.partners-widget .partner-description {
  margin: 0;
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.3;
}

/* 技术学习推荐组件样式 */
.learning-widget .learning-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learning-widget .learning-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.learning-widget .learning-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.learning-widget .learning-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.learning-widget .learning-image {
  width: 100%;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
}

.learning-widget .learning-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.learning-widget .learning-link:hover .learning-image img {
  transform: scale(1.05);
}

.learning-widget .learning-info {
  padding: 1rem;
}

.learning-widget .learning-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
}

.learning-widget .learning-description {
  margin: 0;
  font-size: 0.8rem;
  color: #718096;
  line-height: 1.3;
}

/* 首页标签云样式 - 精致简约版 */
.tags-section {
  margin: 2.5rem 0;
}

.tags-cloud-home {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.8rem 0;
  padding: 0.6rem;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  color: #495057;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  border: 1px solid #e9ecef;
}

.tag-cloud-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-name {
  font-weight: 500;
}

.tag-count {
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tag-cloud-item:hover .tag-count {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.tag-cloud-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  border: 1px solid #667eea;
}

.tag-cloud-more:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  border-color: #764ba2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.tag-cloud-more i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.tag-cloud-more:hover i {
  transform: translateX(2px);
}

/* 文章标签样式 */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.post-tags i {
  color: #718096;
  font-size: 0.9rem;
}

.tag-link {
  background: #f7fafc;
  color: #4a5568;
  padding: 0.3rem 0.8rem;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tag-link:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
}

.social-links {
  text-align: center;
  color: #718096;
  font-size: 0.9rem;
}

/* Categories List */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories-list li {
  margin-bottom: 0.8rem;
}

.categories-list a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.categories-list a:hover {
  color: #4299e1;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: #f7fafc;
  color: #4a5568;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tag-link:hover {
  background: #4299e1;
  color: white;
  border-color: #4299e1;
}

/* Footer */
.footer {
  background: #1a202c;
  color: #e2e8f0;
  padding: 2.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid #2d3748;
}

.footer-content {
  text-align: center;
}

.footer-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* 标签页面头部样式 - 蓝紫渐变版 */
.tag-page-header, .tags-overview-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  border-radius: 0 0 12px 12px;
}

.tag-header-content, .tags-overview-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.tag-icon, .tags-overview-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  backdrop-filter: blur(10px);
}

.tag-title, .tags-overview-title {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  color: white;
}

.tag-description, .tags-overview-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.tag-breadcrumb, .tags-overview-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumb-link:hover {
  color: white;
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  font-weight: 600;
  color: white;
}

/* 标签文章网格 - 简约版 */
.tag-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.tag-post-card {
  background: white;
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.tag-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  border-color: #3498db;
}

.tag-post-title a {
  color: #2d3748;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.tag-post-title a:hover {
  color: #667eea;
}

.tag-post-meta {
  display: flex;
  gap: 1rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: #718096;
}

.tag-post-meta i {
  margin-right: 0.3rem;
}

.tag-post-summary {
  color: #4a5568;
  line-height: 1.6;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.tag-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0;
}

.tag-post-tag {
  background: #f8f9fa;
  color: #495057;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.tag-post-tag:hover {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.tag-post-tag.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.tag-post-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.tag-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tag-post-read-more:hover {
  color: #5a67d8;
}

.tag-post-read-more i {
  transition: transform 0.3s ease;
}

.tag-post-read-more:hover i {
  transform: translateX(3px);
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ecf0f1;
}

.page-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.page-description {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* 标签总览页面样式 - 简约版 */
.section-subtitle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  color: #2c3e50;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.section-subtitle i {
  color: #3498db;
  font-size: 1rem;
}

/* 热门标签网格 - 简约版 */
.popular-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.popular-tag-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.popular-tag-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
  border-color: #667eea;
}

.popular-tag-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.popular-tag-content {
  flex: 1;
}

.popular-tag-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.2rem 0;
}

.popular-tag-count {
  font-size: 0.8rem;
  color: #6c757d;
  margin: 0;
}

.popular-tag-arrow {
  color: #ced4da;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.popular-tag-card:hover .popular-tag-arrow {
  color: #667eea;
  transform: translateX(2px);
}

/* 现代标签云 - 蓝紫渐变版 */
.tags-cloud-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-start;
  margin: 1rem 0 2rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.modern-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  color: #495057;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  font-size: 0.8rem;
}

.modern-tag-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tag-text {
  font-weight: 500;
}

.tag-badge {
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.modern-tag-link:hover .tag-badge {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

/* 字母排序标签 - 简约版 */
.alphabetical-tags-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.alphabetical-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  color: #495057;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
  font-size: 0.85rem;
}

.alphabetical-tag-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: #667eea;
  transform: translateX(2px);
}

.alphabetical-tag-name {
  font-weight: 500;
}

.alphabetical-tag-count {
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 相关标签推荐 - 蓝紫渐变版 */
.related-tags-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.related-tags-title {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.related-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.related-tag-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, #e6f0ff 0%, #c9e1ff 100%);
  color: #2c6aa9;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  border: 1px solid #b8d4f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.related-tag-item:hover {
  background: linear-gradient(135deg, #d4e6ff 0%, #b5d4ff 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.related-tag-item:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.related-tag-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Posts List */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.post-date {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
}

.tag, .tag-link {
  background: #ecf0f1;
  color: #34495e;
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tag-link:hover {
  background: #3498db;
  color: white;
}

.post-title {
  margin-bottom: 0.8rem;
}

.post-title a {
  text-decoration: none;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #3498db;
}

.post-excerpt {
  color: #7f8c8d;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.read-more {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #2980b9;
}

/* Single Post */
.post-single {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.post-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ecf0f1;
}

.post-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.post-header .post-title {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
  flex: 1;
  text-align: left;
}

.post-views {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  padding: 1rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.9rem;
  color: #3b82f6;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.post-views i {
  font-size: 1rem;
}

.views-count {
  font-weight: 700;
}

.post-header .post-meta {
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.category-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
}

.category-link:hover {
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.post-content {
  line-height: 1.6;
  color: #333;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 0.9rem;
}

/* 文章内容链接样式 */
.post-content a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.post-content a:hover {
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.post-content a:active {
  transform: translateY(0);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.post-content h2 {
  font-size: 1.3rem;
  border-bottom: 2px solid transparent;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.5rem;
  position: relative;
  margin-top: 1.75rem;
}

.post-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 1px;
}

.post-content h3 {
  font-size: 1.1rem;
  color: #2563eb;
  position: relative;
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.post-content h4 {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 600;
}

.post-content h5 {
  font-size: 0.95rem;
  color: #4a5568;
  font-weight: 600;
}

.post-content h6 {
  font-size: 0.9rem;
  color: #4a5568;
  font-weight: 600;
}

.post-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 3px;
  height: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 1px;
}

.post-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.post-content ul {
  list-style: none;
}

.post-content ul li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  line-height: 1.6;
}

.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 4px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 50%;
}

.post-content ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.3rem;
  line-height: 1.6;
}

.post-content ol {
  counter-reset: list-counter;
}

.post-content ol li {
  counter-increment: list-counter;
  position: relative;
}

.post-content ol li::marker {
  content: counter(list-counter) ". ";
  color: #2563eb;
  font-weight: 600;
  font-size: 0.85rem;
}

.post-content blockquote {
  border-left: 3px solid transparent;
  border-image: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) 1;
  padding: 1rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border-radius: 6px;
  position: relative;
  font-style: italic;
  color: #4a5568;
  font-size: 0.9rem;
}

.post-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0.3rem;
  left: 1rem;
  font-size: 1.5rem;
  color: #2563eb;
  font-family: serif;
  line-height: 1;
}

.post-content code {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  color: #2563eb;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.post-content pre {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.post-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 8px 8px 0 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  white-space: pre;
  word-wrap: normal;
  font-size: 0.8rem;
}

/* 表格样式 */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.post-content table th,
.post-content table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.post-content table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  color: #2d3748;
  font-size: 0.8rem;
}

.post-content table tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

/* Post Navigation */
.post-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ecf0f1;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-nav-item {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.post-nav-item:hover {
  background: #ecf0f1;
}

.post-nav-link {
  text-decoration: none;
  color: #333;
  display: block;
}

.post-nav-label {
  font-size: 0.9rem;
  color: #7f8c8d;
  display: block;
  margin-bottom: 0.3rem;
}

.post-nav-title {
  font-weight: 600;
  color: #2c3e50;
}

.post-nav-next {
  text-align: right;
}

/* 分页样式 - Google风格简洁版 */
.pagination-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  background: white;
  color: #1a73e8;
  text-decoration: none;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.1s ease;
}

.pagination-btn:hover {
  background: #f8f9fa;
  border-color: #dadce0;
}

.pagination-btn i {
  font-size: 0.75rem;
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  background: white;
  color: #1a73e8;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: all 0.1s ease;
}

.pagination-number:hover {
  background: #f8f9fa;
}

.pagination-number.current {
  background: #1a73e8;
  color: white;
  cursor: default;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: #5f6368;
  font-size: 0.875rem;
}

.pagination-info {
  color: #5f6368;
  font-size: 0.875rem;
  margin-left: 1rem;
}

/* 兼容旧版分页样式 */
.pagination-prev,
.pagination-next {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
  background: #3498db;
  color: white;
}

/* 公众号二维码样式 */
.footer-content {
  text-align: center;
}

.footer-qrcode {
  order: 1;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.qrcode-container {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  flex: 0 0 auto;
}

.qrcode-image {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.qrcode-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0.5rem 0 0.25rem 0;
}

.qrcode-subtitle {
  font-size: 0.7rem;
  color: #718096;
  margin: 0;
  line-height: 1.3;
}

/* 侧边栏二维码 */
.qrcode-widget {
  text-align: center;
}

.sidebar-qrcode {
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.sidebar-qrcode-image {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.sidebar-qrcode-text {
  font-size: 0.8rem;
  color: #4a5568;
  margin: 0;
  line-height: 1.4;
}

/* 文章内二维码样式 */
.article-end-qrcode {
  margin: 1.5rem 0 1rem 0;
  padding: 1.2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.qrcode-header {
  margin-bottom: 1.5rem;
}

.qrcode-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.qrcode-subtitle {
  font-size: 0.9rem;
  color: #718096;
  margin: 0;
  line-height: 1.4;
}

.article-qrcode-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.article-qrcode-item {
  text-align: center;
  background: white;
  padding: 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 0 0 auto;
}

.article-qrcode-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-qrcode-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid #f1f5f9;
}

.article-qrcode-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
}

.article-qrcode-desc {
  font-size: 1rem;
  color: #718096;
  margin: 0;
  line-height: 1.3;
}

.qrcode-footer {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
}

.qrcode-thanks {
  font-size: 0.8rem;
  color: #4a5568;
  margin: 0;
  font-style: italic;
}

/* 广告位样式 */
.ad-widget {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
}

.ad-container {
  text-align: center;
}

.ad-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ad-item {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ad-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ad-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(66, 153, 225, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ad-item:hover .ad-hover-overlay {
  opacity: 1;
}

.ad-cta {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.ad-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.ad-text {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0;
  font-weight: 500;
}

/* 文章内广告样式 */
.article-ad-section {
  margin: 2rem 0;
  text-align: center;
}

.article-ad-container {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 0.8rem;
  border: 2px dashed #cbd5e0;
  position: relative;
}

.article-ad-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-ad-item {
  position: relative;
}

.article-ad-banner {
  width: 100%;
  max-width: 600px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.article-ad-banner:hover {
  transform: scale(1.02);
}

.article-ad-title {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #4a5568;
  text-align: center;
  line-height: 1.4;
}

.article-ad-label {
  position: absolute;
  top: -8px;
  right: 10px;
  background: #f59e0b;
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* 面包屑导航 */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.breadcrumb a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.breadcrumb-separator {
  margin: 0;
  color: #cbd5e0;
  font-weight: 400;
}

.breadcrumb-current {
  color: #2d3748;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  background: rgba(37, 99, 235, 0.05);
  border-radius: 4px;
}

/* Sidebar Enhancements */
.categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.categories-list li {
  margin: 0;
}

.categories-list a {
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  padding: 0.5rem 1rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.4);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
}

.categories-list a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  transition: all 0.3s ease;
}

.categories-list a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateX(2px);
}

.categories-list a:hover::before {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  width: 3px;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toc {
  font-size: 0.8rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 6px;
  padding: 0.8rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toc ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.toc li {
  margin: 0.15rem 0;
}

.toc a {
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  position: relative;
  font-weight: 500;
  background: rgba(248, 250, 252, 0.4);
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  transition: all 0.3s ease;
}

.toc a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.15);
  transform: translateX(2px);
}

.toc a:hover::before {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  width: 3px;
}

/* 目录当前项高亮 */
.toc a.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 600;
  transform: translateX(2px);
}

.toc a.active::before {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  width: 3px;
}

.related-posts {
  list-style: none;
}

.related-posts li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #ecf0f1;
}

.related-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.related-posts a {
  text-decoration: none;
  color: #34495e;
  font-size: 0.8rem;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.related-posts a:hover {
  color: #3498db;
}

/* Responsive Design */
/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    width: 90%;
    padding: 0 1rem;
  }

  .tutorials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .home-layout {
    grid-template-columns: 1fr 240px;
    gap: 1.2rem;
  }
}

/* 移动端分页优化 */
@media (max-width: 768px) {
  .pagination-wrapper {
    margin-top: 1.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-numbers {
    gap: 0.2rem;
  }

  .pagination-number {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .pagination-ellipsis {
    min-width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .pagination-info {
    font-size: 0.8rem;
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 1rem;
  }

  /* 移动端专用导航栏 */
  .header {
    height: 60px;
  }

  .header-content {
    padding: 0.5rem 0;
    min-height: 50px;
    gap: 1rem;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-title {
    font-size: 0.9rem;
  }

  .mobile-menu-toggle {
    display: block;
    padding: 0.3rem;
    font-size: 1.1rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .home-layout,
  .tutorials-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tutorials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  /* 移动端隐藏侧边栏 */
  .tutorials-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar {
    display: none;
  }

  /* 移动端底部课程导航 */
  .mobile-course-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .mobile-course-nav.active {
    transform: translateY(0);
  }

  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }

  .mobile-nav-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
  }

  .mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.2rem;
  }

  .mobile-course-list {
    max-height: 40vh;
    overflow-y: auto;
    padding: 0.5rem;
  }

  .mobile-course-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .mobile-course-item:active {
    transform: scale(0.98);
  }

  .mobile-course-item.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
  }

  .mobile-course-item:not(.current):hover {
    background: #f8fafc;
    border-color: #cbd5e1;
  }

  .mobile-course-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e2e8f0;
    color: #64748b;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.8rem;
    flex-shrink: 0;
  }

  .mobile-course-item.current .mobile-course-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
  }

  .mobile-course-title {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
  }

  /* 移动端课程切换按钮 */
  .mobile-course-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
  }

  .mobile-course-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
  }

  .mobile-course-toggle:active {
    transform: scale(0.95);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .tutorial-card {
    height: 240px;
  }

  .post-single {
    padding: 1.5rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }

  .tutorial-card {
    height: 200px;
  }

  .card-image {
    height: 100px;
  }

  .card-content {
    height: 100px;
    padding: 0.8rem;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .card-description {
    font-size: 0.8rem;
  }

  /* 移动端二维码样式 */
  .footer-content {
    gap: 1rem;
  }

  .footer-qrcode {
    flex-direction: column;
    gap: 1rem;
  }

  .qrcode-container {
    padding: 0.8rem;
  }

  .qrcode-image {
    width: 70px;
    height: 70px;
  }

  .sidebar-qrcode-image {
    width: 80px;
    height: 80px;
  }

  /* 移动端文章内二维码 */
  .article-end-qrcode {
    margin: 1.5rem 0 1rem 0;
    padding: 1rem;
  }

  .qrcode-title {
    font-size: 1rem;
  }

  .qrcode-subtitle {
    font-size: 0.85rem;
  }

  .article-qrcode-container {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .article-qrcode-item {
    padding: 1rem;
  }

  .article-qrcode-image {
    width: 90px;
    height: 90px;
  }

  .qrcode-thanks {
    font-size: 0.8rem;
  }

  /* 移动端标签样式 - 优化版 */
  .tags-cloud-home {
    gap: 0.3rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
  }

  .tag-cloud-item, .tag-cloud-more {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }

  .tag-page-header, .tags-overview-header {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }

  .tag-header-content, .tags-overview-content {
    flex-direction: row;
    gap: 0.8rem;
  }

  .tag-icon, .tags-overview-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .tag-title, .tags-overview-title {
    font-size: 1.3rem;
  }

  .tag-posts-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .tag-post-card {
    padding: 1rem;
  }

  .popular-tags-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .popular-tag-card {
    padding: 0.8rem;
  }

  .popular-tag-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .tags-cloud-modern {
    padding: 0.8rem;
    gap: 0.3rem;
  }

  .modern-tag-link {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .alphabetical-tags-list {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .alphabetical-tag-item {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  /* 移动端广告样式 */
  .article-ad-container {
    padding: 1rem;
  }

  .article-ad-banner {
    max-width: 100%;
  }

  .ad-item {
    padding: 0.8rem;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .tutorials-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .container {
    width: 98%;
    padding: 0 0.5rem;
  }

  .main-content {
    padding: 0.8rem 0;
  }

  .hero-section {
    margin-bottom: 1rem;
    padding: 1rem 0 0.8rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .tutorial-card {
    height: 220px;
  }

  .card-image {
    height: 120px;
  }

  .card-content {
    height: 100px;
    padding: 0.8rem;
  }
}

/* 用户体验增强 */
/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* 阅读进度条 */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(226, 232, 240, 0.3);
  z-index: 1001;
}

.reading-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  width: 0%;
  transition: width 0.1s ease;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 选择文本样式 */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

::-moz-selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

/* 代码复制按钮 */
.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(37, 99, 235, 0.8);
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.code-copy-btn:hover {
  background: rgba(37, 99, 235, 1);
  transform: translateY(-1px);
}

/* 现代化教程页面样式 */
.tutorial-series-modern {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.modern-series-header {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  color: white;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.header-pattern {
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 2rem;
}

.series-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.modern-series-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.modern-series-description {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.series-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modern-series-content {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  line-height: 1.6;
  color: #4a5568;
}

/* 教程内容区域样式重设计 - 更加美观大气 */
.modern-series-content h1 {
  color: #1a202c;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 3px solid transparent;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.modern-series-content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  border-radius: 2px;
}

.modern-series-content h2 {
  color: #1a202c;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 51, 234, 0.08) 100%);
  border-radius: 12px;
  border-left: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.modern-series-content h2::before {
  content: "🎯";
  font-size: 1.4rem;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  padding: 0.5rem;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.modern-series-content h3 {
  color: #2d3748;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.8rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.modern-series-content h3::before {
  content: "📚";
  font-size: 1.1rem;
  color: #3b82f6;
}

.modern-series-content p {
  margin: 0 0 1.2rem 0;
  line-height: 1.8;
  font-size: 1rem;
  color: #4a5568;
}

/* 重新设计ul列表样式 - 更加美观大气 */
.modern-series-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  gap: 1rem;
}

.modern-series-content ul li {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.modern-series-content ul li::before {
  content: "✨";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
}

.modern-series-content ul li {
  padding-left: 3rem;
}

.modern-series-content ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(147, 51, 234, 0.02) 100%);
}

.modern-series-content ul li:hover::before {
  transform: translateY(-50%) scale(1.2);
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.modern-series-content ul li a {
  color: #1a202c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.modern-series-content ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  transition: width 0.3s ease;
}

.modern-series-content ul li:hover a {
  color: #3b82f6;
}

.modern-series-content ul li:hover a::after {
  width: 100%;
}

/* 特殊样式：没有链接的列表项 */
.modern-series-content ul li:not(:has(a)) {
  color: #2d3748;
  font-weight: 500;
  line-height: 1.6;
}

/* 重新设计ol列表样式 - 更加美观大气 */
.modern-series-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  counter-reset: step-counter;
  display: grid;
  gap: 1rem;
}

.modern-series-content ol li {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  counter-increment: step-counter;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  font-weight: 500;
  line-height: 1.6;
  color: #2d3748;
}

.modern-series-content ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.modern-series-content ol li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
}

.modern-series-content ol li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* 引用块样式 */
.modern-series-content blockquote {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-left: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  position: relative;
  font-style: italic;
  color: #4c1d95;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.modern-series-content blockquote::before {
  content: "💡";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modern-series-content blockquote p {
  margin: 0;
  padding-left: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}

/* 强调文本样式 */
.modern-series-content strong {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* 代码样式 */
.modern-series-content code {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  color: #6366f1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* 链接样式增强 */
.modern-series-content a:not(.lesson-link) {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.modern-series-content a:not(.lesson-link)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  transition: width 0.3s ease;
}

.modern-series-content a:not(.lesson-link):hover {
  color: #9333ea;
}

.modern-series-content a:not(.lesson-link):hover::after {
  width: 100%;
}

/* 新的专题页面课程大纲样式 */
.premium-course-section {
  margin-bottom: 2rem;
}

.course-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 2rem;
  color: white;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.header-icon {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-text h2 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 800;
}

.header-text p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.course-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1;
}

/* 课程卡片网格 */
.premium-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.premium-lesson-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.premium-lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.lesson-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lesson-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lesson-badge.free {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.lesson-content {
  padding: 1rem 1.5rem;
}

/* 删除重复的lesson-link样式 */

.lesson-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.lesson-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
  background: rgba(248, 250, 252, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.feature-icon {
  font-size: 0.9rem;
}

.lesson-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.lesson-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.lesson-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 学习提示区域 */
.learning-tips {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 20px;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.learning-tips::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="25" r="0.8" fill="rgba(255,255,255,0.08)"/><circle cx="25" cy="40" r="0.3" fill="rgba(255,255,255,0.12)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  opacity: 0.4;
}

.tips-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.tips-icon {
  font-size: 4rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.tips-text {
  flex: 1;
}

.tips-text h3 {
  margin: 0 0 1rem 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.tips-text p {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.6;
}

.tips-action {
  flex-shrink: 0;
}

.tips-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a202c;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
}

.tips-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
  color: #1a202c;
}

.modern-lessons-section {
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #2d3748;
}

.title-icon {
  font-size: 1.2rem;
}

/* 教程系列网格布局 */
.modern-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.modern-lesson-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modern-lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.lesson-icon {
  font-size: 2.5rem;
}

.lesson-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-content {
  padding: 1rem 1.5rem;
}

.modern-lesson-card .lesson-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.modern-lesson-card .lesson-link {
  color: #2d3748;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.modern-lesson-card .lesson-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  transition: width 0.3s ease;
}

.modern-lesson-card .lesson-link:hover {
  color: #3b82f6;
}

.modern-lesson-card .lesson-link:hover::after {
  width: 100%;
}

.modern-lesson-card .lesson-description {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.start-learning-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.start-learning-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 课程列表样式 */
.modern-lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modern-lesson-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.modern-lesson-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modern-lesson-item .lesson-number {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modern-lesson-item .lesson-content {
  flex: 1;
}

.modern-lesson-item .lesson-title {
  margin: 0 0 0.5rem 0;
  font-size: .9rem;
  font-weight: 600;
}

.modern-lesson-item .lesson-link {
  color: #2d3748;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.modern-lesson-item .lesson-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  transition: width 0.3s ease;
}

.modern-lesson-item .lesson-link:hover {
  color: #3b82f6;
  transform: translateX(2px);
}

.modern-lesson-item .lesson-link:hover::after {
  width: 100%;
}

.modern-lesson-item .lesson-description {
  color: #64748b;
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

.lesson-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.reading-time {
  color: #9ca3af;
}

.lesson-status {
  background: #10b981;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.lesson-action {
  margin-left: 1rem;
}

.lesson-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #9333ea 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.lesson-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* 移动端回到顶部按钮 */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .code-copy-btn {
    top: 0.3rem;
    right: 0.3rem;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }

  /* 移动端首页介绍区域适配 */
  .intro-container {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .avatar-img {
    width: 60px;
    height: 60px;
  }

  .intro-actions {
    justify-content: center;
  }

  .action-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  /* 移动端教程页面适配 */
  .tutorial-series-modern {
    padding: 0 1rem;
  }

  .header-content {
    padding: 1rem;
  }

  .modern-series-title {
    font-size: 1.5rem;
  }

  .modern-series-description {
    font-size: 0.9rem;
  }

  .series-stats {
    gap: 1rem;
  }

  /* 移动端二维码弹窗适配 */
  .qr-modal-content {
    width: 95%;
    max-width: 350px;
  }

  .qr-header {
    padding: 1rem;
  }

  .qr-header h3 {
    font-size: 1rem;
  }

  .qr-body {
    padding: 1.5rem;
  }

  .qr-code {
    width: 160px;
    height: 160px;
  }

  /* 移动端教程专题页面适配 */
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  /* .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  } */

  .header-icon {
    font-size: 2rem;
  }

  .header-text h2 {
    font-size: 1.4rem;
  }

  .progress-circle {
    width: 60px;
    height: 60px;
  }

  .progress-text {
    font-size: 1.2rem;
  }



  /* 移动端教程内容区域适配 */
  .modern-series-content h1 {
    font-size: 1.8rem;
  }

  .modern-series-content h2 {
    font-size: 1.3rem;
    padding: 1rem 1rem;
    margin: 2rem 0 1rem 0;
  }

  .modern-series-content h2::before {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .modern-series-content h3 {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }

  .modern-series-content ul li {
    padding: 1rem 1rem 1rem 2.5rem;
  }

  .modern-series-content ul li::before {
    left: 1rem;
    font-size: 0.9rem;
  }

  .modern-series-content ol li {
    padding: 1rem 1rem 1rem 3.5rem;
  }

  .modern-series-content ol li::before {
    left: 1rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .modern-series-content blockquote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
  }

  .modern-series-content blockquote::before {
    top: 1rem;
    left: 1rem;
    font-size: 1.2rem;
  }

  .modern-series-content blockquote p {
    padding-left: 2rem;
    font-size: 1rem;
  }

  /* 移动端专题页面适配 */
  .course-header {
    padding: 1.5rem;
    border-radius: 16px;
  }

  /* .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  } */

  .header-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .header-text h2 {
    font-size: 1.5rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  .course-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .premium-lessons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lesson-header {
    padding: 1rem 1rem 0 1rem;
  }

  .lesson-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lesson-content {
    padding: 1rem 1rem;
  }

  .lesson-footer {
    padding: 0 1rem 1rem 1rem;
  }

  .learning-tips {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .tips-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .tips-icon {
    font-size: 3rem;
  }

  .tips-text h3 {
    font-size: 1.3rem;
  }

  .tips-text p {
    font-size: 1rem;
  }

  .tips-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* 移动端文章标题和浏览量适配 */
  .post-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .post-header .post-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .post-views {
    align-self: flex-end;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .modern-lessons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modern-lesson-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .modern-lesson-item .lesson-number {
    margin-right: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lesson-action {
    margin-left: 0;
    align-self: stretch;
  }

  .lesson-btn {
    width: 100%;
    text-align: center;
  }
}

/* 极致压缩教程页面样式 */
.compact-tutorial {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.compact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.compact-header h1 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.compact-header p {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
}

/* 左右布局 */
.tutorial-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.tutorial-intro {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.tutorial-outline {
  padding-top: 1.5rem;
}

.intro-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.tutorial-icon {
  font-size: 1.5rem;
}

.intro-header h1 {
  font-size: 1.2rem;
  margin: 0;
  color: #2c3e50;
  line-height: 1.4;
}

.intro-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #666;
}

.intro-content {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
}

.intro-content h2 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  color: #2c3e50;
}

.intro-content h3 {
  font-size: 0.9rem;
  margin: 1rem 0 0.25rem 0;
  color: #34495e;
}

.intro-content p {
  margin: 0.5rem 0;
}

.intro-content ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.intro-content li {
  margin: 0.25rem 0;
}

/* 课程大纲 */
.tutorial-outline h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
  padding-top: 0;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lesson-item {
  display: flex;
  gap: 1rem;
  padding: .2rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lesson-item:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.lesson-num {
  background: #3498db;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

.lesson-info h3 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem 0;
}

.lesson-info h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.lesson-info h3 a:hover {
  color: #3498db;
}

.lesson-info p {
  font-size: 1rem;
  color: #666;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.lesson-time {
  font-size: 0.7rem;
  color: #999;
}

/* 教程主页网格 */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.tutorial-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.tutorial-card:hover {
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tutorial-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
}

.tutorial-card h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.tutorial-card h3 a:hover {
  color: #3498db;
}

.tutorial-card p {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.card-meta span {
  color: #999;
}

.card-meta a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.card-meta a:hover {
  color: #2980b9;
}

/* 首页section标题 */
.section-title {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  text-align: left;
  font-weight: 600;
}

/* 压缩版移动端适配 */
@media (max-width: 768px) {
  .tutorial-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tutorial-intro {
    position: static;
  }

  .tutorials-grid {
    grid-template-columns: 1fr;
  }
}

/* 搜索页面样式 - 简洁Google风格 */
.search-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.search-header-simple {
  text-align: center;
  padding: 2rem 0 1rem;
}

.search-logo {
  margin-bottom: 2rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #2d3748;
}

.logo-emoji {
  font-size: 2rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-form-container {
  margin-bottom: 2rem;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px 1px rgba(64,60,67,.16);
}

.search-input-wrapper:hover {
  box-shadow: 0 2px 8px 1px rgba(64,60,67,.24);
}

.search-input-wrapper:focus-within {
  box-shadow: 0 2px 8px 1px rgba(64,60,67,.24);
  border-color: transparent;
}

.search-icon {
  color: #9aa0a6;
  margin-right: 0.75rem;
  font-size: 1rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 0;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: #202124;
}

.search-input::placeholder {
  color: #9aa0a6;
}

.search-button {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  color: #3c4043;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.search-button:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  background: #f1f3f4;
  border-color: #dadce0;
}

.search-stats {
  color: #70757a;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.search-results {
  margin-bottom: 2rem;
}

.search-loading {
  color: #70757a;
  font-size: 0.875rem;
  padding: 1rem 0.5rem;
}

.search-loading i {
  margin-right: 0.5rem;
}

.search-no-results {
  color: #70757a;
  font-size: 0.875rem;
  padding: 1rem 0.5rem;
}

.search-no-results p {
  margin: 0;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-result-item {
  padding: 0;
  margin-bottom: 1.5rem;
}

.search-result-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.search-result-title a {
  color: #1a0dab;
  text-decoration: none;
  font-weight: 400;
}

.search-result-title a:hover {
  text-decoration: underline;
}

.search-result-title a:visited {
  color: #681da8;
}

.search-result-url {
  color: #006621;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.search-result-description {
  color: #4d5156;
  line-height: 1.4;
  margin: 0;
  font-size: 0.875rem;
}

.search-result-description mark {
  background: none;
  color: inherit;
  font-weight: 700;
  padding: 0;
}

.hot-searches {
  margin-top: 2rem;
}

.hot-searches-title {
  color: #70757a;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hot-searches-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hot-tag {
  background: #f8f9fa;
  color: #3c4043;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid #dadce0;
  transition: all 0.1s ease;
}

.hot-tag:hover {
  background: #f1f3f4;
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
}



/* 搜索页面移动端适配 */
@media (max-width: 768px) {
  .search-page {
    padding: 1rem 0.5rem;
  }

  .search-header-simple {
    padding: 1rem 0;
  }

  .logo-emoji {
    font-size: 2rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .search-form-container {
    margin-bottom: 1.5rem;
  }

  .search-input-wrapper {
    padding: 0.4rem 0.75rem;
  }

  .search-input {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }

  .search-button {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .search-result-title {
    font-size: 1.1rem;
  }

  .search-result-description {
    font-size: 0.8rem;
  }

  .hot-searches-tags {
    gap: 0.4rem;
  }

  .hot-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
