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

* {
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #f0f2f5;
  line-height: 1.6;
}

.header-inner {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 40px 24px;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header-text h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
}

.header-text p {
  margin: 8px 0 0;
  font-size: 16px;
  opacity: 0.9;
  letter-spacing: 1px;
}

.resume-container {
  display: flex;
  max-width: 1100px;
  margin: 32px auto;
  gap: 24px;
  padding: 0 16px;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1a73e8;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8f0fe;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #1a73e8;
  border-radius: 2px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  font-size: 14px;
  color: #555;
  display: flex;
}

.contact-label {
  color: #999;
  width: 48px;
  flex-shrink: 0;
}

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

.tag {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
}

.profile-text {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px;
  text-indent: 2em;
}

.profile-text:last-child {
  margin-bottom: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  position: relative;
}

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

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a73e8;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-date {
  font-size: 13px;
  color: #1a73e8;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  display: block;
  margin-bottom: 2px;
}

.timeline-role {
  font-size: 13px;
  color: #888;
  display: block;
  margin-bottom: 6px;
}

.timeline-desc {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #555;
}

.timeline-desc li {
  margin-bottom: 4px;
}

.project-desc {
  font-size: 13px;
  color: #555;
  margin: 4px 0 0;
}

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

.page-info {
  font-size: 13px;
  color: #999;
}

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

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

@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    margin: 16px auto;
  }

  .sidebar {
    width: 100%;
  }

  .header-inner {
    padding: 28px 16px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .avatar {
    width: 96px;
    height: 96px;
  }

  .header-text h1 {
    font-size: 28px;
  }

  .header-text p {
    font-size: 14px;
  }

  .card {
    padding: 20px 16px;
  }
}
