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

:root {
  --bg-primary: #ffffff;
  --bg-card: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #555;
  --text-muted: #777;
  --accent: #1a5276;
  --accent-light: #eaf2f8;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

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

#header-content {
  text-align: center;
  padding: 48px 24px 36px;
  background: linear-gradient(180deg, #f0f3f7 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

#resume-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 8px 0;
  letter-spacing: 4px;
}

#resume-subtitle {
  font-size: 1em;
  color: var(--text-muted);
  margin: 0;
}

#resume-subtitle-en {
  font-size: 0.85em;
  color: #aaa;
  margin: 4px 0 0 0;
  font-style: italic;
}

div#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.25em;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  letter-spacing: 2px;
}

/* 基本信息 */
#basic-info {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

#basic-info-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.info-item {
  font-size: 0.95em;
  color: var(--text-secondary);
  padding: 4px 0;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

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

#avatar-placeholder {
  width: 100px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* 时间线 */
.timeline-item {
  display: flex;
  gap: 18px;
  position: relative;
  padding-bottom: 24px;
}

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

.timeline-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #dce4ec;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content {
  flex: 1;
}

.timeline-period {
  font-size: 0.85em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 1.05em;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-subtitle {
  font-size: 0.9em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timeline-details {
  margin: 6px 0 0 0;
  padding-left: 18px;
  list-style: disc;
  color: var(--text-secondary);
}

.timeline-details li {
  margin-bottom: 4px;
  font-size: 0.92em;
}

/* 课程标签 */
.course-section {
  margin-top: 10px;
}

.course-label {
  font-size: 0.9em;
  color: var(--text-muted);
  font-weight: 500;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.course-tag {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.82em;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.course-tag:hover {
  background: #d4e6f5;
}

/* 自我评价 */
#evaluation-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin: 0;
  text-indent: 2em;
}

/* 技能列表 */
#skills-list {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

#skills-list li {
  position: relative;
  padding: 6px 0;
  padding-left: 16px;
  font-size: 0.95em;
  color: var(--text-secondary);
  border-bottom: 1px dashed #e8e8e8;
}

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

#skills-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--accent);
  font-size: 0.8em;
}

/* footer */
footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.page-info {
  font-size: 0.8em;
  color: #aaa;
}

.page-info a {
  color: #888;
  text-decoration: none;
}

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

/* 响应式 */
@media (max-width: 768px) {
  #header-content {
    padding: 32px 16px 24px;
  }

  #resume-title {
    font-size: 1.6em;
    letter-spacing: 2px;
  }

  div#app {
    padding: 20px 12px 32px;
  }

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

  #basic-info {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  #basic-info-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  #avatar-placeholder {
    width: 80px;
    height: 104px;
    margin-bottom: 12px;
  }

  .timeline-item {
    gap: 12px;
  }

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

/* 打印样式 */
@media print {
  body {
    font-size: 13px;
    color: #000;
  }

  #header-content {
    padding: 20px 0 16px;
    background: none;
    border-bottom: 1px solid #ccc;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 12px;
    padding: 16px 20px;
    break-inside: avoid;
  }

  .card:hover {
    box-shadow: none;
  }

  footer {
    border-top: 1px solid #ccc;
  }
}
