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

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

div#app {
  max-width: none;
}

#resume {
  display: flex;
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* ---- Sidebar ---- */
#sidebar {
  width: 35%;
  min-width: 280px;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 40px 30px;
  box-sizing: border-box;
}

#avatar-section {
  text-align: center;
  margin-bottom: 30px;
}

#avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.3);
}

.sidebar-block {
  margin-bottom: 28px;
}

.sidebar-title {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 14px;
}

#skill-tags, #strength-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  letter-spacing: 1px;
}

.strength-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 13px;
}

#cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cert-list li {
  font-size: 13px;
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

#cert-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #27ae60;
  font-size: 12px;
}

/* ---- Main Content ---- */
#main-content {
  flex: 1;
  padding: 40px 40px 40px 44px;
}

#name-section {
  margin-bottom: 32px;
}

#resume-name {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #2c3e50;
  letter-spacing: 4px;
}

#resume-title {
  font-size: 16px;
  color: #7f8c8d;
  margin: 0;
}

#job-target {
  color: #2980b9;
  font-weight: 600;
}

.content-block {
  margin-bottom: 30px;
}

.block-title {
  font-size: 18px;
  color: #2c3e50;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #3498db;
  letter-spacing: 2px;
}

#self-eval-text {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* Timeline */
.timeline-item {
  display: flex;
  margin-bottom: 22px;
  position: relative;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3498db;
  margin-top: 6px;
  margin-right: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-item:not(:last-child) .timeline-dot::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 5px;
  width: 2px;
  height: calc(100% + 22px);
  background: #dce4ec;
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 13px;
  color: #7f8c8d;
  display: block;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 16px;
  color: #2c3e50;
  margin: 0 0 8px 0;
}

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

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

.timeline-content ul ul {
  margin-top: 4px;
}

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

.page-info, .page-info a {
  font-size: 12px;
  color: #999;
  text-decoration: none;
}

.page-info a:hover {
  color: #3498db;
}

/* ---- Responsive ---- */
@media screen and (max-width: 768px) {
  #resume {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    padding: 30px 24px;
  }

  #main-content {
    padding: 30px 24px;
  }

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

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

/* ---- Print ---- */
@media print {
  body {
    background: #fff;
  }

  #resume {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
  }

  footer {
    display: none;
  }

  #sidebar {
    background: #2c3e50 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
