/* ===== 保留的核心动效 ===== */
.bg-orb {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  left: -100px;
  top: -80px;
  background: #ffa96d;
}

.orb-b {
  right: -130px;
  bottom: -120px;
  background: #72c6c1;
}

/* ===== Hero Logo 动效 ===== */
.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(235, 115, 40, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-logo {
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(235, 115, 40, 0.25);
  animation: float 4s ease-in-out infinite;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ===== 网格背景 ===== */
.grid-bg {
  background-size: 40px 40px;
}

/* ===== Toast 通知 ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== 筛选按钮激活态 ===== */
.filter.is-active {
  background: rgba(217, 119, 6, 0.1) !important;
  color: #D97706 !important;
  border-color: rgba(217, 119, 6, 0.2) !important;
}

.dark .filter.is-active {
  background: rgba(217, 119, 6, 0.15) !important;
  color: #F59E0B !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
}

/* ===== 任务卡片状态 ===== */
.status-open {
  background: #fef3c7;
  color: #92400e;
}

.status-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-done {
  background: #d1fae5;
  color: #065f46;
}

/* ===== 滚动条 ===== */
.preview-scroll::-webkit-scrollbar {
  width: 4px;
}

.preview-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.preview-scroll::-webkit-scrollbar-thumb {
  background-color: #e5e7eb;
  border-radius: 20px;
}

/* ===== 隐藏滚动条 ===== */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== 能力标签悬浮提示 ===== */
.ability-tag {
  position: relative;
}

.ability-tag .tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
  margin-bottom: 8px;
}

.ability-tag .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.ability-tag:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* ===== 响应式调整 ===== */
@media (max-width: 1024px) {
  .hero-logo {
    width: 80px !important;
    height: 80px !important;
  }
}

@media (max-width: 640px) {
  .bg-orb {
    width: 180px;
    height: 180px;
    filter: blur(60px);
  }

  .hero-logo {
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px;
  }
}

/* ===== 主标签页样式（Pill Toggle） ===== */
.main-tab {
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: all 0.2s ease;
}

/* ===== 技能分类区块样式 ===== */
.skill-category-section {
  margin-bottom: 2rem;
}

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

.skill-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dark .skill-category-title {
  color: white;
}

.skill-category-count {
  font-size: 0.875rem;
  color: #6B7280;
}

.dark .skill-category-count {
  color: #9CA3AF;
}

.skill-category-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .skill-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 瀑布流布局（任务大厅专用） ===== */
.masonry-grid {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (min-width: 1280px) {
  .masonry-grid {
    column-count: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ===== 网格布局（技能大厅专用） ===== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 技能卡片固定 4:3 比例封面 */
.skill-card-cover {
  position: relative;
  width: 100%;
  padding-top: 75%;
  /* 4:3 比例 = 3/4 = 75% */
  overflow: hidden;
  border-radius: 0.75rem;
}

.skill-card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 裁剪适配 */
}

/* ===== 卡片悬浮按钮（覆盖在图片封面底部） ===== */
.card-hover-buttons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
  pointer-events: none;
}

.group:hover .card-hover-buttons {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 悬浮按钮上方增加额外渐变遮罩以提升可读性 */
.card-hover-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 15;
  pointer-events: none;
}

.group:hover .card-hover-gradient {
  opacity: 1;
}

/* ===== Shimmer 加载动画 ===== */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ===== Material Symbols 配置 ===== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}