/* === Font Settings === */
body {
  font-family: 'Inter', sans-serif;
}

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



.index-page {
  background: linear-gradient(135deg, rgb(0,0,251), rgb(0,0,255));
  color: rgb(1 4 75)
}

.about-page {
  background: linear-gradient(135deg, #CE9FFC, #e7c2fb);
    cursor: url('images/mouse.png'), auto;

}

.projects-page {
  background: linear-gradient(135deg, #90F7EC, #32CCBC);
    cursor: url('images/mouse.png'), auto;
}

.other-page {
  background: linear-gradient(135deg, #f6d365, #fda085);
    cursor: url('images/mouse.png'), auto;
}

* { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #FEB692, #EA5455); /* 更柔和的背景 */
      color: #fff;
    }

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

    nav {
      background-color: rgba(0,0,0,0.5);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    nav h1 {
      font-size: 1.5rem;
    }

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

    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      color: #ffe600;
    }

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

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

    .left h2 {
      font-size: 3.5rem;
      margin: 0;
      background: rgb(249 0 130); /* 更柔和的颜色 */
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .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; }
    }

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

    .socials a {
      color: white;
      text-decoration: none;
      font-size: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: transform 0.3s;
    }

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

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

    .time-box {
      background: rgba(255, 255, 255, 0.15);
      border-radius: 25px;
      padding: 3rem;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
      text-align: center;
      font-size: 1.6rem;
      backdrop-filter: blur(10px);
    }

    footer {
      text-align: center;
      padding: 2rem;
      background: rgba(0,0,0,0.3);
      color: #fff;
    }

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

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

/* === Separator === */

body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg,  #CE9FFC, #e7c2fb);
      color: #000;
    }

    nav {
      background-color: rgba(249 0 130);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    nav h1 {
      font-size: 1.5rem;
      color: white;
    }

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

    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      color: #ffe600;
    }

    .content {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding: 4rem 2rem;
      gap: 3rem;
    }

    .left-panel {
      flex: 1;
      min-width: 300px;
      max-width: 400px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 2rem;
    }

    .profile-img {
      width: 220px;
      height: 220px;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

    .about-text {
      background: rgba(255,255,255,0.15);
      padding: 1.5rem;
      border-radius: 1rem;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      text-align: center;
    }

    .about-text h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #000;
    }

    .about-text p {
      font-size: 1.1rem;
      line-height: 1.6;
    }

    .right-panel {
      flex: 2;
      min-width: 300px;
      max-width: 600px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 2rem;
    }

    .card {
      background: rgba(255, 255, 255, 0.15);
      padding: 1.2rem;
      border-radius: 1rem;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      animation: fadeIn 0.6s ease;
      line-height: 1.6;
      min-height: 140px;
      transition: all 0.3s ease;
      color: #000;
    }

    .card h3 {
      margin-bottom: 1rem;
      color: #000;
    }

    .education-card {
      background: rgba(255, 255, 255, 0.2);
      padding: 0.8rem 1rem;
      margin-bottom: 1rem;
      border-radius: 0.8rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      color: #000;
    }

    .education-card:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.03);
      box-shadow: 0 6px 15px rgba(255,255,255,0.3);
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }

    .skill-tags span {
      background-color: rgba(255,255,255,0.2);
      padding: 0.4rem 1rem;
      border-radius: 999px;
      font-size: 0.95rem;
      font-weight: bold;
      transition: all 0.3s ease;
      color: #000;
    }

    .skill-tags span:hover {
      background-color: #ffe600;
      color: #222;
      transform: scale(1.1);
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .card ul {
      padding-left: 1.2rem;
    }

    .card ul li {
      transition: all 0.3s ease;
      position: relative;
      color: #000;
      font-size: 1.05rem;
    }

    .card ul li:hover {
      color: #ffe600;
      animation: bounce 0.6s;
    }

    @keyframes bounce {
      0%   { transform: translateY(0); }
      30%  { transform: translateY(-8px); }
      50%  { transform: translateY(4px); }
      70%  { transform: translateY(-4px); }
      100% { transform: translateY(0); }
    }

    footer {
      text-align: center;
      padding: 2rem;
      background: rgba(255,255,255,0.3);
      color: #000;
      font-size: 0.95rem;
    }

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

/* === Separator === */

body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #90F7EC, #32CCBC);
      color: #000; /* 全局字体改为黑色 */
    }

    nav {
      background-color: rgba(255,255,255,0.3);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    nav h1 {
      font-size: 1.5rem;
      color: white;
    }

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

    nav ul li a {
      color: white;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      color: #ffe600;
    }

    .content {
      padding: 4rem 2rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .project-card {
      background: rgba(255, 255, 255, 0.15);
      padding: 2rem;
      border-radius: 1rem;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      transition: all 0.3s ease;
      color: #000;
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    }

    .project-card h3 {
      margin-top: 0;
      color: #000;
    }

    .project-card p {
      font-size: 1rem;
      margin: 1rem 0;
      color: #000;
    }

    .project-card a {
      display: inline-block;
      margin-top: 1rem;
      text-decoration: none;
      background: #ffe600;
      color: #222;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      font-weight: bold;
      transition: all 0.3s ease;
    }

    .project-card a:hover {
      background: #fff;
      transform: scale(1.05);
    }

    footer {
      text-align: center;
      padding: 2rem;
      background: rgba(255,255,255,0.3);
      color: #000;
    }

/* === Separator === */

body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #f6d365, #fda085);
      color: #000; /* 黑色字体 */
      position: relative;
    }

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

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

    nav h1 {
      font-size: 1.5rem;
      color: #000;
    }

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

    nav ul li a {
      color: #000;
      text-decoration: none;
      font-weight: bold;
    }

    nav ul li a:hover {
      color: #ffe600;
    }

    .container {
      padding: 4rem 2rem;
      max-width: 1200px;
      margin: auto;
      display: flex;
      flex-direction: column;
      gap: 4rem;
    }

    .section {
      background: rgba(255,255,255,0.15);
      border-radius: 1rem;
      padding: 2rem;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .section h2 {
      margin-top: 0;
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #111;
    }

    .awards ul {
      padding-left: 1.2rem;
    }

    .awards li {
      margin-bottom: 1rem;
      font-size: 1.1rem; /* 增大字体 */
    }

    .internships {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
    }

    .internship-card {
      background: rgba(255,255,255,0.2);
      border-radius: 1rem;
      padding: 1.5rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      color: #000;
      font-size: 1.05rem; /* 增大字体 */
      line-height: 1.6;
    }

    .internship-card:hover {
      transform: scale(1.03);
      background: rgba(255,255,255,0.3);
    }

    .internship-card h3 {
      margin: 0 0 0.5rem;
      color: #000;
    }

    .internship-card .position {
      font-style: italic;
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }

    footer {
      text-align: center;
      padding: 2rem;
      background: rgba(0,0,0,0.1);
      color: #000;
      font-size: 0.95rem;
    }

/* === Page Load Fade Animation === */
.fade-in {
  animation: fadeInPage 0.8s ease-in-out both;
}

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

/* === Project Tag Style === */
.tags {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #333;
  font-weight: bold;
  background: rgba(255,255,255,0.3);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  display: inline-block;
}

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;
}
