
/* === Index Page Only Styles === */

.index-page {
  background: linear-gradient(135deg, rgb(0, 0, 251), rgb(0, 0, 255));
  color: rgb(1, 4, 75);
  font-family: 'Inter', sans-serif;
  margin: 0;
  box-sizing: border-box;
  cursor: url('images/mouse.png'), auto;
}



.index-page h1, .index-page h2, .index-page h3, .index-page h4, .index-page h5, .index-page h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: normal;
}

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

.index-page nav {
  background-color: rgba(1, 4, 75, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.index-page nav h1 {
  font-size: 1.5rem;
  color: rgb(249, 0, 130);
}

.index-page nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.index-page nav ul li a {
  color: rgb(249, 0, 130);
  text-decoration: none;
  font-weight: bold;
}

.index-page nav ul li a:hover {
  color: #ffe600;
}

.index-page .main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
  position: relative;
}

.index-page .left {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  padding: 2rem;
  animation: fadeIn 1.5s ease-in;
}

.index-page .left h2 {
  font-size: 3.5rem;
  margin: 0;
  background: rgb(249, 0, 130);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.index-page .typewriter {
  font-size: 1.6rem;
  margin-top: 1rem;
  white-space: nowrap;
  border-right: 3px solid rgb(249, 0, 130);
  width: 0;
  overflow: hidden;
  animation: typing 3s steps(30, end) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

.index-page .socials {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.index-page .socials a {
  color: rgb(249, 0, 130);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.index-page .socials a:hover {
  color: #ffe600;
  transform: translateX(5px);
}

.index-page .right {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.index-page .time-box {
  background: rgba(1, 4, 75, 0.6);
  border-radius: 25px;
  padding: 3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 1.9rem;
  backdrop-filter: blur(10px);
  color: rgb(249, 0, 130);
}

.index-page footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.1);
  color: rgb(1, 4, 75);
}

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

@media (max-width: 768px) {
  .index-page .main {
    flex-direction: column;
    text-align: center;
  }
  .index-page .left, .index-page .right {
    max-width: 100%;
  }
  .index-page .socials {
    align-items: center;
  }
}

/* === Custom Cursor Settings === */

/* 默认状态：蓝色箭头 */
body, 
.index-page,
.about-page,
.projects-page,
.other-page {
  cursor: url('images/mouse.png') 0 0, auto;
}

/* hover & active 状态：蓝色卡通小手 */
a:hover, a:active,
button:hover, button:active,
[role="button"]:hover, [role="button"]:active,
.index-page a:hover, .index-page a:active,
.about-page a:hover, .about-page a:active,
.projects-page a:hover, .projects-page a:active,
.other-page a:hover, .other-page a:active {
  cursor: url('images/click.png') 12 2, pointer;
}
