/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #2b2b2b;
  color: #d3d3d3;
}

a {
  text-decoration: none;
  color: #ff77aa;
  transition: color 0.2s;
}

a:hover {
  color: #ff99cc;
}

/* Header */
.site-header {
  background: #3a3a3a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.highlight-paragraph {
  margin-top: 5rem;
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.8;
  font-weight: 500;
  color: #f3f3f3;
}
.align-right {
  text-align: right;
  margin-right: 3rem;
}

.align-left {
  text-align: left;
  margin-left: 3rem;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #ff77aa;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-list li {
  display: flex;
  align-items: center; /* 垂直居中 */
  margin-top: 0.3rem; /* 调整这个值实现整体下移 */
}

.nav-list a {
  position: relative;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.5rem 1rem 0.3rem 1rem;
  transition: color 0.3s ease;
  z-index: 1;
  border-radius: 6px;
  line-height: 1.2; /* 保证高度视觉上对齐 logo */
}

.nav-list a::before {
  content: '';
  position: absolute;
  top: 55%; /* 更低一点，避免顶到字 */
  left: 0;
  width: 100%;
  height: 8px; /* 更矮，贴近底部 */
  background-color: #ff77aa;
  border-radius: 8px;
  z-index: -1;
  transition: height 0.3s ease, top 0.3s ease;
}

.nav-list a:hover::before {
  top: 0;
  height: 100%;
}

.nav-list a:hover {
  color: #2b2b2b;
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #2f2f2f;
}

.hero-section h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  color: #ffffff;
}

.subtitle {
  color: #dddddd;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.bio {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
  padding: 0 1rem;
  font-size: 1rem;
  color: #cccccc;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ff77aa;
  color: #ffffff;
  border-radius: 4px;
  transition: background 0.3s;
  font-weight: bold;
}

.cta-button:hover {
  background: #ff99cc;
}

/* Info Sections (About / Education) */
.info-section {
  padding: 3rem 2rem;
  background-color: #1e1e1e;
  text-align: center;
}

.section-heading {
  font-size: 1.75rem;
  margin-bottom: 1.2rem;
  color: #ff99cc;
}

.info-paragraph {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  color: #e0e0e0;
}
.info-headparagraph {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Projects Section */
.projects-overview {
  padding: 2rem;
  text-align: center;
}

.projects-overview h2 {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #3b3b3b;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.2s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
}

.project-card:hover {
  transform: translateY(-5px);
  background: #4a4a4a;
}

.project-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  flex-shrink: 0;
}

.project-card h3,
.project-card p {
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
}

.project-card h3 {
  color: #ff99cc;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.project-card p {
  color: #bbbbbb;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #3a3a3a;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #bbbbbb;
}
