header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}



body {
  margin: 0;
  background-color: black;
  background-image: url("/website/resource/index/background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  font-family: Arial, sans-serif;
  line-height: 1.5;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-container {
  width: min(90%, 70rem);
  margin: 0 auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.page-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

@media (max-width: 768px) {
  .page-container {
    width: 90%;
    /* 小屏幕时留10%的边 */
  }
}

/*元素——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/
.hero-icon {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: visible;
}

.hero-icon::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.hero-img,
.hero-img-2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(70rem, 100%);
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.hero-img {
  z-index: 3;
  transform: translate(-50%, -50%) scale(1.5);
}

.hero-img-2 {
  z-index: 4;
  transform: translate(-50%, -50%) scale(1);
}


.hero-video {
  position: absolute;
  /* 设置子容器为定位参考 */
  transform: scale(1.28) translate(-0.5%, 23%);
  z-index: 1;
  overflow: hidden;
}

/* 元素——————————worklist */
.works {
  width: 100%;
  margin: 0 auto;
  /* 自动左右居中 */
  padding: 0 1rem;
  box-sizing: border-box;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.work-list a {
  display: block;
  text-decoration: none;
}

.work-thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
}

.work-thumb img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
}

.work-list p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0.5rem 0 1rem;
  text-align: center;
}


@media (max-width: 768px) {
  .work-list a { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 480px) {
  .work-list a { flex: 0 0 calc(100% - 1rem); }
}



/* 元素——————————导航栏 */
.header-nav {
  display: flex;
  gap: 2rem; /* 两个链接之间留点间距 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中对齐 */
  margin-top: 1rem; 
}

.header-nav h2 {
  margin: 0;
}

/*字体——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/
html {
  font-size: 100%;
}

h1 {
  font-family: Arial, sans-serif;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.6rem);
  text-align: center;
  color: white;
}

h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  text-align: center;
  color: white;
}

h3 {
  font-family: Verdana, sans-serif;
  font-size: 1rem;
  text-align: center;
  color: white;
}

/*超链接——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————*/
a {
  text-decoration: none;
  color: rgb(255, 255, 255); /* 保持和正文文字一样的颜色 */
}

/* 保证点过的链接也不会变下划线 */
a:visited {
  text-decoration: none;
  color: rgb(255, 255, 255); /* 防止变成紫色 */
}