/* 导航搜索系统样式文件 */

/* 全局样式重置和基础设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* NavGo 主题色 */
  --theme-accent: #eb247a;
  --theme-surface: #ffffff;
  --theme-background: #f8fafc;
  
  /* 文字色 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  /* 边框色 */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--theme-background);
  min-height: 100vh;
}

/* 滚动条样式 - NavGo 风格 */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.55), rgba(100, 116, 139, 0.85));
  border: 2px solid transparent;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.8), rgba(100, 116, 139, 1));
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* 主布局 */
.main-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏样式定义 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: transparent;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid #EEF0F7;
}

/* 侧边栏卡片 */
.sidebar-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(to bottom right, white, white, #f8fafc);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sidebar-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.tagline-container {
  min-height: 2.8rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: 0.025em;
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(to right, #cbd5e1, #475569, var(--theme-accent));
  position: relative;
}

.tagline-text {
  white-space: pre;
}

.caret {
  margin-left: 0.25rem;
  display: inline-block;
  height: 1.75rem;
  width: 2px;
  background: var(--theme-accent);
  opacity: 0.9;
  transition: opacity 0.3s;
}

.caret.hidden {
  opacity: 0.15;
}

.site-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* 分类导航卡片 */
.sidebar-nav-card {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--theme-surface);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #94a3b8;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: calc(8 * 4.75rem); /* 进一步增加高度计算值，确保刚好显示8个分类时不出现滚动条 */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.category-list::-webkit-scrollbar {
  width: 4px;
}

.category-list::-webkit-scrollbar-track {
  background: transparent;
}

.category-list::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.category-item {
  margin: 0;
}

.category-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  color: #475569;
  font-size: 0.875rem;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

.category-button:hover,
.category-button.active {
  border-color: rgba(235, 36, 122, 0.3);
  background: white;
  color: var(--theme-accent);
}

