:root {
    --primary-color: #00d4ff;
    --secondary-color: #0077ff;
    --background-dark: #0a0e17;
    --card-bg: rgba(25, 35, 60, 0.7);
    --text-primary: #e0e7ff;
    --text-secondary: #a0aec0;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark), #1a2238);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
  }

  .glow-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 20%),
      radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 20%);
    z-index: -1;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    position: relative;
  }

  .header h1{
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    font-size: 1.1rem;
    opacity: 0.8;
  }
 

  .header::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 15px auto;
    border-radius: 2px;
  }

  .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: rgba(30, 40, 70, 0.6);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
  }

  .nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .nav a:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
  }

  .nav a:hover::before {
    left: 100%;
  }

  .nav a.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
  }

  .search-bar {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    position: relative;
  }

  .search-bar input {
    width: 90%;
    padding: 15px 20px;
    padding-left: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }

  .search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }

  .search-bar input::placeholder {
    color: var(--text-secondary);
  }

  .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
  }

  .search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .search-bar button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 119, 255, 0.4);
  }

  .sort-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
  }

  .sort-btn {
    padding: 10px 20px;
    background: rgba(30, 40, 70, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
  }

  .sort-btn:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: var(--primary-color);
  }

  .sort-btn.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
  }

  .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
  }

  /* 科技感卡片样式 */
  .card {
    width: 100%;
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
  }

  .card:hover::before {
    transform: scaleX(1);
  }

  .card-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.3);
  }

  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .card:hover .card-image img {
    transform: scale(1.05);
  }

  .card-content {
    flex: 1;
    min-width: 1%;
    max-width: 100%;      /* 最大宽度不超过父元素 */
    width: auto;          /* 宽度自适应，通常用于图片等替换元素 */
    box-sizing: border-box;
    display: flex; 
    align-items: stretch;
    overflow-x: auto;
      /* 开启平滑滚动 */
  scroll-behavior: smooth;
  

  
  }

/* ========================================= */
/* 1. 针对 Firefox (PC端必须加这个) */
/* ========================================= */
.card-content {
  /* 设置滚动条宽度为细线模式 */
  scrollbar-width: thin;
  /* 设置颜色：[滑块颜色] [轨道背景颜色] */
  /* 这里使用了半透明白色，能自动适应你的深色背景 */
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* 鼠标悬停在内容区时，让滚动条稍微明显一点（可选） */
.card-content:hover {
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* ========================================= */
/* 2. 针对 Chrome, Edge, Safari (Webkit内核) */
/* ========================================= */

/* 定义滚动条整体宽高 */
.card-content::-webkit-scrollbar {
  width: 6px;  /* 纵向滚动条宽度 */
  height: 6px; /* 横向滚动条高度 */
}

/* 滚动条轨道（背景） */
.card-content::-webkit-scrollbar-track {
  background: transparent; /* 保持透明，不要有底色 */
}

/* 滚动条滑块（那个可以拖动的块） */
.card-content::-webkit-scrollbar-thumb {
  /* 使用圆角 */
  border-radius: 10px;
  /* 默认状态：微弱的半透明白 */
  background: rgba(255, 255, 255, 0.2);
}

/* 鼠标悬停在滑块上时 */
.card-content::-webkit-scrollbar-thumb:hover {
  /* 变亮，增加交互感 */
  background: rgba(255, 255, 255, 0.5);
}

/* 鼠标按下滑块时 */
.card-content::-webkit-scrollbar-thumb:active {
  background: rgba(255, 255, 255, 0.8);
}
  .card-text-section{
    width: auto;          /* 宽度自适应，通常用于图片等替换元素 */
    /* box-sizing: border-box; */
  }

  .card h2 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
  }

  .card h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
  }

  .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
  }

  .author-info {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: bold;
  }

  .likes {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success-color);
    font-weight: 600;
  }

  .likes::before {
    content: '♥';
    font-size: 1rem;
  }

  .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 20px;
  }

  .page-btn {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .page-btn:hover {
    background: rgba(0, 119, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }

  .page-btn.active {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 119, 255, 0.3);
  }

  footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
  }

  @media (max-width: 768px) {
    .search-bar input {
      
      width: 60%;
    }

    .header h1{
      font-size: 2rem;
    }

    .card {
      flex-direction: column;
    }

    .card-image {
      width: 100%;
      height: 120px;
      margin-right: 0;
      margin-bottom: 12px;
    }
  }


  .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    /* 模拟标题的蓝色渐变辉光阴影：深蓝底 + 多层蓝色半透明外发光 */
    box-shadow:
      0 0 8px rgba(0, 212, 255, 0.4),
      0 0 16px rgba(0, 212, 255, 0.3),
      0 0 24px rgba(0, 212, 255, 0.2),
      0 0 32px rgba(0, 212, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.17, 0.67, 0.88, 1.01);
    z-index: 1000;
  }

  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .back-to-top:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px);
    box-shadow:
      0 0 12px rgba(0, 212, 255, 0.6),
      0 0 20px rgba(0, 212, 255, 0.4),
      0 0 32px rgba(0, 212, 255, 0.3),
      0 0 48px rgba(0, 212, 255, 0.2);
  }

  .back-to-top:active {
    transform: translateY(1px);
    box-shadow:
      0 0 6px rgba(0, 212, 255, 0.4),
      0 0 12px rgba(0, 212, 255, 0.25),
      0 0 20px rgba(0, 212, 255, 0.15);
  }

  .header h1{
    font-size: 29px;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* 最大宽度不超过父元素 */
}

