
html,
body {
  overflow: scroll; /* 保持滚动功能 */
  scrollbar-width: none; /* 适用于Firefox浏览器，隐藏滚动条 */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* 适用于Webkit内核浏览器（如Chrome、Safari），隐藏滚动条 */
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#content {
  position: relative;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  font-size: 4.5em;
  margin-bottom: 0.5em;
  font-weight: 400;
  text-align: center;
}

p {
  font-size: 1.2em;
  line-height: 1.6;
}

/* RESET STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --height: 80vh;
  --half-height: calc(var(--height) / 2);
  --transition: all 1s;
}

* {
  box-sizing: border-box;
}

body {
  margin: 20px 0;
  padding: 0 15px;
  background: #cae9ff;
}

#interactiveText {
  font-family: "AaFengKuangYuanShiRen";
}

a {
  color: inherit;
  text-decoration: none; /* 移除下划线 */
}

.notification {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  font-size: 0.85em;
  background: #e9c46a;
}

/* MAIN STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.grid,
.sub-grid,
.grid .card {
  transition: var(--transition);
}

.grid {
  max-width: 1600px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.card {
  cursor: pointer;

  figure,
  img {
    width: 100%;
    height: 100%;
  }

  figure {
    position: relative;
    margin: 0;
    overflow: hidden;
  }

  img {
    object-fit: cover;
    background: #333;
  }

  figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.5em;
    line-height: 1.3;
    text-align: center;
    padding: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.5);

    span {
      display: block;
      font-size: 0.75em;
    }
  }
}

@media (max-width: 899px) {
  .card {
    height: var(--half-height);
  }
}

@media (min-width: 900px) {
  .grid,
  .sub-grid {
    display: grid;
  }

  .grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .sub-grid {
    grid-template-rows: var(--half-height) var(--half-height);
  }

  .sub-grid-1 {
    grid-template-columns: 1fr 1fr auto;
  }

  .sub-grid-1 .card:last-child {
    grid-column: 1/-1;
  }

  /*.sub-grid-2 {
    grid-template-columns: 1fr;
  }*/

  .grid > .card {
    height: var(--height);
  }
}

@media (hover: hover) and (min-width: 900px) {
  .notification {
    display: block;
  }

  .grid:has(.sub-grid-1 .card:first-of-type:hover) .sub-grid-1 {
    grid-template-columns: 1fr 0fr auto;
  }

  .grid:has(.sub-grid-1 .card:nth-of-type(2):hover) .sub-grid-1 {
    grid-template-columns: 0fr 1fr auto;
  }

  .grid:has(.sub-grid-1 .card:last-of-type:hover) .sub-grid-1 {
    grid-template-rows: 0 var(--height);
  }

  .grid:has(> .card:hover) {
    grid-template-columns: 0fr 1fr 0fr;
  }

  .grid:has(.sub-grid-2 .card:first-of-type:hover) .sub-grid-2 {
    grid-template-rows: var(--height) 0;
  }

  .grid:has(.sub-grid-2 .card:last-of-type:hover) .sub-grid-2 {
    grid-template-rows: 0 var(--height);
  }

  .card {
    filter: grayscale(1);

    figcaption {
      opacity: 0;
    }

    &:hover {
      filter: grayscale(0);

      figcaption {
        opacity: 1;
        transition: opacity 0.5s 0.5s;
      }
    }
  }
}

/* FOOTER STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-footer {
  position: fixed;
  right: 0;
  bottom: 50px;
  display: flex;
  align-items: center;
  padding: 5px;
  font-size: 0.9em;
  background: white;
}

.page-footer a {
  display: flex;
  margin-left: 4px;
}

.guanyuwomen {
  border-top: 1px solid lightblue;
  height: 20px;
  text-align: center;
}

#one {
  position: absolute;
  top: 25%;
  left: 25%;
  height: 50%;
  width: 50%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 0, 0, 0);
  transform: scale(1);
  animation: pulse 5.11s infinite, rotationA 5.11s infinite;
}

#two {
  position: absolute;
  top: 25%;
  left: 25%;
  height: 50%;
  width: 50%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 0, 255, 0.1);
  transform: scale(1);
  animation: pulse 10.213s infinite, rotationA 10.213s infinite;
}

#three {
  position: absolute;
  top: 25%;
  left: 25%;
  height: 50%;
  width: 50%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 255, 0, 0.1);
  transform: scale(1);

  animation: rotationA 9.125s infinite, pulse 9.125s infinite;
}

#four {
  position: absolute;
  top: 25%;
  left: 25%;
  height: 50%;
  width: 50%;
  border-style: solid;
  border-width: 5px;
  background: rgba(255, 0, 0, 0.1);

  animation: pulse 13s infinite;
  animation: rotationA 15s infinite, pusle 15s infinite;
}

#five {
  position: absolute;

  height: 50%;
  width: 100%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 0, 0, 0);
  transform: scale(1);
  animation: pulse 5.231s infinite, rotationA 5.231s infinite;
}

#six {
  position: absolute;

  height: 25%;
  width: 100%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 0, 255, 0.1);
  transform: scale(1);
  animation: pulse 10s infinite, rotationA 10s infinite;
}

#seven {
  position: absolute;
  height: 25%;
  width: 100%;
  border-style: solid;
  border-width: 5px;
  background: rgba(0, 255, 0, 0.1);
  transform: scale(1);
  animation: rotationA 9s infinite, pulse 9s infinite;
}

#eight {
  position: absolute;
  height: 25%;
  width: 100%;
  border-style: solid;
  border-width: 5px;
  background: rgba(255, 0, 0, 0.1);
  animation: rotationA 15s infinite, pusle 15s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(2);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(2);
  }
}

@keyframes rotationA {
  50% {
    transform: rotate(180deg);
  }
}

.interactive-text {
  color: white;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  top: 50%;
}
.interactive-text:hover {
  color: red;
  transform: scale(1.1);
}
.hidden-content {
  display: none;
  margin-top: 10px;
}
