/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 100vh;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #4f46e5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #0f172a;
  padding: 1rem 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
  transform: translateY(-1px);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo-text {
  color: #0f172a;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.75px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover .nav-logo-text {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  color: #475569;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.nav-link:hover {
  color: #0f172a;
  background: rgba(241, 245, 249, 0.8);
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 4px;
  left: 50%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
  opacity: 0;
}

.nav-link:hover::after {
  width: calc(100% - 1rem);
  opacity: 1;
}

.admin-link {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  color: #475569 !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-link:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(15, 23, 42, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.admin-link::after {
  display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover {
    background: rgba(241, 245, 249, 0.8);
}

.bar {
    width: 24px;
    height: 2px;
    background: #475569;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.hamburger:hover .bar {
    background: #0f172a;
}

/* 主要内容 */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
  min-height: calc(100vh - 200px);
}

/* 页面标题区域 - 扩大尺寸 */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 8rem 2rem 6rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%), 
              url('/images/1748760465787-background.png') center/cover no-repeat;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.4), transparent);
}

.page-header::after {
  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%);
  pointer-events: none;
}

.page-title {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a1a 0%, #4f46e5 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  letter-spacing: 0.5px;
  word-spacing: 0.3em;
  position: relative;
  z-index: 2;
  text-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.page-subtitle {
  font-size: 1.375rem;
  color: #475569;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* 搜索栏样式 - 高级优化版本 */
.search-container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.search-form {
  width: 100%;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 24px;
  padding: 0.875rem 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(15, 23, 42, 0.03),
    0 4px 12px rgba(15, 23, 42, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

.search-input-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.02) 0%, 
    rgba(147, 197, 253, 0.02) 50%, 
    rgba(219, 234, 254, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.search-input-wrapper:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 
    0 1px 3px rgba(15, 23, 42, 0.03),
    0 8px 24px rgba(59, 130, 246, 0.08),
    0 0 0 1px rgba(59, 130, 246, 0.1) inset;
  transform: translateY(-1px);
}

.search-input-wrapper:hover::before {
  opacity: 1;
}

.search-input-wrapper:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.08),
    0 8px 32px rgba(59, 130, 246, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset;
  transform: translateY(-2px);
}

.search-input-wrapper:focus-within::before {
  opacity: 1;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 400;
  padding: 0.5rem 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.search-input::placeholder {
  color: #64748b;
  font-weight: 400;
  transition: color 0.3s ease;
}

.search-input:focus::placeholder {
  color: #94a3b8;
}

.search-button {
  background: linear-gradient(135deg, 
    #1e40af 0%, 
    #3b82f6 50%, 
    #60a5fa 100%);
  border: none;
  border-radius: 18px;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 2px 8px rgba(59, 130, 246, 0.2),
    0 1px 3px rgba(59, 130, 246, 0.1);
  z-index: 1;
}

.search-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    #1e3a8a 0%, 
    #1d4ed8 50%, 
    #2563eb 100%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.3),
    0 2px 8px rgba(59, 130, 246, 0.2);
}

.search-button:hover::before {
  opacity: 1;
}

.search-button:active {
  transform: translateY(-1px);
  transition: transform 0.1s ease;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: white;
  stroke-width: 2.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.search-button:hover .search-icon {
  transform: scale(1.05);
}

/* 搜索栏动画效果 */
@keyframes searchPulse {
  0%, 100% {
    box-shadow: 
      0 1px 3px rgba(15, 23, 42, 0.03),
      0 4px 12px rgba(15, 23, 42, 0.04),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  }
  50% {
    box-shadow: 
      0 1px 3px rgba(15, 23, 42, 0.03),
      0 8px 24px rgba(59, 130, 246, 0.06),
      0 0 0 1px rgba(59, 130, 246, 0.08) inset;
  }
}

.search-input-wrapper.pulse {
  animation: searchPulse 2s ease-in-out infinite;
}

/* 分类导航 - 优化样式 */
.category-nav {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

.category-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
}

.category-nav .nav-item {
  display: inline-block;
  margin: 0 1.25rem;
  padding: 1rem 2rem;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 12px;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.category-nav .nav-item:hover {
  color: #1a1a1a;
  background: rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.category-nav .nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
}

.category-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  border-radius: 12px;
  pointer-events: none;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

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

/* 文章区域 */
.posts-section {
    padding: 80px 0;
    background: #f7fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3748;
}

/* 文章卡片 - 统一设计风格 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 0;
}

.post-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 450px;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* 文章图片区域 - 统一样式 */
.post-card .post-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

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

.post-card:hover .post-image img {
  transform: scale(1.05);
}

/* 无图片时使用统一的渐变背景 */
.post-card .post-image:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.post-card .post-image:not(:has(img))::after {
  content: '📝';
  font-size: 2rem;
}

/* 文章内容区域 */
.post-card .post-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* 文章元信息 */
.post-card .post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  gap: 1rem;
}

.post-card .post-category {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* 分类样式 - 统一设计 */
.post-card .post-category[data-category="行业"] {
  background: #3b82f6;
  color: white;
}

.post-card .post-category[data-category="生活"] {
  background: #10b981;
  color: white;
}

.post-card .post-category[data-category="随笔"] {
  background: #f59e0b;
  color: white;
}

.post-card .post-category:not([data-category]) {
  background: #8b5cf6;
  color: white;
}

.post-card .post-category:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* 置顶徽章样式 */
.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid #f59e0b;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.pin-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.post-card .post-date {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.post-card .post-date::before {
  content: '📅';
  font-size: 0.7rem;
}

/* 文章标题 */
.post-card .post-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.post-card .post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-card .post-title a:hover {
  color: #3b82f6;
}

/* 文章摘要 */
.post-card .post-excerpt {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章标签 */
.post-card .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding: 0;
}

.post-card .tag {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  color: #6b7280;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-card .tag:hover {
  background: #e5e7eb;
  color: #374151;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .post-card {
    min-height: 400px;
  }
  
  .post-card .post-image {
    height: 220px;
  }
  
  .post-card .post-content {
    padding: 1.25rem;
  }
  
  .post-card .post-title {
    font-size: 1.125rem;
  }
  
  .post-card .post-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .posts-grid {
    padding: 0 0.5rem;
  }
  
  .post-card .post-content {
    padding: 1rem;
  }
  
  .post-card .post-title {
    font-size: 1rem;
  }
  
  .post-card .post-excerpt {
    font-size: 0.85rem;
  }
}

.post-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8E8E93;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* 行业分类图片背景 - 苹果风柔和蓝 */
.post-card[data-category="行业"] .post-image {
  background: linear-gradient(135deg, #E1F5FE 0%, #B3E5FC 100%);
  color: #0277BD;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 生活分类图片背景 - 柔和绿 */
.post-card[data-category="生活"] .post-image {
  background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%);
  color: #388E3C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* 随笔分类图片背景 - 柔和橙 */
.post-card[data-category="随笔"] .post-image {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFCC80 100%);
  color: #F57C00;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.post-content {
  padding: 2rem;
}

.post-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.post-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0% 100%;
}

.post-title a:hover {
  background-size: 100% 2px;
}

.post-excerpt {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.post-category {
  padding: 0.625rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* 行业分类样式 - 苹果风柔和蓝 */
.post-category[data-category="行业"] {
  background: linear-gradient(135deg, #E1F5FE, #B3E5FC);
  color: #0277BD;
  border: 1px solid rgba(2, 119, 189, 0.15);
  box-shadow: 0 2px 8px rgba(2, 119, 189, 0.12);
}

.post-category[data-category="行业"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(2, 119, 189, 0.18);
  background: linear-gradient(135deg, #B3E5FC, #81D4FA);
}

/* 生活分类样式 - 柔和绿 */
.post-category[data-category="生活"] {
  background: linear-gradient(135deg, #E8F5E8, #C8E6C9);
  color: #388E3C;
  border: 1px solid rgba(56, 142, 60, 0.15);
  box-shadow: 0 2px 8px rgba(56, 142, 60, 0.12);
}

.post-category[data-category="生活"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 142, 60, 0.18);
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
}

/* 随笔分类样式 - 柔和橙 */
.post-category[data-category="随笔"] {
  background: linear-gradient(135deg, #FFF3E0, #FFCC80);
  color: #F57C00;
  border: 1px solid rgba(245, 124, 0, 0.15);
  box-shadow: 0 2px 8px rgba(245, 124, 0, 0.12);
}

.post-category[data-category="随笔"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 124, 0, 0.18);
  background: linear-gradient(135deg, #FFCC80, #FFB74D);
}

/* 默认分类样式 */
.post-category:not([data-category]) {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.post-category:not([data-category]):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.post-date {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.read-more {
  color: #4f46e5;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.read-more:hover {
  background: rgba(79, 70, 229, 0.15);
  transform: translateY(-1px);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

/* 文章详情页 */
.post-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.post-detail .post-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.post-detail .post-meta {
  color: #6b7280;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-updated {
    color: #ed8936;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 3rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

/* Markdown内容样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
}

.post-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.5rem;
}

.post-content h4 {
  font-size: 1.25rem;
}

.post-content h5 {
  font-size: 1.125rem;
}

.post-content h6 {
  font-size: 1rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #3b82f6;
  background: #f8fafc;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #4b5563;
}

.post-content code {
  background: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  color: #e11d48;
}

.post-content pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  border-radius: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
}

.post-content th,
.post-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.post-content th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.post-content a {
  color: #3b82f6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.post-content a:hover {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}

.post-content hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 2rem 0;
}

.post-footer {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
  text-align: center;
}

/* 关于页面 */
.about-page {
    padding: 80px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    word-spacing: 0.2em;
}

.about-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #4a5568;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #718096;
}

.tech-list {
    list-style: none;
    margin-bottom: 2rem;
}

.tech-list li {
    padding: 0.5rem 0;
    color: #4a5568;
    border-left: 3px solid #4299e1;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* 页脚 */
.footer {
    background: #2d3748;
    color: #a0aec0;
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-beian {
    font-size: 0.85rem;
}

.footer-beian a {
    color: #a0aec0;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-beian a:hover {
    color: #e2e8f0;
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #a0aec0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e2e8f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 73px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(15, 23, 42, 0.1);
        padding: 2rem 0;
        border-top: 1px solid rgba(226, 232, 240, 0.6);
        gap: 0.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0 2rem;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 0.25rem 0;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 500;
    }

    .admin-link {
        margin: 1rem 2rem 0 2rem !important;
        padding: 1rem 1.5rem !important;
        border-radius: 12px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

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

    .section-title {
        font-size: 2rem;
    }

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

    .post-detail .post-title {
        font-size: 2rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .avatar-placeholder {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .pagination-numbers {
        order: -1;
    }
    
    .pagination-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .page-header {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.125rem;
    }
    
    /* 搜索栏响应式设计优化 */
    .search-container {
        max-width: 100%;
        margin: 1.5rem auto;
        padding: 0 1.5rem;
    }
    
    .search-input-wrapper {
        padding: 0.75rem 1rem;
        border-radius: 20px;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
    
    .search-input {
        font-size: 0.95rem;
        padding: 0.375rem 0;
    }
    
    .search-button {
        padding: 0.75rem 0.875rem;
        margin-left: 0.5rem;
        border-radius: 16px;
    }
    
    .search-icon {
        width: 18px;
        height: 18px;
        stroke-width: 2.5;
    }
    
    .search-input-wrapper:hover,
    .search-input-wrapper:focus-within {
        transform: translateY(-1px);
    }
    
    .search-button:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .search-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .search-input-wrapper {
        padding: 0.625rem 0.875rem;
        border-radius: 18px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 0.625rem 0.75rem;
        margin-left: 0.375rem;
        border-radius: 14px;
    }
    
    .search-icon {
        width: 16px;
        height: 16px;
    }
}

/* 搜索导航样式 */
.search-nav {
    margin: 2rem 0 1rem 0;
    padding: 0 2rem;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #4f46e5;
}

.back-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* 无搜索结果样式 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.3;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
    stroke: #64748b;
    stroke-width: 1.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.search-suggestions {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.search-suggestions p {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.search-suggestions li::before {
    content: '•';
    color: #4f46e5;
    position: absolute;
    left: 0;
}

/* 分页导航样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 2rem 0;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #475569;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.025em;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(15, 23, 42, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(226, 232, 240, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-number:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.pagination-ellipsis {
  color: #94a3b8;
  font-weight: 500;
  padding: 0 0.5rem;
  font-size: 0.875rem;
}

/* 分类导航移动端样式 */
@media (max-width: 768px) {
    .category-nav {
        margin: 0 1rem 2rem 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .category-nav .nav-item {
        display: inline-block;
        margin: 0.5rem 0.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .category-nav {
        margin: 0 0.5rem 1.5rem 0.5rem;
        padding: 0.75rem;
    }
    
    .category-nav .nav-item {
        display: block;
        width: calc(100% - 1rem);
        margin: 0.5rem auto;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* 搜索页面响应式设计 */
@media (max-width: 768px) {
    .search-nav {
        padding: 0 1rem;
        margin: 1rem 0;
    }
    
    .no-results {
        padding: 2rem 1rem;
    }
    
    .no-results-icon {
        width: 60px;
        height: 60px;
    }
    
    .no-results h3 {
        font-size: 1.25rem;
    }
}