:root {
  --logo: rgba(255, 255, 255, 0.7);
  --main: #2b61f5;
  --font: #333;
  --a: #333;
  --body: rgba(245, 245, 245, 0.8);
  --footer: #111111;
  --footer-font: rgba(255, 255, 255, 0.8);
  --search: #3a60ee;
}

* {
  box-sizing: border-box;
}

body {
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--font);
  background: var(--body);
  background-size: contain;
  /* width: 100vw; */
  /* overflow-x: hidden; */
}
html {
  font-size: 16px;
}
a {
  line-height: 20px;
  text-decoration: none;
  color: var(--a);
}

a:hover,
a:active {
  text-decoration: none;
}

strong {
  font-weight: bolder;
}

.fx-r {
  display: flex;
  flex-direction: row;
}

.fx-h {
  display: flex;
  flex-direction: column;
}

.fx-ac {
  justify-content: center;
}

.fx-bc {
  align-items: center;
}

/* 定义全局滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 滚动条 */
::-webkit-scrollbar-track {
  border-radius: 4px;
  background: #f1f1f1;
}

/* 滚动条常态 */
::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: #e3e3e3;
}

/* 滚动条鼠标经过 */
::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}

#backToTop.show,
#scrollToBottomBtn.show {
  opacity: 1;
}
.image-option {
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.image-option:hover,
.image-option.active {
  border-color: #3a60ee;
  background-color: #f0f8ff;
  box-shadow: 0 0 5px rgba(58, 96, 238, 0.3);
}
.skeleton {
  padding: 20px;
  background-color: #f5f5f5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.skeleton-header,
.skeleton-search,
.skeleton-feature,
.skeleton-grid {
  border-radius: 8px;
  overflow: hidden;
}

.skeleton-header {
  height: 60px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-title {
  height: 40px;
  width: 60%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 20px;
}

.skeleton-subtitle {
  height: 20px;
  width: 80%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 4px;
  margin-bottom: 40px;
}

.skeleton-search {
  height: 50px;
  width: 80%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
  margin-bottom: 30px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 0 10%;
}

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.skeleton-card .skeleton-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-card .skeleton-text {
  height: 16px;
  width: 80%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 4px;
  margin-top: 8px;
}

.skeleton-card .skeleton-tag {
  height: 12px;
  width: 60%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 4px;
  margin-top: 6px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.skeleton-title {
  height: 36px;
  width: 60%;
  margin: 0 auto;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-subtitle {
  height: 20px;
  width: 50%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-avatar {
  border-radius: 8px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-tag {
  height: 32px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f5f5f5 50%, #e0e0e0 75%);
  animation: skeleton-shimmer 1.5s infinite linear;
}

.skeleton-header,
.skeleton-title,
.skeleton-subtitle,
.skeleton-text,
.skeleton-avatar,
.skeleton-tag {
  background-size: 800px 100%;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
}

/* 添加渐变动画背景 */
.skeleton-header,
.skeleton-title,
.skeleton-subtitle,
.skeleton-search,
.skeleton-card .skeleton-avatar,
.skeleton-card .skeleton-text,
.skeleton-card .skeleton-tag {
  background-size: 800px 100%;
  background-repeat: no-repeat;
  background-image: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 160px;
}
.image-wrapper {
  position: relative;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* 灰色背景作为占位 */
  border-radius: 8px;
}
.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.logo-image.loaded {
  opacity: 1;
}

.feature-card {
  font-family: "Inter", sans-serif;
  line-height: 1.5;
}

.footer {
  background-color: var(--footer);
  color: var(--footer-font);
}

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

.footer-section {
  flex: 1;
}

.footer-about .footer-logo {
  width: 64px; /* 固定宽度，适合移动端 */
  height: auto;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

.footer-copyright p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.NavBar {
  background: var(--logo);
  color: var(--a);
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navBar_logo {
  width: 180px;
  height: 45px;
}

.footer_logo {
  width: 160px;
  height: 50px;
}

.menuItem {
  padding: 0.25rem;
  padding-left: 15px;
  padding-right: 15px;
  border-radius: 0.5rem;
  cursor: pointer;

  a {
    font-size: 15px;
    font-weight: 800;
  }

  &:hover {
    background-color: rgba(235, 235, 235, 0.8);
    color: #3064f5;
  }
}

.navBar_menu {
  width: 30px;
  height: 30px;
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
}
/* 添加菜单样式 */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  transition: right 0.3s ease-in-out;
  z-index: 11;
}
.mobile-menu.open {
  right: 0;
}
.menu-content {
  padding-top: 200px; /* 确保不挡住 logo */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
/* 新增激活状态样式 */
.active-menu-item {
  background-color: black;
  color: white;
  padding: 5px 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .navBar_logo {
    width: 140px;
    height: 40px;
  }
}
