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

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

header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
  text-align: center;
}

#header-ad {
  padding: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#resume-title {
  padding: 30px 20px 25px;
}

#resume-title h1 {
  margin: 0;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 6px;
  font-weight: 700;
}

#resume-title .subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
  display: block;
  margin-top: 6px;
}

#resume-container {
  display: flex;
  max-width: 1000px;
  margin: 30px auto;
  gap: 24px;
  padding: 0 20px;
}

#sidebar {
  width: 300px;
  min-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

#avatar-box {
  text-align: center;
  padding: 30px 20px 20px;
  background: linear-gradient(180deg, #1a3a5c 0%, #2d6a9f 100%);
}

#avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 3px solid rgba(255,255,255,0.4);
  background: #e0e0e0;
}

#avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#name {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
  letter-spacing: 2px;
}

.sidebar-section {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h3 {
  font-size: 1rem;
  color: #1a3a5c;
  margin: 0 0 2px 0;
  font-weight: 600;
}

.en-title {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 14px;
}

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

.info-list li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-list .icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list li {
  background: #e8f0fe;
  color: #1a3a5c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

#main-content {
  flex: 1;
  min-width: 0;
}

.content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 24px 28px;
  margin-bottom: 20px;
}

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

.content-card h3 {
  font-size: 1.05rem;
  color: #1a3a5c;
  margin: 0 0 2px 0;
  font-weight: 600;
  position: relative;
  padding-left: 14px;
}

.content-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: #2d6a9f;
  border-radius: 2px;
}

.content-card .en-title {
  margin-bottom: 16px;
  padding-left: 14px;
}

.content-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #e8e8e8;
}

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

.timeline-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: #2d6a9f;
  border-radius: 50%;
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(45,106,159,0.15);
}

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

.timeline-date {
  font-size: 0.75rem;
  color: #999;
  background: #f5f5f5;
  padding: 2px 10px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: #333;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.timeline-school,
.timeline-company {
  font-size: 0.85rem;
  color: #2d6a9f;
  margin: 0 0 6px 0;
  font-weight: 500;
}

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

.honor-list li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: #555;
  position: relative;
  padding-left: 20px;
  border-bottom: 1px dashed #f0f0f0;
}

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

.honor-list li::before {
  content: '🏆';
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.75rem;
}

footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.page-info {
  font-size: 0.8rem;
  color: #999;
}

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

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

@media (max-width: 768px) {
  #resume-container {
    flex-direction: column;
    padding: 0 12px;
    margin: 20px auto;
  }

  #sidebar {
    width: 100%;
    min-width: 0;
  }

  #resume-title h1 {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  .content-card {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  #resume-title {
    padding: 20px 16px 16px;
  }

  #resume-title h1 {
    font-size: 1.3rem;
  }

  .content-card {
    padding: 16px 14px;
  }

  .content-card h3 {
    font-size: 0.95rem;
  }

  .content-card p {
    font-size: 0.82rem;
  }

  .skill-list li {
    font-size: 0.72rem;
    padding: 3px 10px;
  }
}