/* 通知框样式 - 左上角定位，匹配深色科技风格 */
.notification {
    position: fixed;
    top: 20px;
    /* 改为顶部 */
    left: 20px;
    /* 改为左侧 */
    background: rgba(15, 23, 42, 0.9);
    /* 深蓝黑半透 */
    backdrop-filter: blur(10px);
    /* 毛玻璃 */
    border: 1px solid rgba(59, 130, 246, 0.3);
    /* 主色边框 */
    border-radius: 12px;
    /* 圆角 */
    padding: 16px 20px;
    box-shadow:
        0 8px 32px rgba(59, 130, 246, 0.2),
        /* 主色发光阴影 */
        0 0 0 1px rgba(59, 130, 246, 0.1);
    z-index: 1000;
    display: none;
    /* 默认隐藏 */
    max-width: 320px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #e5e7eb;
    /* 浅灰白文字 */
    animation: slideInLeft 0.4s ease-out forwards;
    /* 动画改为从左滑入 */
}

/* 从左滑入动画 */
@keyframes slideInLeft {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }

    /* 从左边外侧滑入 */
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 退出动画 - 淡出即可 */
@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.notification.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}
/* --- 容器布局 --- */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  min-width: 100px;
  max-width: 200px;
  /* 调整宽度 */
  margin-right: 10px;
  /* 与搜索框的间距 */

}

/* --- 装饰文字样式 --- */
.select-label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a5b4fc;
  /* 浅蓝紫色文字 */
  font-size: 14px;
  pointer-events: none;
  /* 点击文字时穿透到 select */
  z-index: 2;
  font-weight: 600;
}

/* --- 核心：美化 Select --- */
.custom-select-wrapper select {
  width: 100%;
  height: 48px;
  /* 高度与搜索框对齐 */
  padding-left: 20px;
  /* 留出文字的空间 */
  padding-right: 30px;
  /* 留出箭头的空间 */

  /* 去除原生外观 */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* 背景与边框 */
  background: rgba(15, 23, 42, 0.6);
  /* 深蓝半透明背景 */
  border: 1px solid #3b82f6;
  /* 蓝色边框 */
  border-radius: 12px;
  /* 圆角 */

  /* 文字颜色 */
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;

  /* 过渡动画 */
  transition: all 0.3s ease;
  outline: none;

  /* 文字截断处理 */
  text-overflow: ellipsis;
}

