:root {
  --primary: #1a3c5e;
  --primary-light: #2d5f8a;
  --accent: #3498db;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #e8e8e8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --timeline-color: #3498db;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 32px 20px;
  text-align: center;
}

.header-content {
  max-width: 860px;
  margin: 0 auto;
}

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

#job-target {
  display: inline-block;
}

.job-target-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 6px 24px;
  font-size: 15px;
  letter-spacing: 2px;
  color: #fff;
}

main {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 16px;
}

#app {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.section-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  letter-spacing: 1px;
}

.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.profile-avatar {
  flex-shrink: 0;
}

#avatar-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
  box-shadow: 0 4px 12px rgba(26, 60, 94, 0.2);
}

.profile-info {
  flex: 1;
  min-width: 0;
}

#profile-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.info-full {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 14px;
  color: var(--text-light);
  white-space: nowrap;
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: var(--text);
}

.summary-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  text-indent: 2em;
}

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

.skills-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
  padding-bottom: 4px;
}

.timeline-period {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.timeline-company {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 2px 0;
}

.timeline-role {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-detail {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.timeline-detail li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.edu-courses {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 8px 0 0 0;
}

footer {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.page-info {
  font-size: 13px;
  color: var(--text-light);
}

.page-info a {
  color: var(--accent);
  text-decoration: none;
}

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

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

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

  main {
    margin: 16px auto;
    padding: 0 12px;
  }

  #app {
    gap: 14px;
  }

  .card {
    padding: 20px 16px;
  }

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

  .profile-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #avatar-img {
    width: 96px;
    height: 96px;
  }

  #profile-name {
    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }

  .info-item {
    justify-content: center;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
    width: 12px;
    height: 12px;
  }
}
