html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
  color: #fff;
  text-align: center;
  padding: 40px 16px 30px;
}

#header-container {
  max-width: 860px;
  margin: 0 auto;
}

#page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

#page-subtitle {
  font-size: 0.9rem;
  letter-spacing: 6px;
  opacity: 0.8;
  margin-bottom: 8px;
}

#page-motto {
  font-size: 0.85rem;
  opacity: 0.7;
  font-style: italic;
}

main {
  padding: 24px 16px 40px;
}

#app {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 28px 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: #2b6cb0;
  border-radius: 1px;
}

#profile-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

#photo-area {
  flex-shrink: 0;
}

#photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
}

#basic-info {
  flex: 1;
  min-width: 200px;
}

#name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 12px;
}

#info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

#info-list li {
  font-size: 0.95rem;
  color: #555;
}

.info-label {
  font-weight: 600;
  color: #1a365d;
}

#contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

#contact-list li {
  font-size: 0.9rem;
  color: #666;
}

#skills-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.skill-tag {
  display: inline-block;
  background: #ebf4ff;
  color: #2b6cb0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.skill-tag:hover {
  background: #bee3f8;
}

.skill-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

#exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exp-item {
  border-left: 3px solid #e2e8f0;
  padding-left: 18px;
  position: relative;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: #2b6cb0;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #2b6cb0;
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.exp-role {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a365d;
}

.exp-company {
  color: #4a5568;
  font-size: 0.95rem;
}

.exp-time {
  color: #a0aec0;
  font-size: 0.85rem;
  margin-left: auto;
}

.exp-detail {
  margin: 0;
  padding-left: 18px;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.8;
}

.exp-detail li {
  margin-bottom: 4px;
}

.edu-item {
  border-left: 3px solid #e2e8f0;
  padding-left: 18px;
  position: relative;
}

.edu-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: #38a169;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #38a169;
}

.edu-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.edu-major {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a365d;
}

.edu-school {
  color: #4a5568;
  font-size: 0.95rem;
}

.edu-time {
  color: #a0aec0;
  font-size: 0.85rem;
  margin-left: auto;
}

.edu-detail {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
  line-height: 1.8;
}

#eval-content {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.9;
  text-indent: 2em;
}

footer {
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.page-info {
  font-size: 0.8rem;
  color: #a0aec0;
}

.page-info a {
  color: #2b6cb0;
  text-decoration: none;
}

.page-info a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  header {
    padding: 28px 12px 20px;
  }

  #page-title {
    font-size: 1.5rem;
  }

  #app {
    gap: 14px;
  }

  .card {
    padding: 18px 16px;
  }

  #profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  #photo {
    width: 96px;
    height: 96px;
  }

  #info-list,
  #contact-list {
    justify-content: center;
  }

  .skill-item {
    flex-direction: column;
    gap: 6px;
  }

  .exp-header,
  .edu-header {
    flex-direction: column;
    gap: 4px;
  }

  .exp-time,
  .edu-time {
    margin-left: 0;
  }
}