/* --- 鼠标悬停效果 (霓虹光效) --- */
.custom-select-wrapper select:hover {
  border-color: #8b5cf6;
  /* 悬停变紫色 */
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  /* 紫色发光 */
  background: rgba(15, 23, 42, 0.8);
}

/* --- 聚焦时的效果 --- */
.custom-select-wrapper select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
  /* 关键代码：去掉底部两个角的圆角 */
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* --- 自定义箭头样式 --- */
.select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #8b5cf6;
  /* 箭头颜色 */
  pointer-events: none;
  /* 点击箭头时穿透到 select */
  transition: transform 0.2s;
}

/* 当 select 获得焦点时，箭头旋转 */
/* .custom-select-wrapper select:focus+.select-arrow {
  color: #ffffff;
  transform: translateY(-50%) rotate(180deg);
} */

/* --- 选项下拉菜单的样式 (仅 Webkit 浏览器有效) --- */
.custom-select-wrapper select option {
  background-color: #1e293b;
  /* 下拉项背景深蓝 */
  color: #ffffff;
  /* 下拉项文字白色 */
  padding: 10px;

}

.custom-select-wrapper select option:checked {
  background-color: #3b82f6;
  /* 选中项高亮 */
  color: white;
}

.custom-select-wrapper select option:hover {
  background-color: #4f46e5;
  /* 悬停项颜色 */
}


/* 搜索框容器需要相对定位，以便下拉框绝对定位 */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  /* 保持你原有的样式... */
}

/* 热门搜索下拉框 */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  /* 距离搜索栏一点距离 */
  left: 0;
  width: 100%;
  background: rgba(20, 20, 35, 0.95);
  /* 深色半透明背景 */
  border: 1px solid rgba(100, 100, 255, 0.2);
  /* 微弱的紫色边框 */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(66, 133, 244, 0.15);
  /* 科技感阴影 */
  backdrop-filter: blur(10px);
  /* 磨砂玻璃效果 */
  z-index: 100;

  /* 简单的进入动画 */
  animation: fadeInDown 0.3s ease-out;
}

/* 标题区域 */
.hot-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #a0a0c0;
  font-size: 14px;
  font-weight: 600;
}

.fire-icon {
  color: #ff6b6b;
  /* 火焰图标颜色 */
  margin-right: 8px;
  display: flex;
  align-items: center;
}

/* 标签容器 */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 单个热门标签 */
.hot-tag {
  padding: 6px 14px;
  font-size: 13px;
  color: #e0e0ff;
  background: rgba(255, 255, 255, 0.05);
  /* 默认背景 */
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* 鼠标悬停效果 - 呼应页面的搜索按钮风格 */
.hot-tag:hover {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  /* 蓝色渐变 */
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

/* 动画定义 */
@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}


/* 图片动画定义-----开始 */
/* 定义旋转动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 定义反向旋转动画（用于内圈，增加层次感） */
@keyframes spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.custom-loading-spinner {
  /* 容器大小 */
  width: 40px;
  height: 40px;
  position: relative;
  /* 确保在图片位置居中 */
  display: inline-block; 
}

/* 公共样式：两个圆环 */
.custom-loading-spinner::before,
.custom-loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  /* 边框宽度 */
  border: 3px solid transparent; 
  /* 裁切掉一半，形成半圆 */
  clip-path: inset(0 0 50% 0); 
}

/* 外圈：青蓝色 (对应你标题的颜色) */
.custom-loading-spinner::before {
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-top-color: #3b82f6; /* 蓝色 */
  border-right-color: #06b6d4; /* 青色 */
  /* 应用旋转动画 */
  animation: spin 1.2s linear infinite;
}

