*{
  margin: 0;
  padding: 0;
}

body1 {
  background: 
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.05), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.04), transparent 50%),
    linear-gradient(
      180deg,
 #5f4c97 0%,
      #473e87 40%,
      #343476 70%,
      #20255a 100%
    );
}

body {
  background: rgba(33, 35, 68);
  font-family: "Segoe UI", Arial, sans-serif; 
}

.nav-bar {
  height: 72px;
  background: rgba(20, 18, 40, 0.6);
  backdrop-filter: blur(12px);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-bar__logo {
  margin-left: 20px;
  height: 56px;
}

.nav-bar__menu {
  margin-right: 120px;
}

.nav-bar__menu a {
  margin: 0 16px;
  font-size: 20px;
  color: #fff;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gross-category {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gross-category h2{
  position: absolute;
  left: 30px;
  top: 33px;
  color: #fff;
  font-size: 24px;
  font-weight: 680;
}

.category-grid {
  position: relative;
  display: grid;
  /* 创建很多列，每列宽 300px，一行能放多少就放多少个 300px 的列进去 */
  grid-template-columns: repeat(auto-fill, 300px);
  /* 所有自动生成的行高度统一为 250px */
  grid-auto-rows: 250px;
  gap: 26px;
  justify-content: center;
  /* align-content: center; */
  margin-top: 34px;
  width: calc(100% - 200px);
  margin-left: 80px;
}


.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.category-card:hover {
  background: rgba(255,255,255,0.2);
  cursor: pointer;
}


.category-card h3 {
  margin: 12px 0 0 20px;
  font-weight: 500;
  font-size: 16px;
}

.category-card img {
  position: relative;
  margin-top: 20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  /* 填满容器（可能裁剪） */
  object-fit: cover;
  /* 水平居中 + 垂直往上偏一点 */
  /* object-position: center -56px; */
  /* 使图片水平居中 */
  left: calc(50% - 60px);
}

.category-card img.cat-food {
  object-position: center -5px;
}

.category-card img.cat-accessories {
  object-position: center -2px;
}

.category-card img.dog-food {
  object-position: center -10px;
}

.category-card img.dog-accessories {
  object-position: center -15px;
}

.category-card article {
  margin: 20px 20px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}



.category-card1 {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
   rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 235, 0.16) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 24px;
  color: #fff;
  box-shadow:
    0 12px 32px rgba(8, 10, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.03) 35%,
    transparent 100%
  );
  pointer-events: none;
}

