* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  color: white;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
  font-family: "Noto Sans SC", sans-serif;
}

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

button {
  background-color: rgba(0, 0, 0, 0.7);
  border: 0px;
  padding: 12px 20px;
  border-radius: 9px;
  color: white;
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 350;
}

button:hover {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
}

button:active {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0;
}

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

#home {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  margin: 0 5%;
  padding: 25px; 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  width: 80%;
  max-width: 600px;
  display: flex;
  align-items: stretch;
}

#home .folder {
  background-color: rgba(0, 150, 255, 0.5);
  border-radius: 12px 0 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  margin: -25px 20px -25px -25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

#home .folder h1 {
  transform: rotate(-90deg);
  white-space: nowrap;
  font-family: "Astonpoliz", sans-serif;
  font-weight: normal;
  opacity: 0.85;
}

#home .main p {
  font-size: 0.9em;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 300;
}

.btn {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* 桌面端媒体查询 */
@media screen and (min-width: 678px) {
  #home {
    margin: 0 20%;
    width: 60%;
  }
  
  .btn {
    grid-template-columns: 1fr 1fr;
  }
}

/* 移动端媒体查询 */
@media screen and (max-width: 677px) {
  #home {
    max-height: 50vh;
  }

  #home .main {
    overflow-y: auto;
    padding-right: 15px;
    min-height: 0;
  }
}

.btn .email {
  --button-color-rgb: 108, 117, 125;
}
.btn .bilibili {
  --button-color-rgb: 251, 114, 153;
}
.btn .youtube {
  --button-color-rgb: 255, 0, 0;
}
.btn .facebook {
  --button-color-rgb: 24, 119, 242;
}
.btn .twitter {
  --button-color-rgb: 20, 23, 26;
}

.btn .github {
  --button-color-rgb: 51, 51, 51;
}
.btn button {
  font-size: 0.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(var(--button-color-rgb), 0.7);
}

.btn button:active {
  background-color: rgba(var(--button-color-rgb), 0.5);
}

.btn button:hover {
  box-shadow: 0 0 6px rgba(var(--button-color-rgb), 0.7);
}

footer {
  font-size: 12px;
  text-align: center;
  margin-bottom: 8px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0.5;
}