/* 内圈：紫色 (对应你搜索按钮的颜色) */
.custom-loading-spinner::after {
  top: 5px; left: 5px; /* 稍微小一点，嵌套在里面 */
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-bottom-color: #8b5cf6; /* 紫色 */
  border-left-color: #6366f1;   /* 靛蓝 */
  /* 应用反向旋转动画 */
  animation: spin-reverse 1.8s linear infinite;
}
/* 这个类名是 vue-lazyload 自动加在 img 标签上的 */
img.custom-loading-spinner-container {
  /* 隐藏原本的占位图（如果是透明的可以忽略） */
  opacity: 0; 
  /* 相对定位，为了让伪元素基于它定位 */
  position: relative; 
  background-color: transparent !important;
}

/* 利用伪元素把上面的动画“贴”上去 */
img.custom-loading-spinner-container::after {
  content: '';
  /* 引入上面定义的动画样式 */
  /* ...这里直接复用上面的 .custom-loading-spinner 样式... */
  /* 注意：由于 img 是替换元素，伪元素在某些浏览器可能不生效，
     所以最好的方式是用背景图或者方案 B */
}


/* 确保父容器是相对定位，让内部的绝对定位生效 */
.card-image-section {
  position: relative; 
}

/* 图片样式：关键是要加 z-index */
.resource-img {
  width: 100%;
  height: 64px;
  object-fit: fill;
  border-radius: 4px;
  
  /* 【核心修复】让图片层级高于 Loading 动画 */
  position: relative;
  z-index: 2; 
  display: block; /* 防止图片底部有幽灵空白 */
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 针对 vue-lazyload 加载成功的图片 */
img.lazy-loaded-img {
  /* 必须设置为 relative 或 absolute 才能让 z-index 生效 */
  position: relative !important; 
  
  /* 设置一个较高的层级，确保盖住下面的 loading 动画 */
  z-index: 2 !important; 
  
  /* 确保图片是块级元素，避免底部有缝隙 */
  display: block; 
}

/* 确保 loading 动画在底层 */
.custom-loading-spinner-container {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 1 !important; /* 层级低于图片 */
  width: 100%;
  height: 100%;
  /* 如果你使用的是背景图做动画，确保它铺满 */
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
}
/* 图片动画定义-----结束 */


/* 搜索动画-----开始 */
   /* --- 全局变量定义 (方便统一修改颜色) --- */
   :root {
    --bg-color: #0f172a;       /* 深蓝背景 */
    --card-bg: rgba(30, 41, 59, 0.6); /* 半透明卡片 */
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); /* 蓝紫渐变 */
    --text-main: #ffffff;
    --text-sub: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    height: 100vh;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- 模拟的主页面内容 (为了演示遮挡效果) --- */
.main-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    opacity: 0.3; /* 变暗，突出Loading层 */
    filter: blur(4px); /* 模糊背景，增加高级感 */
    transition: all 0.3s ease;
}

/* --- Loading 遮罩层 (核心部分) --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4); /* 轻微遮罩 */
    backdrop-filter: blur(8px); /* 毛玻璃效果 */
}

/* --- 加载卡片容器 --- */
.loading-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* 响应式宽度控制 */
    width: 80%;
    max-width: 320px;
    min-height: 200px;
    animation: cardFloat 3s ease-in-out infinite; /* 微微浮动 */
}

/* --- 动态扫描圈动画 --- */
.scanner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 外圈光晕 */
.scanner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #3b82f6; /* 蓝色 */
    border-right-color: #8b5cf6; /* 紫色 */
    animation: spin 1s linear infinite;
}

/* 内圈呼吸点 */
.scanner-core {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* --- 文字样式 --- */
.loading-text {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* 渐变文字 */
}

.loading-subtext {
    font-size: 13px;
    color: var(--text-sub);
}

/* --- 动画关键帧 --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 30px rgba(139, 92, 246, 0.8); }
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Vue Transition 过渡效果 --- */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* --- 按钮样式 (仅用于演示) --- */
.btn-demo {
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}
/* 搜索动画-----结束 */