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

:root {
  --primary: #1a3a5c;
  --accent: #d4a843;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

div#app {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

#resume-container {
  width: 100%;
  max-width: 960px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

#resume-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d78 100%);
  color: #ffffff;
}

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

#avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  object-fit: cover;
  display: block;
}

#name-title {
  flex: 1;
}

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

#resume-title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
}

.cn-subtitle {
  margin-left: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

#resume-body {
  display: flex;
  gap: 0;
}

#sidebar {
  width: 35%;
  flex-shrink: 0;
  background: #f8f9fb;
  padding: 28px 24px;
  border-right: 1px solid var(--border);
}

#main-content {
  flex: 1;
  padding: 28px 32px;
}

.card {
  margin-bottom: 24px;
}

.card:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.en-label {
  font-size: 11px;
  font-weight: 400;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

#info-list li {
  display: flex;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px dashed #e8e8e8;
}

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

.info-label {
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

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

#assessment-text {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.8;
  text-align: justify;
}

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

#honor-list li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed #e8e8e8;
  line-height: 1.6;
}

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

#honor-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline {
  position: relative;
  padding-left: 0;
}

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

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: #e0e4e8;
}

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

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  z-index: 1;
}

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

.timeline-date {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: #fdf6e8;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

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

.timeline-sub {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-light);
}

.timeline-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #999;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

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

@media (max-width: 768px) {
  #resume-body {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
  }

  #main-content {
    padding: 20px;
  }

  #resume-header {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

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

  #name {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  div#app {
    padding: 16px 8px;
  }

  #resume-header {
    padding: 20px 16px;
  }

  #sidebar,
  #main-content {
    padding: 16px;
  }

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

  #info-list li {
    font-size: 13px;
    flex-direction: column;
  }
}
