html {
  scroll-behavior: smooth
}

body {
  position: relative;
  color: #120f2a;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://q.qlogo.cn/g?b=qq&nk=3135153066&s=100');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #ffffff;
  background-attachment: fixed;
  filter: blur(8px);
  z-index: -1;
  /* 将伪元素置于内容下方 */
}

h1 {
  text-align: center;
  background-color: #ffffff;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #bfdff5;
}

nav a {
  color: #000000;
  padding: 4px 20px;
  text-decoration: none;
  text-align: center;
}

nav a:hover {
  background-color: #517ada;
  color: #ffffff;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

p {
  text-indent: 20px;
}

div.img {
  border: 1px solid #ccc;
}

div.desc {
  padding: 20px;
  text-align: center;
}

.responsive {
  padding: 4 6px;
  float: left;
  width: 33.3%;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  /* 项目之间的间隔 */
  padding: 0;
  list-style-type: none;
  margin: 0;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.skills li {
  list-style-type: none;
  background-color: #FFFFFFCC;
  color: #000000;
  ;
  box-shadow: inset 0 0px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.1s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
  /* 减少内边距以缩小间隙 */
}

.skills li:hover {
  background-color: #B8EEF5F0;
}

.skills li iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: none;
  margin-bottom: 10px;
  /* 减少iframe与文本之间的外边距 */
}

iframe {
  width: 100%;
}