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

body {
  background-color: #eceff1;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #37474f;
  line-height: 1.8;
}

/* Header */
#header {
  background: linear-gradient(135deg, #546e7a 0%, #78909c 50%, #90a4ae 100%);
  color: #ffffff;
  text-align: center;
  padding: 50px 20px 40px;
}

#resume-title-en {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 8px;
  margin: 0;
}

#resume-title-cn {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 12px;
  margin: 8px 0 20px;
  opacity: 0.85;
}

#header-name {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 8px;
  margin-top: 24px;
}

#header-job {
  font-size: 16px;
  margin-top: 12px;
  opacity: 0.9;
  letter-spacing: 2px;
}

/* Main */
#main {
  padding: 24px 16px 40px;
}

#app {
  max-width: 800px;
  margin: 0 auto;
}

/* Card */
.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.card-center {
  text-align: center;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #455a64;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b0bec5;
  letter-spacing: 4px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #546e7a;
}

/* Basic Info */
#section-basic .basic-layout {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

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

#avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #cfd8dc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#avatar-placeholder svg {
  width: 100%;
  height: 100%;
}

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

.info-row {
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.info-label {
  color: #78909c;
  font-weight: 500;
}

.info-value {
  color: #37474f;
}

#job-intent-wrap {
  margin-top: 18px;
  text-align: center;
}

#job-intent-tag {
  display: inline-block;
  background: #546e7a;
  color: #fff;
  padding: 6px 28px;
  border-radius: 20px;
  font-size: 15px;
  letter-spacing: 2px;
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
  border-left: 2px solid #cfd8dc;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #78909c;
}

.timeline-period {
  font-size: 13px;
  color: #90a4ae;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 16px;
  font-weight: 600;
  color: #37474f;
  margin-bottom: 6px;
}

.timeline-details {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #546e7a;
  line-height: 1.9;
}

.timeline-details li {
  margin-bottom: 2px;
}

/* Education */
.edu-school {
  font-size: 16px;
  font-weight: 600;
  color: #37474f;
  margin-bottom: 2px;
}

.edu-major {
  font-size: 14px;
  color: #607d8b;
  margin-bottom: 10px;
}

/* Tags */
.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-label {
  font-size: 14px;
  color: #78909c;
  margin-right: 4px;
  align-self: center;
}

.tag {
  display: inline-block;
  background: #eceff1;
  color: #455a64;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid #cfd8dc;
}

.tag-skill {
  background: #546e7a;
  color: #fff;
  border-color: #546e7a;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 20px;
}

.tag-hobby {
  background: #eceff1;
  color: #546e7a;
  border-color: #b0bec5;
  font-size: 14px;
  padding: 6px 20px;
  border-radius: 16px;
}

/* Self Evaluation */
#self-eval-text {
  font-size: 15px;
  color: #546e7a;
  line-height: 2;
  margin: 0;
  text-indent: 2em;
}

/* Letter */
#letter-content {
  font-size: 14px;
  color: #455a64;
  line-height: 2;
}

#letter-content p {
  margin: 0 0 6px;
  text-indent: 2em;
}

#letter-content p:first-child,
#letter-content p:nth-child(13),
#letter-content p:nth-child(14) {
  text-indent: 0;
}

.letter-sign {
  text-align: right;
  font-weight: 600;
  font-size: 16px;
  margin-top: 16px;
  text-indent: 0;
}

/* Thanks */
#thanks-text {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 6px;
  color: #546e7a;
}

#thanks-sub {
  font-size: 14px;
  color: #90a4ae;
  margin-top: 8px;
  letter-spacing: 4px;
}

/* Footer */
#footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: #90a4ae;
}

#footer a {
  color: #607d8b;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  #header {
    padding: 36px 16px 28px;
  }

  #resume-title-en {
    font-size: 32px;
    letter-spacing: 6px;
  }

  #header-name {
    font-size: 28px;
  }

  .card {
    padding: 20px 20px;
  }

  .section-title {
    font-size: 18px;
    letter-spacing: 2px;
  }

  #app {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #header {
    padding: 28px 12px 22px;
  }

  #resume-title-en {
    font-size: 26px;
    letter-spacing: 4px;
  }

  #resume-title-cn {
    font-size: 16px;
    letter-spacing: 8px;
  }

  #header-name {
    font-size: 24px;
    letter-spacing: 4px;
  }

  #section-basic .basic-layout {
    flex-direction: column;
    text-align: center;
  }

  #basic-info {
    text-align: left;
  }

  .card {
    padding: 16px 14px;
    margin-bottom: 12px;
  }

  .timeline-item {
    padding-left: 16px;
  }

  #thanks-text {
    font-size: 24px;
  }

  #letter-content {
    font-size: 13px;
  }
}
