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

:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #BBDEFB;
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e8ecf1;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 12px;
}

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

.header-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-align: center;
  padding: 40px 20px 36px;
}

#page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  letter-spacing: 4px;
}

#page-subtitle {
  font-size: 0.85rem;
  letter-spacing: 6px;
  opacity: 0.85;
  margin: 0;
  text-transform: uppercase;
}

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
}

.resume-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .resume-container {
    grid-template-columns: 1fr;
  }
  .header-bar {
    padding: 28px 16px 24px;
  }
  #page-title {
    font-size: 1.5rem;
  }
  #app {
    padding: 16px 12px;
  }
}

@media (max-width: 480px) {
  .header-bar {
    padding: 20px 12px 18px;
  }
  #page-title {
    font-size: 1.25rem;
    letter-spacing: 2px;
  }
  .card {
    padding: 14px;
  }
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.card-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-dark);
  display: inline-block;
}

.card-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 2px;
}

.info-row {
  display: flex;
  padding: 6px 0;
  font-size: 0.95rem;
}

.info-label {
  color: var(--text-light);
  white-space: nowrap;
  min-width: 80px;
}

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

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.edu-year {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
}

.edu-detail h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.edu-detail p {
  margin: 2px 0 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.edu-courses {
  margin-top: 8px;
}

.edu-courses h4 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.edu-courses p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, #42A5F5, #1E88E5);
  font-weight: 500;
}

.tag:nth-child(2) { background: linear-gradient(135deg, #7E57C2, #5E35B1); }
.tag:nth-child(3) { background: linear-gradient(135deg, #26A69A, #00897B); }
.tag:nth-child(4) { background: linear-gradient(135deg, #EF5350, #E53935); }
.tag:nth-child(5) { background: linear-gradient(135deg, #FF7043, #F4511E); }
.tag:nth-child(6) { background: linear-gradient(135deg, #AB47BC, #8E24AA); }
.tag:nth-child(7) { background: linear-gradient(135deg, #29B6F6, #0288D1); }
.tag:nth-child(8) { background: linear-gradient(135deg, #66BB6A, #388E3C); }

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

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--primary-light);
}

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

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

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text);
}

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

.timeline-content li {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.timeline-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.skill-item {
  margin-bottom: 12px;
}

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

.skill-label {
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 5px;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #42A5F5, #1E88E5);
  width: 0%;
  transition: width 1s ease;
}

.eval-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
  text-indent: 2em;
}

footer {
  text-align: center;
  padding: 20px 16px;
}

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

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

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