body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: transparent;
  padding-top: 80px; /* 为固定header留出空间 */
}

/* 主页特殊样式 */
body.home-page {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px; /* 添加底部空间用于滚动 */
}

body.home-page #header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

body.home-page .bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

body.home-page #main-content {
  z-index: 1;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 100px 20px 50px; /* 调整内边距 */
}

body.home-page #footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

/* 背景和毛玻璃效果 */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('./assets/bg.jpg'); /* 背景图 */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* 半透明背景 */
}

.main-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 20px 20px 120px; /* 保留底部固定页脚空间 */
}

/* 头部 */
header {
  background: rgba(255, 255, 255, 0.3);  /* 半透明背景 */
  backdrop-filter: blur(8px);  /* 毛玻璃效果 */
  padding: 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

header .navbar {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

header .navbar a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

header .navbar a:hover {
  color: #007bff;
}

/* 卡片内容 */
.main-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 40px;
}

.main-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #222;
}

.main-hero p {
  max-width: 680px;
  margin: 18px auto 0;
  line-height: 1.8;
  color: #444;
  font-size: 1.05rem;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(560px, 100%);
  margin: 24px auto 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: #222;
  padding: 16px 24px;
  font-size: 1rem;
}

.search-box input:focus {
  outline: none;
}

.search-box input::placeholder {
  color: rgba(34, 34, 34, 0.6);
}

.search-box button {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: #222;
  padding: 16px 28px;
  cursor: pointer;
  font-weight: 700;
}

.search-box button:hover {
  background: rgba(255, 255, 255, 1);
}

.card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); /* 毛玻璃效果 */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 20px;
  width: 300px;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s ease;
}

.card-link:hover {
  opacity: 0.9;
}

.container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* 页脚样式 */
footer {
  padding: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
}

footer .socials a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

footer .socials a:hover {
  color: #007bff;
}

/* 公告页面三列布局 */
.announcement-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 30px;
  padding: 60px 20px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 左侧目录 */
.announcement-sidebar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.announcement-sidebar h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.1rem;
}

.announcement-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-sidebar ul li {
  margin: 12px 0;
}

.announcement-sidebar ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.announcement-sidebar ul li a.active {
  color: #007bff;
  font-weight: bold;
}

/* 中间文章内容 */
.announcement-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 40px;
  color: #222;
}

.announcement-content section {
  margin-bottom: 40px;
}

.announcement-content section:last-child {
  margin-bottom: 0;
}

.announcement-content h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #222;
  border-bottom: 2px solid rgba(0, 123, 255, 0.5);
  padding-bottom: 12px;
}

.announcement-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.announcement-content p {
  line-height: 1.8;
  color: #444;
  margin: 10px 0;
}

/* 右侧目录树 */
.announcement-toc {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.announcement-toc h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.1rem;
}

.announcement-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.announcement-toc ul li {
  margin: 10px 0;
}

.announcement-toc ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.announcement-toc ul li a:hover {
  color: #007bff;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .announcement-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .announcement-sidebar,
  .announcement-toc {
    position: static;
    top: auto;
  }
}

.logo {
  height: 40px;   /* ⭐核心：限制高度 */
  width: auto;    /* 保持比例，不变形 */
}

/* 关于本站页面三列布局 */
.about-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 30px;
  padding: 60px 20px 120px;
  max-width: 1400px;
  margin: 0 auto;
}

/* 关于本站左侧侧边栏 */
.about-sidebar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.about-sidebar h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.1rem;
}

.about-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-sidebar ul li {
  margin: 12px 0;
}

.about-sidebar ul li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.about-sidebar ul li a:hover {
  color: #007bff;
}

/* 关于本站中间内容 */
.about-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 40px;
  color: #222;
}

.about-content h1 {
  margin-top: 0;
  font-size: 2.2rem;
  color: #222;
}

.about-section {
  margin-bottom: 40px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #222;
  border-bottom: 2px solid rgba(0, 123, 255, 0.5);
  padding-bottom: 12px;
}

.about-section p {
  line-height: 1.8;
  color: #444;
  margin: 10px 0;
}

/* 关于本站右侧快捷导航 */
.about-navigation {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

.about-navigation h3 {
  margin-top: 0;
  color: #222;
  font-size: 1.1rem;
}

.about-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-navigation ul li {
  margin: 10px 0;
}

.about-navigation ul li a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.about-navigation ul li a:hover {
  color: #007bff;
}

/* 关于本站响应式布局 */
@media (max-width: 1200px) {
  .about-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-sidebar,
  .about-navigation {
    position: static;
    top: auto;
  }
}

/* 博客页面样式 */
.blog-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 120px;
  text-align: center;
}

