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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

#header {
  display: flex;
  justify-content: center;
  padding: 16px 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

#main {
  background: #f0f2f5;
}

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

#sidebar {
  width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: #1a3c5e;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(26, 60, 94, 0.3);
}

#photo-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

#avatar {
  width: 100%;
  height: auto;
  display: block;
}

#info-card {
  text-align: center;
  background: linear-gradient(135deg, #1a3c5e 0%, #264d73 100%);
}

#name {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 2px;
}

#job-title {
  font-size: 14px;
  margin: 0;
  color: #c9a96e;
  font-weight: 500;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(201, 169, 110, 0.5);
  color: #c9a96e;
  letter-spacing: 1px;
}

#basic-list,
#contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#basic-list li,
#contact-list li {
  display: flex;
  padding: 6px 0;
  font-size: 14px;
  align-items: center;
}

#basic-list .label {
  width: 70px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

#basic-list .value {
  color: #fff;
}

#contact-list li {
  gap: 10px;
}

#contact-list .icon {
  font-size: 16px;
  flex-shrink: 0;
}

#contact-list .value {
  color: #fff;
}

#skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  background: rgba(201, 169, 110, 0.2);
  color: #c9a96e;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  white-space: nowrap;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

#hero {
  text-align: center;
  background: linear-gradient(135deg, #1a3c5e 0%, #264d73 100%);
  color: #fff;
  padding: 40px 28px;
}

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

#hero-subtitle {
  font-size: 16px;
  margin: 10px 0 0 0;
  color: #c9a96e;
  letter-spacing: 6px;
  font-weight: 300;
}

#hero-motto {
  font-size: 14px;
  margin: 16px 0 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a3c5e;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #c9a96e;
  display: inline-block;
}

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

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

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

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

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9a96e;
  border: 2px solid #1a3c5e;
}

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

.job-role,
.edu-major {
  font-size: 17px;
  font-weight: 700;
  color: #1a3c5e;
  margin: 0 0 4px 0;
}

.job-company,
.edu-school {
  font-size: 14px;
  color: #666;
  margin: 0 0 4px 0;
}

.job-period,
.edu-period {
  font-size: 13px;
  color: #c9a96e;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.job-desc {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.job-desc li {
  margin-bottom: 6px;
}

.edu-courses {
  font-size: 14px;
  color: #555;
  margin: 10px 0 0 0;
  line-height: 1.8;
}

#eval-text {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin: 0;
}

#footer {
  text-align: center;
  padding: 20px 16px;
  background: #1a3c5e;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

#footer a {
  color: #c9a96e;
  text-decoration: none;
}

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

@media (max-width: 768px) {
  #app {
    flex-direction: column;
    padding: 16px 12px;
  }

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

  #avatar {
    max-width: 200px;
    margin: 0 auto;
  }

  #hero-title {
    font-size: 24px;
  }

  #hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
  }

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