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

/* ========== 通用变量 ========== */
:root {
  --primary: #2c7a8c;
  --primary-light: #e8f4f7;
  --text: #333;
  --text-light: #666;
  --bg: #f5f7fa;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 12px;
  --gap: 24px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ========== Header ========== */
#header-ad {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#resume-header {
  background: linear-gradient(135deg, #1a5c6e 0%, #2c7a8c 50%, #3d9db5 100%);
  color: var(--white);
  padding: 48px var(--gap);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

#header-photo {
  flex-shrink: 0;
}

#photo-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.4);
  object-fit: cover;
  display: block;
}

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

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

#job-target {
  font-size: 1.05rem;
  margin: 0;
  opacity: 0.9;
  letter-spacing: 2px;
}

/* ========== Main ========== */
#app {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 var(--gap);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: var(--gap);
}

.section-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

/* ========== 个人信息 ========== */
#personal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.personal-item {
  font-size: 0.95rem;
}

.personal-item .label {
  color: var(--text-light);
  font-weight: 500;
}

.personal-item .value {
  color: var(--text);
}

/* ========== 技能 ========== */
.skill-item {
  margin-bottom: 14px;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.skill-label {
  color: var(--primary);
  font-weight: 600;
  min-width: 80px;
}

.skill-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* ========== 教育背景时间线 ========== */
#education-timeline {
  position: relative;
  padding-left: 28px;
}

#education-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #ddd;
}

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

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

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

.timeline-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--primary-light);
}

.timeline-content h3 {
  margin: 0 0 10px 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

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

.timeline-content li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ========== 自我评价 ========== */
#self-eval-text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.9;
  margin: 0;
  text-indent: 2em;
}

/* ========== 荣誉奖励 ========== */
#honors-list {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

#honors-list li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 10px;
  break-inside: avoid;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 24px var(--gap);
  background: var(--white);
  border-top: 1px solid #eee;
}

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

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

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

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  #resume-header {
    flex-direction: column;
    text-align: center;
    padding: 36px 16px;
    gap: 20px;
  }

  #header-info {
    text-align: center;
  }

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

  #job-target {
    font-size: 0.95rem;
  }

  #photo-img {
    width: 100px;
    height: 100px;
  }

  #app {
    margin: 20px auto;
    padding: 0 12px;
  }

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

  #personal-grid {
    grid-template-columns: 1fr;
  }

  #honors-list {
    columns: 1;
  }

  .section-title {
    font-size: 1.1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #app {
    padding: 0 20px;
  }
}