.blog-main h1 {
  color: #222;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-main > p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* 博客网格布局 */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* 博客卡片样式 */
.blog-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card-content {
  padding: 15px;
}

.blog-card-title {
  margin: 0;
  font-size: 1rem;
  color: #222;
  line-height: 1.4;
  font-weight: 600;
}

.blog-card-description {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 翻页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.page-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #333;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

#page-info {
  color: #555;
  font-weight: 500;
  min-width: 120px;
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .blog-main h1 {
    font-size: 2rem;
  }

  .blog-card-image {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .blog-main {
    padding: 40px 15px 100px;
  }
}

/* 资源页面样式 */
.resources-main {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px 120px;
  text-align: center;
}

.resources-main h1 {
  color: #222;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.resources-main > p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* 资源网格布局 */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* 资源卡片样式 */
.resource-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.resource-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.resource-card-content {
  padding: 15px;
  text-align: left;
}

.resource-category {
  display: inline-block;
  background: rgba(52, 152, 219, 0.2);
  color: #2980b9;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.resource-card-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  color: #222;
  line-height: 1.4;
  font-weight: 600;
}

.resource-download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 - 资源页面 */
@media (max-width: 1200px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .resources-main h1 {
    font-size: 2rem;
  }

  .resource-card-image {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .resources-main {
    padding: 40px 15px 100px;
  }
}

/* ==================== 博客文章模板样式 ==================== */

.blog-article-main {
  display: grid;
  grid-template-columns: 220px 1fr 250px;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  min-height: 100vh;
}

/* 左侧：快速导航 */
.blog-article-sidebar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.blog-article-sidebar h3 {
  margin: 0 0 15px;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.blog-search-box {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.blog-search-box:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#article-toc-list li {
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

#article-toc-list a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#article-toc-list a:hover {
  color: #007bff;
  border-left-color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

/* 中间：文章内容 */
.blog-article-content {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.article-title {
  font-size: 2.5rem;
  color: #000;
  margin: 0 0 15px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
}

.article-intro {
  background: rgba(0, 123, 255, 0.05);
  border-left: 4px solid #007bff;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.article-intro p {
  margin: 0;
}

/* 文章主体内容 */
.article-body {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.article-body section {
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 1.8rem;
  color: #000;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
}

.article-body h3 {
  font-size: 1.3rem;
  color: #333;
  margin: 20px 0 10px;
}

.article-body p {
  margin-bottom: 15px;
  text-align: justify;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-body a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-body a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.article-body code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: #d63384;
}

.article-body pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 15px 0;
  line-height: 1.4;
}

/* 视频区域 */
.article-video {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.article-video h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 20px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* 右侧：文章信息和相关推荐 */
.blog-article-info {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: 70vh;
  overflow-y: auto;
}

.article-info-box {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.blog-article-info h3 {
  margin: 0 0 15px;
  font-size: 1.1rem;
  color: #333;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
}

.article-info-box p {
  margin: 10px 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.article-info-box strong {
  color: #000;
}

.related-articles {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.related-article-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.related-article-item:last-child {
  border-bottom: none;
}

.related-article-item a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s ease;
  display: block;
}

.related-article-item a:hover {
  color: #0056b3;
}

/* 响应式设计 - 博客文章 */
@media (max-width: 1200px) {
  .blog-article-main {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 30px 15px 100px;
  }

  .blog-article-sidebar,
  .blog-article-info {
    position: static;
    top: auto;
    height: auto;
    max-height: none;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-body h2 {
    font-size: 1.5rem;
  }

  .blog-article-content {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .blog-article-main {
    padding: 20px 10px 80px;
  }

  .blog-article-content {
    padding: 20px 15px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
  }

  .article-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .article-body h2 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
  }

  .article-body h3 {
    font-size: 1.1rem;
  }

  .blog-search-box {
    font-size: 13px;
  }

  #article-toc-list a {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* ==================== 搜索结果下拉框样式 ==================== */

.search-container {
  position: relative;
  width: min(560px, 100%);
  margin: 24px auto 0;
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  z-index: 20;
  animation: searchDropdownSlide 0.2s ease;
}

@keyframes searchDropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-dropdown.active {
  display: block;
}

.search-results-content {
  padding: 12px 0;
}

.search-empty {
  color: #999;
  text-align: center;
  padding: 24px 20px;
  margin: 0;
  font-size: 0.95rem;
}

.search-count {
  font-size: 0.85rem;
  color: #888;
  margin: 8px 20px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-count strong {
  color: #333;
  font-weight: 600;
}

/* 搜索分组 */
.search-group {
  padding: 8px 0;
}

.search-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.05em;
  margin: 12px 20px 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* 单条搜索结果 */
.search-result-item {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.search-result-item:hover {
  background: rgba(102, 126, 234, 0.08);
  border-left-color: rgba(102, 126, 234, 0.6);
}

.result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.result-desc {
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 标签列表 */
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.result-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* 关键词高亮 */
mark {
  background: rgba(255, 213, 0, 0.5);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 500;
}

/* 移动端适配搜索下拉框 */
@media (max-width: 768px) {
  .search-results-dropdown {
    max-height: 60vh;
  }

  .search-result-item {
    padding: 10px 16px;
  }

  .result-title {
    font-size: 0.9rem;
  }
}