/* =========================================
   3. 顶部 Hero 区域 (Specific to projects.html)
   ========================================= */
.projects-hero {
  display: flex;
  justify-content: space-between;
  padding: 200px 80px 0 80px; /* 顶部留出导航栏高度 */
  gap: 20px;
}

.hero-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-title {
  color: var(--text-primary);
  font-family: 'Manrope',sans-serif;
  font-size: 64px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -4.48px;
}

.hero-subtitle {
  color: var(--text-primary);
  font-family: 'Manrope',sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.32px;
}

.hero-right {
  flex: 1;
  max-width: 500px; /* 控制右侧图片的极限宽度 */
}

.hero-right img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  background:lightgray 50% / cover no-repeat;
  box-shadow: 4px 4px 12px 0 rgba(0, 0, 0, 0.05);
}

/* =========================================
   4. 项目列表区域 (Specific to projects.html)
   ========================================= */
.projects-list-section {
  display: flex;
  flex-direction: column;
  padding: 80px 80px 60px 80px;
}

.list-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 0;
  border-bottom: 1px solid var(--text-muted); /* 微妙的分割线 */
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
}

/* 交互设计：悬浮时整体微微透明并向右轻移一点，暗示可点击 */
.list-item:hover {
  opacity: 0.6;
  transform: translateX(8px);
}

.item-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
}

.item-desc {
  flex: 2;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 400;
}

.item-meta {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
  font-weight: 300;
}

/* =========================================
   9. 响应式适配 (Tablet & Mobile) - For projects.html
   ========================================= */

@media screen and (max-width: 1024px) {
  .projects-hero {
    padding: 120px 40px 80px 40px;
    gap: 40px;
  }
  .hero-title { font-size: 64px; letter-spacing: -3.84px; }
  
  .projects-list-section { padding: 0 40px 80px 40px; }

  .item-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
  }

  .item-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .item-desc {
    flex: 2;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
  }

  .item-meta {
    flex: 1;
    font-size: 14px;
    color: var(--text-muted);
    text-align: left;
    font-weight: 300;
  }
}

@media screen and (max-width: 768px) {
  .projects-hero {
    flex-direction: column;
    padding: 120px 20px 40px 20px;
    gap: 40px;
  }
  .hero-left { width: 100%; }
  .hero-title { font-size: 48px; letter-spacing: -2.88px; }
  .hero-subtitle { font-size: 16px; }
  .hero-right { max-width: 100%; }

  .projects-list-section { padding: 0 20px 60px 20px; }
  .list-item { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0; }
  .item-main { max-width: 100%; }
  .item-title { font-size: 24px; letter-spacing: -0.96px; }
  .item-meta { text-align: left; }
}