a {
  text-decoration: none;
  color: inherit;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: rgba(243, 244, 251, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: url(./bg.png);
  background-attachment: fixed;
  background-size: 100% 100%;
}

header {
  width: 100%;
  height: 64px;
  background: hsla(0, 0%, 100%, .8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.user-info {
  display: inline-flex;
  align-items: center;
}

.user-info .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 1);
}

.user-info .user-name {
  /** 文本1 */
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
  color: #333;
  margin-left: 10px;
}

.top-tool {
  list-style-type: none;
  display: flex;
  padding: 0;
  margin: 0;
  color: #333;
}

.top-tool li {
  margin-right: 60px;
}

.container {
  padding: 0 112px;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  margin-top: 80px;
  padding-bottom: 80px;
}

/* 个人简介区域 */
.intro-section {
  margin-top: 60px;
  margin-bottom: 80px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-title {
  font-size: 48px;
  font-weight: 700;
  color: #1f2329;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.intro-desc {
  font-size: 20px;
  color: #646a73;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.intro-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.intro-tags .tag {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.intro-tags .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
}

/* 分类区域 */
.category-section {
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.category-section:nth-child(2) {
  animation-delay: 0.1s;
}

.category-section:nth-child(3) {
  animation-delay: 0.2s;
}

.category-section:nth-child(4) {
  animation-delay: 0.3s;
}

.category-title {
  font-size: 28px;
  font-weight: 600;
  color: #1f2329;
  margin: 0 0 30px 0;
  padding-left: 8px;
  position: relative;
}

.nav-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  justify-content: start;
}

.nav-item {
  min-height: 200px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-item:hover::before {
  opacity: 1;
}

.nav-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.nav-item:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.nav-item:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.nav-item:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.nav-item:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.nav-item:nth-child(5) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.nav-item:nth-child(6) {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  color: white;
}

.nav-item:nth-child(7) {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.nav-item:nth-child(8) {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #333;
}

.nav-item:nth-child(9) {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #333;
}

.nav-item .icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-item:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.nav-item .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  text-align: center;
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.nav-item .desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 8px;
  text-align: center;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

.footer {
  color: #8f959e;
  font-size: 12px;
  text-align: center;
  padding: 40px 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: #8f959e;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #646a73;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.beian-icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
}

.copyright {
  margin-right: 0;
}

.other-link {
  display: flex;
}

@media screen and (max-width: 768px) {
  header {
    padding: 0 24px;
  }

  .container {
    padding: 0 24px;
    margin-top: 80px;
    padding-bottom: 40px;
  }

  /* 个人简介区域 */
  .intro-section {
    margin-top: 40px;
    margin-bottom: 50px;
  }

  .intro-title {
    font-size: 32px;
  }

  .intro-desc {
    font-size: 16px;
  }

  .intro-tags {
    gap: 8px;
  }

  .intro-tags .tag {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* 分类区域 */
  .category-section {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .nav-group {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
  }

  .nav-item {
    min-height: 140px;
    border-radius: 16px;
    padding: 20px 12px;
  }

  .nav-item .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .nav-item .title {
    font-size: 13px;
  }

  .nav-item .desc {
    font-size: 11px;
    margin-top: 4px;
  }

  .footer {
    padding: 30px 24px;
    gap: 8px;
  }

  .copyright {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }
}