/* === FONTS === */
/* === Generated by Google Fonts === */
.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: "Ubuntu", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.ubuntu-mono-regular {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-mono-bold {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-mono-regular-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-mono-bold-italic {
  font-family: "Ubuntu Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

.jetbrains-mono-regular {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.jetbrains-mono-bold {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.jetbrains-mono-regular-italic {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.jetbrains-mono-bold-italic {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-style: italic;
}

.google-sans-regular {
  font-family: "Google Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.google-sans-medium {
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.google-sans-bold {
  font-family: "Google Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.google-sans-regular-italic {
  font-family: "Google Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.google-sans-medium-italic {
  font-family: "Google Sans", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.google-sans-bold-italic {
  font-family: "Google Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}





* {
  margin: 0rem;
  padding: 0;
  box-sizing: border-box;
}

nav:hover {
  transform: translate3d(0, 0, 0);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
}

.navlink:hover {
  color: #93c5fd;
  transform: translate3d(-2px, -2px, -2px);
}

#root {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e5e7eb;
}

body {
  background-color: #111827;
  color: #e5e7eb;
  margin: 0;
  margin-left: 0.5rem;
}

.middle {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1120, #111827);

  margin-left: -1rem;
}

#grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 60px;
  border-radius: 16px;
  
  /* 关键：虚化背景 */
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(12px);   /* Safari 支持 */
  
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content h1 {
  font-size: 3.2rem;
  margin-bottom: 12px;
  color: #f8fafc;
}

.header-content p {
  font-size: 1.3rem;
  color: #cbd5e1;
}

.content {
  margin: 5rem;
  background-color: #111827;
  color: #e2e8f0;
}

.content p {
  margin-top: 1rem;
  font-size: larger;
}

.content h1 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

button {
  background-color: #4f46e5;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: medium;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

button:hover {
  background-color: #4338ca;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: #8ab4f8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

placeholder {
  display: block;
  height: 1rem;
}

.contact-button {
  width: 30rem;
  align-content: center;
}

.project-card-inline {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  height: 14rem;
  margin-bottom: 2rem;
  margin-right: 3rem;
  background-color: #1f2937;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #e5e7eb;
}

.project-card-inline:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.project-card {
  display: block;
  width: 100%;
  max-width: 800px;
  padding: 1.5rem;
  height: 10rem;
  margin-bottom: 2rem;
  margin-right: 3rem;
  background-color: #1f2937;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #e5e7eb;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  display: block;
  padding: 1.5rem;
  background-color: #1f2937;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #e5e7eb;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}