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

* {
  box-sizing: border-box;
}

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

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

/* Header */
header {
  text-align: center;
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: #fff;
  padding: 40px 20px 50px;
}

#header-ad {
  margin: 0 auto 30px;
  max-width: 720px;
}

#header-profile {
  margin-top: 10px;
}

#avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.5);
  object-fit: cover;
  margin-bottom: 16px;
}

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

#subtitle {
  margin: 8px 0 0;
  font-size: 1rem;
  opacity: 0.85;
  letter-spacing: 2px;
}

/* Main */
main {
  padding: 30px 20px 40px;
}

#resume-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Sidebar */
#sidebar {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main Content */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

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

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid #3498db;
  display: inline-block;
}

/* Personal Info */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.info-label {
  color: #7f8c8d;
  min-width: 60px;
  flex-shrink: 0;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
}

/* Education */
.education-block h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
  color: #2c3e50;
}

.education-block p {
  margin: 4px 0;
  color: #555;
  font-size: 0.9rem;
}

#edu-courses h4 {
  margin: 14px 0 6px;
  font-size: 0.9rem;
  color: #3498db;
}

#edu-courses p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

/* Awards */
#award-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#award-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: #555;
  border-bottom: 1px dashed #eee;
}

#award-list li:last-child {
  border-bottom: none;
}

#award-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #3498db;
  font-size: 0.7rem;
  top: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e6ed;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

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

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.timeline-header span {
  font-size: 0.85rem;
  color: #888;
}

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

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

#exp-results {
  margin-top: 16px;
  padding: 14px 18px;
  background: #f0f7ff;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

#exp-results h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #3498db;
}

#exp-results ul {
  margin: 0;
  padding-left: 18px;
}

#exp-results li {
  font-size: 0.88rem;
  color: #2c3e50;
}

/* Self Evaluation */
#eval-text {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  text-indent: 2em;
}

/* Exam Info */
#exam-detail {
  font-size: 0.95rem;
}

#exam-detail p {
  margin: 8px 0;
  color: #555;
}

.score-highlight {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e74c3c;
  margin: 0 4px;
}

.score-grid {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.score-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subject-name {
  font-size: 0.85rem;
  color: #888;
}

.subject-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3498db;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 20px;
  background: #2c3e50;
}

footer .page-info {
  color: #aaa;
  font-size: 0.85rem;
}

footer a {
  color: #3498db;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 860px) {
  #resume-container {
    flex-direction: column;
  }

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

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

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

@media (max-width: 480px) {
  header {
    padding: 24px 16px 32px;
  }

  main {
    padding: 20px 12px 30px;
  }

  .card {
    padding: 20px 16px;
  }

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

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

  .timeline-header {
    flex-direction: column;
    gap: 2px;
  }

  .score-grid {
    flex-direction: column;
  }

  .score-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }
}
