@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500&display=swap');

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  background-color: #ffffff; /* 改为纯白色背景 */
  margin: 0;
  padding: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid #ccc;
  font-size: 18px;
  background-color: #fff;
}

header .left {
  color: #aaa;
  font-weight: 400;
}

header .center {
  font-weight: 400;
  text-align: center;
  color: #111;
}

header .center span {
  font-size: 12px;
  color: #888;
}

header .right {
  display: flex;
  align-items: center;
  gap: 12px; /* 控制名字和 FigJAM 按钮之间的距离 */
}

.student-name {
  font-weight: 400;
  font-size: 0.95rem;
  color: #000;
}

.figjam-link {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #007aff;
  text-decoration: none;
  border: 1px solid #007aff;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.figjam-link:hover {
  background-color: #007aff;
  color: #fff;
}

/* Main content area */
main {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  background-color: #fff;
}

/* Section titles */
.project-title-main {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #666;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 10px 0;
}

/* Descriptive paragraphs */
p {
  font-size: 1rem;
  color: #555;
  margin: 0 0 10px 0;
}

/* Editable section block */
.editor {
  width: 100%;
  min-height: 150px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  overflow-y: auto;
  margin-bottom: 30px;
}

.editor:focus {
  border-color: #111;
  outline: none;
}

.editor img {
  max-width: 100%;
  max-height: 300px;
  margin: 10px 0;
  display: block;
  object-fit: contain;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px;
  }

  main {
    margin: 40px auto;
    padding: 0 15px;
  }
}
