:root {
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.2);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --text-soft: rgba(245, 247, 255, 0.72);
  --shadow: 0 18px 40px rgba(4, 7, 28, 0.32);
}

* {
  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%);
}

a {
  color: inherit;
  text-decoration: none;
}

.category-card,
.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav-bar__menu a:hover,
.sidebar-card a:hover,
.sidebar-card li:hover {
  color: var(--text);
  cursor: pointer;
}

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: 48px;
}

.nav-bar__menu {
  margin-right: 120px;
}

.nav-bar__menu a {
  margin: 0 16px;
  font-size: 16px;
  color: var(--text-soft);
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  width: calc(100% - 120px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 22px;
}

.sidebar-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.sidebar-card a {
  display: block;
  padding: 11px 0;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-card a:last-child {
  border-bottom: none;
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  margin-top: 12px;
  color: var(--text-soft);
}

.sections-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.gross-category {
  width: 100%;
}

.gross-category h2 {
  margin-left: 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 680;
}

.gross-category p {
  margin-left: 25px;
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.65; /*很舒服，行高一般默认1.1~1.3（偏紧），字体16px时，行高一般默认为19px。行高1.5舒适，1.65很舒服*/
}

.category-grid-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.category-grid {
  position: relative;
  display: grid;
  /* 创建很多列，每列宽 250px，一行能放多少就放多少个 250px 的列进去 */
  grid-template-columns: repeat(auto-fill, 250px);
  /* 所有自动生成的行高度统一为 250px */
  grid-auto-rows: 212px;
  gap: 26px;
  justify-content: center;
  /* align-content: center; */
  margin-top: 20px;
  width: 100%;
  /* 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;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(87, 180, 255, 0.28);
  cursor: pointer;
}

.category-card h3 {
  margin: 12px 0 0 20px;
  font-weight: 500;
  font-size: 16px;
}

.category-card img {
  position: relative;
  margin-top: 12px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  /* 填满容器（可能裁剪） */
  object-fit: cover;
  /* 水平居中 + 垂直往上偏一点 */
  /* object-position: center -56px; */
  /* 使图片水平居中 */
  left: calc(50% - 50px);
}

.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: 12px 3px 0 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;
}
