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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f4f8;
  color: #2d3748;
  line-height: 1.6;
}

div#app {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Header */
#header-banner {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 50%, #3182ce 100%);
  color: #fff;
  text-align: center;
  padding: 36px 20px 28px;
}

#resume-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  margin: 0 0 6px 0;
}

#tagline {
  font-size: 14px;
  opacity: 0.85;
  margin: 0;
  letter-spacing: 2px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 24px 28px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #3182ce;
  letter-spacing: 2px;
}

/* Profile Section */
#profile-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

#avatar-box {
  flex-shrink: 0;
}

#avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3182ce;
  box-shadow: 0 4px 12px rgba(49,130,206,0.2);
}

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

#name {
  font-size: 26px;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 12px 0;
}

#info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.info-item {
  font-size: 14px;
  color: #4a5568;
  background: #edf2f7;
  padding: 4px 12px;
  border-radius: 20px;
}

#contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.contact-item {
  font-size: 13px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Summary */
#summary-text {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
  text-indent: 2em;
}

/* Timeline */
#timeline {
  position: relative;
  padding-left: 28px;
}

#timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 20px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3182ce;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #3182ce;
}

.timeline-content {
  background: #f7fafc;
  border-radius: 8px;
  padding: 14px 18px;
  border-left: 3px solid #3182ce;
}

.timeline-date {
  font-size: 12px;
  color: #718096;
  font-weight: 600;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a365d;
  margin: 4px 0 2px 0;
}

.timeline-company {
  font-size: 14px;
  color: #3182ce;
  margin: 0 0 6px 0;
  font-weight: 500;
}

.timeline-desc {
  font-size: 13px;
  color: #4a5568;
  margin: 0;
  line-height: 1.7;
}

/* Education */
#edu-block {
  background: #f7fafc;
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 3px solid #3182ce;
}

#edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#edu-school {
  font-size: 18px;
  font-weight: 700;
  color: #1a365d;
  margin: 0;
}

#edu-date {
  font-size: 13px;
  color: #718096;
  font-weight: 600;
}

#edu-major {
  font-size: 15px;
  color: #3182ce;
  font-weight: 600;
  margin: 8px 0 4px 0;
}

#edu-score {
  font-size: 14px;
  color: #4a5568;
  margin: 0 0 6px 0;
}

#edu-courses {
  font-size: 13px;
  color: #718096;
  margin: 0;
  line-height: 1.6;
}

/* Skills */
#skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-category {
  background: #f7fafc;
  border-radius: 8px;
  padding: 14px 18px;
}

.skill-cat-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 8px 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 13px;
  color: #2b6cb0;
  background: #ebf4ff;
  border: 1px solid #bee3f8;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: #3182ce;
  color: #fff;
  border-color: #3182ce;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 16px;
}

.page-info {
  font-size: 12px;
  color: #a0aec0;
}

.page-info a {
  color: #3182ce;
  text-decoration: none;
}

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

/* Ad Slot */
.ad-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  #profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #avatar {
    width: 100px;
    height: 100px;
  }

  #info-grid {
    justify-content: center;
  }

  #contact-grid {
    justify-content: center;
  }

  #resume-title {
    font-size: 22px;
  }

  .card {
    padding: 18px 16px;
  }

  #timeline {
    padding-left: 22px;
  }

  .timeline-content {
    padding: 12px 14px;
  }
}
