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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: #f0f4f8;
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  padding: 48px 20px 36px;
}

#header-inner {
  max-width: 960px;
  margin: 0 auto;
}

#name-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 2px;
}

#job-title {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 300;
}

#app {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
  align-items: flex-start;
}

#sidebar {
  flex: 0 0 280px;
  position: sticky;
  top: 20px;
}

#main-content {
  flex: 1;
  min-width: 0;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

#profile-card {
  background: linear-gradient(180deg, #1e3a5f 0%, #1a3a6b 100%);
  color: #fff;
  text-align: center;
  padding: 36px 20px;
}

#avatar-area {
  margin-bottom: 16px;
}

#avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.4);
  display: block;
}

#sidebar-name {
  margin: 0 0 20px;
  font-size: 1.4rem;
  font-weight: 600;
}

#contact-list {
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  flex: 0 0 24px;
  text-align: center;
  font-size: 1rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #2563eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: #2563eb;
  border-radius: 3px;
}

#education-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.edu-date {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
  white-space: nowrap;
}

.edu-info h4 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: #333;
}

.timeline-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 6px;
  position: relative;
}

#cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-tag {
  display: inline-block;
  padding: 6px 14px;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #dbeafe;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
}

.timeline-content h4 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
  color: #1e3a5f;
}

.timeline-content ul {
  margin: 0;
  padding-left: 18px;
}

.timeline-content li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

.eval-block {
  margin-bottom: 18px;
}

.eval-block:last-child {
  margin-bottom: 0;
}

.eval-block h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #2563eb;
  font-weight: 600;
}

.eval-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
}

footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: #999;
}

footer a {
  color: #2563eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #app {
    flex-direction: column;
    margin: 20px auto;
    padding: 0 16px;
  }

  #sidebar {
    flex: none;
    position: static;
    width: 100%;
  }

  #profile-card {
    border-radius: 12px;
  }

  #name-title {
    font-size: 1.8rem;
  }

  .card {
    padding: 20px;
  }

  #contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }

  .contact-item {
    border-bottom: none;
  }
}