.category-button.active {
  border-color: rgba(235, 36, 122, 0.4);
  background: rgba(235, 36, 122, 0.1);
  color: var(--theme-accent);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.category-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: white;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.category-button:hover .category-index,
.category-button.active .category-index {
  border-color: rgba(235, 36, 122, 0.4);
  background: rgba(235, 36, 122, 0.1);
  color: var(--theme-accent);
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}

.category-hint {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.category-button:hover .category-hint,
.category-button.active .category-hint {
  color: rgba(235, 36, 122, 0.8);
}

.category-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.15s ease;
}

.category-button:hover .category-arrow,
.category-button.active .category-arrow {
  transform: translateX(0.125rem);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  transition: var(--transition-speed);
}

/* Top Header */
.top-header {
  background: var(--bg-primary);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 50;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
  background: var(--bg-secondary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-info h3 {
  font-size: 0.875rem;
  font-weight: 600;
}

.user-info p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 内容区域样式 */
.content-area {
  margin-top: 60px;
  padding: 0 0 2rem;
}

/* NavGo 主内容区域样式 */
.navgo-section {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--theme-surface);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.section-title-container {
  flex: 1;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.section-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.section-stats {
  display: flex;
  align-items: center;
}

.site-count {
  font-size: 0.75rem;
  color: #64748b;
  background: rgba(226, 232, 240, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
}

/* NavGo 链接网格样式 */
.navgo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.navgo-link-card {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: white;
  padding: 1.25rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.navgo-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 36, 122, 0.6);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.navgo-link-card .link-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.navgo-link-card .link-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex: 1;
}

.navgo-link-card .link-info {
  flex: 1;
  margin-right: 1rem;
}

.navgo-link-card .link-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.navgo-link-card:hover .link-title {
  color: var(--theme-accent);
}

.navgo-link-card .link-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.navgo-link-card .link-host {
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(226, 232, 240, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.navgo-link-card .link-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.navgo-link-card .action-text {
  font-size: 0.875rem;
  color: var(--theme-accent);
  font-weight: 500;
}

.navgo-link-card .action-arrow {
  font-size: 1rem;
  color: var(--theme-accent);
  transition: transform 0.2s ease;
}

.navgo-link-card:hover .action-arrow {
  transform: translateX(2px);
}

/* 空状态样式 */
.navgo-empty-section {
  border-radius: 1.5rem;
  border: 1px dashed rgba(226, 232, 240, 0.8);
  background: var(--theme-surface);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.navgo-empty-section .empty-content {
  max-width: 400px;
  margin: 0 auto;
}

.navgo-empty-section .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.navgo-empty-section .empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.navgo-empty-section .empty-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* NavGo 底部样式 */
.navgo-footer {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--theme-surface);
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-top: 2rem;
}

.navgo-footer .footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .navgo-footer .footer-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.navgo-footer .footer-info {
  flex: 1;
}

.navgo-footer .footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

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

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

.navgo-footer .tag {
  font-size: 0.75rem;
  color: #64748b;
  background: rgba(226, 232, 240, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 500;
}

.navgo-footer .footer-links {
  min-width: 250px;
}

.navgo-footer .links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.navgo-footer .links-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.navgo-footer .submit-link {
  font-size: 0.75rem;
  color: var(--theme-accent);
  background: rgba(235, 36, 122, 0.1);
  border: 1px solid rgba(235, 36, 122, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.navgo-footer .submit-link:hover {
  background: rgba(235, 36, 122, 0.2);
}

.navgo-footer .friend-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.navgo-footer .friend-link {
  font-size: 0.75rem;
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navgo-footer .friend-link:hover {
  border-color: rgba(235, 36, 122, 0.6);
  color: var(--theme-accent);
}

.navgo-footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  font-size: 0.75rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .navgo-footer .footer-bottom {
    flex-direction: row;
  }
}

.navgo-footer .copyright,
.navgo-footer .credit {
  margin: 0.25rem 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .content-area {
    padding: 0 0 1rem;
  }
  
  .navgo-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .navgo-link-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .navgo-footer {
    padding: 1.5rem;
    margin-top: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .section-stats {
    align-self: flex-end;
  }
}

/* 链接卡片装饰条已移除 */

.link-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.link-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.link-info {
  margin-left: 1rem;
  flex: 1;
}

.link-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.link-url {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

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

.link-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.link-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.link-action-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-primary);
  border-radius: 0.75rem;
  border: 2px dashed var(--border-color);
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.empty-description {
  color: var(--text-secondary);
  max-width: 300px;
  margin: 0 auto;
}

/* Admin Links */
.admin-links {
  position: fixed;
  bottom: 5rem;
  right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 90;
}

.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--theme-accent, #6e8efb); /* 主题色背景，与返回顶部按钮相同 */
  color: white; /* 白色文字 */
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  transition: all 0.3s;
}

.admin-link:hover {
  background-color: var(--theme-accent-dark, #5a79e0); /* 悬停时颜色变化，与返回顶部按钮相同 */
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 响应式设计 - 确保在所有设备上正常显示 */

/* 大屏幕 - 增加超大屏幕支持 */
@media (min-width: 1600px) {
  .links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .sidebar {
    width: 300px;
  }
  
  .main-content {
    margin-left: 300px;
  }
}

/* 大屏幕 */
@media (max-width: 1400px) {
  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 中屏幕 */
@media (max-width: 1200px) {
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .personal-info-card {
    padding: 2rem;
  }
}

/* 平板设备 - 侧边栏切换 */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
  
  .links-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

/* 平板设备 - 侧边栏切换 */
@media (max-width: 992px) {
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    width: 100%;
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-links {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* 小平板和大屏幕手机 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .top-header {
    left: 0;
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }
  
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .personal-info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .personal-avatar {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .personal-avatar img {
    width: 80px;
    height: 80px;
  }
  
  .personal-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .personal-social-links {
    justify-content: center;
    margin-top: 1rem;
  }
  
  .link-card {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1rem;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }
}

/* 中等尺寸手机 */
@media (max-width: 576px) {
  :root {
    font-size: 14px;
  }
  
  .content-area {
    padding: 1.5rem 1rem;
  }
  
  .sidebar {
    width: 260px;
  }
  
  .sidebar-header {
    padding: 1.5rem 1rem;
  }
  
  .sidebar-header h1 {
    font-size: 1.2rem;
  }
  
  .sidebar-search {
    padding: 0 1rem;
  }
  
  .category-list {
    padding: 0 0.5rem;
  }
  
  .category-link {
    font-size: 0.9rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
  }
  
  .category-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-right: 0.75rem;
  }
  
  .category-count {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }
  
  .top-header {
    padding: 1rem;
    gap: 1rem;
  }
  
  .user-avatar {
    width: 36px;
    height: 36px;
  }
  
  .user-info h3 {
    font-size: 0.9rem;
  }
  
  .user-info p {
    font-size: 0.8rem;
  }
  
  .link-card {
    padding: 1.25rem;
  }
  
  .link-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .link-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .link-title {
    font-size: 1.2rem;
  }
  
  .link-url {
    font-size: 0.85rem;
  }
  
  .link-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .link-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .link-action-btn {
    padding: 0.75rem;
    justify-content: center;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

/* 小屏幕手机 */
@media (max-width: 420px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
  }
  
  .content-area {
    padding: 1rem;
  }
  
  .personal-info-card {
    padding: 1.25rem;
  }
  
  .personal-bio {
    font-size: 0.9rem;
  }
  
  .category-link {
    padding: 0.75rem 0.5rem;
  }
  
  .category-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-right: 0.5rem;
  }
  
  .category-text {
    font-size: 0.85rem;
  }
  
  .link-action-btn {
    font-size: 0.85rem;
  }
}

/* 超大屏幕布局适配 */
@media (min-width: 1800px) {
  .links-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 高分辨率屏幕支持 */
@media (-webkit-device-pixel-ratio: 2), (resolution: 192dpi) {
  .link-card, .personal-info-card {
    background-clip: padding-box;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 分类项动画已移除，确保分类按钮保持静态 */

.link-card {
  animation: fadeIn 0.4s ease forwards;
}

.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.1s; }
.link-card:nth-child(3) { animation-delay: 0.15s; }
.link-card:nth-child(4) { animation-delay: 0.2s; }
.link-card:nth-child(5) { animation-delay: 0.25s; }
.link-card:nth-child(6) { animation-delay: 0.3s; }
.link-card:nth-child(7) { animation-delay: 0.35s; }
.link-card:nth-child(8) { animation-delay: 0.4s; }

/* Personal Info Card */
.personal-info-card {
  background: var(--bg-primary);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.personal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg-secondary);
  box-shadow: var(--shadow-md);
}

.personal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-content {
  flex: 1;
}

.personal-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.personal-title {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.personal-bio {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.personal-social-links {
  display: flex;
  gap: 1rem;
}

.personal-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.personal-social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .personal-info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .personal-content {
    width: 100%;
  }
  
  .personal-social-links {
    justify-content: center;
  }
}

/* 导航搜索面板样式 */
.search-panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: var(--theme-surface);
  padding: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.search-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .search-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-title-container {
  flex: 1;
}

.search-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.search-description {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* 管理后台按钮样式 - 现代化设计 */
.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* 圆形设计 */
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  color: #64748b;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 添加渐变光效 */
.header-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  opacity: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: translateX(100%) rotate(45deg);
    opacity: 0;
  }
}

.header-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(235, 36, 122, 0.1);
}

.header-button:hover::before {
  animation-duration: 1.5s;
}

.header-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition-duration: 0.1s;
}

/* 管理后台特定按钮增强样式 */
.admin-button {
  border-color: rgba(235, 36, 122, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  position: relative;
  z-index: 1;
}

/* 新的交互效果 - 点击波纹扩散 */
.admin-button {
  position: relative;
  overflow: hidden;
}

/* 点击波纹效果 - 使用伪元素实现 */
.admin-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(235, 36, 122, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.5s, height 0.5s, opacity 0.5s;
  z-index: -1;
}

/* 点击时触发波纹扩散 */
.admin-button:active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* 悬停交互效果 */
.admin-button:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-color: var(--theme-accent);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(235, 36, 122, 0.1), 0 0 0 1px rgba(235, 36, 122, 0.1);
}

/* 图标样式效果 */
.admin-button i {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.admin-button:hover i {
  color: var(--theme-accent);
  text-shadow: 0 1px 3px rgba(235, 36, 122, 0.3);
}

/* 响应式设计适配 */
@media (max-width: 768px) {
  .header-button {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

.active-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
}

.category-name {
  font-weight: 500;
  color: #1e293b;
}

.search-form {
  margin-bottom: 0;
}

.search-input-container {
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.search-tabs-container {
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.25rem;
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.search-tab {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  cursor: pointer;
}

.search-tab:hover {
  border-color: rgba(235, 36, 122, 0.4);
  background: rgba(235, 36, 122, 0.1);
  color: var(--theme-accent);
}

.search-tab.active {
  border-color: var(--theme-accent);
  background: rgba(235, 36, 122, 0.15);
  color: var(--theme-accent);
}

/* 搜索选项卡中的当前分类样式 */
.search-tabs .active-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
}

.search-tabs .active-category-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.search-input-wrapper {
  padding: 1.25rem;
}

.search-input-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .search-input-row {
    flex-direction: row;
    align-items: center;
  }
}

.search-input-container-inner {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: white;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s;
  border-right: 1px solid rgba(226, 232, 240, 0.8); /* 恢复右侧边框 */
  border-radius: 1rem; /* 恢复完整圆角 */
}

.search-input:focus {
  outline: none;
  border-color: var(--theme-accent);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s;
}

.search-clear:hover {
  color: var(--theme-accent);
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--theme-accent);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.search-button:hover {
  transform: translateY(-0.125rem);
  opacity: 0.9;
}

.search-results-info {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* 搜索高亮样式 */
.search-highlight {
  background: rgba(235, 36, 122, 0.2);
  color: var(--theme-accent);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}



/* 无结果消息样式 */
.no-results-message {
  margin-top: 2rem;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 1rem;
  border: 1px dashed rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.5);
}

.no-results-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.no-results-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 返回顶部按钮 */
.back-to-top-btn {
  background-color: var(--theme-accent, #6e8efb); /* 主题色背景 */
  color: white; /* 白色文字 */
  border: none; 
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 自定义悬停效果 */
.back-to-top-btn:hover {
  background-color: var(--theme-accent-dark, #5a79e0); /* 悬停时颜色变化 */
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* 底部信息区域样式 */
.site-footer {
  margin-top: 40px;
  padding: 30px 20px 20px;
  text-align: center;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-copyright {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px auto 15px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 8px 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.footer-link {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 12px;
  border-radius: 15px;
}

.footer-link:hover {
  background: rgba(235, 36, 122, 0.1);
  transform: translateY(-1px);
  color: #eb247a;
  text-decoration: none;
}

.footer-custom {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.6;
}

.footer-custom a {
  color: #eb247a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-custom a:hover {
  color: #d11e6d;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 30px;
    padding: 25px 15px 15px;
  }

  .footer-links {
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }

  .footer-link {
    font-size: 11px;
    padding: 5px 10px;
  }

  .footer-copyright {
    font-size: 12px;
  }

  .footer-custom {
    font-size: 11px;
  }
}
