/* =========================
   Research Interests Page — Perfect Alignment & Uniform Layout
   ========================= */

/* 页面整体 */
main.content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #fafbfc;
}

/* 网格布局 */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  width: 88%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

/* ====== 卡片主体 ====== */
.research-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px; /* ✅ 统一高度 */
}

.research-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  border-color: #c7d2fe;
}

/* ====== 图片（顶部视觉） ====== */
.research-card > p {
  margin: 0;
}
.research-card > p img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
  opacity: 0.96;
  transition: transform 0.4s ease;
  background-color: #f9fafb;
}
.research-card:hover > p img {
  transform: scale(1.02);
}

/* ====== 内容区 ====== */
.research-card section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.8rem 2rem;
  text-align: left;  /* ✅ 统一左起对齐基线 */
}

/* ====== 标题：左对齐 ====== */
.research-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 0.5rem 0;
  text-align: left;
  line-height: 1.3;
}

/* ====== 副标题（斜体） ====== */
.research-card section > p:first-of-type {
  text-align: left;  /* ✅ 左对齐 */
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
  font-style: italic;
}

/* ====== 正文文字：两端对齐 ====== */
.research-card section > p + p {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
  text-align: justify;         /* ✅ 两端对齐正文 */
  text-justify: inter-word;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

/* 保持统一高度 */
.research-card section p:last-child {
  margin-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 900px) {
  .research-grid {
    grid-template-columns: 1fr;
    width: 92%;
    padding: 1.5rem 0;
  }

  .research-card {
    min-height: auto;
  }

  .research-card > p img {
    height: 130px;
  }

  .research-card section {
    padding: 1.4rem 1.6rem;
  }
}