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

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

#header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: #1a1a2e;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #e2b04a;
}

#header-nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  transition: color 0.3s;
}

#header-nav a:hover {
  color: #e2b04a;
}

#app {
  padding: 32px 16px;
}

#resume-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  gap: 24px;
  align-items: flex-start;
}

#sidebar {
  width: 280px;
  min-width: 280px;
  background: #1a1a2e;
  border-radius: 12px;
  padding: 32px 20px;
  color: #fff;
  text-align: center;
  position: sticky;
  top: 80px;
}

#avatar-section {
  margin-bottom: 28px;
}

#avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2b04a, #d4943a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

#avatar-initials {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a2e;
}

#sidebar-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

#sidebar-title {
  margin: 0;
  font-size: 13px;
  color: #aaa;
}

#sidebar-contact {
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: #ccc;
}

.contact-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

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

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

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

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.info-item {
  font-size: 14px;
  display: flex;
}

.info-label {
  color: #888;
  white-space: nowrap;
}

.info-value {
  color: #333;
  font-weight: 500;
}

#self-text {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

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

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

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

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

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2b04a;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #e2b04a;
}

.timeline-date {
  font-size: 12px;
  color: #e2b04a;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 4px;
  background: rgba(226,176,74,0.1);
  padding: 2px 10px;
  border-radius: 12px;
}

.timeline-content h4 {
  margin: 4px 0;
  font-size: 16px;
  color: #1a1a2e;
}

.timeline-content p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.skill-name {
  font-weight: 500;
  color: #333;
}

.skill-percent {
  color: #e2b04a;
  font-weight: 600;
}

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

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #e2b04a, #d4943a);
  border-radius: 4px;
  transition: width 1.2s ease;
}

#honors-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.honor-item {
  font-size: 14px;
  color: #444;
  padding: 10px 14px;
  background: #faf9f5;
  border-left: 3px solid #e2b04a;
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.page-info {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #999;
}

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

.page-info a:hover {
  color: #e2b04a;
}

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

  #sidebar {
    width: 100%;
    min-width: 100%;
    position: static;
    border-radius: 12px;
    padding: 24px 16px;
  }

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

  #avatar-initials {
    font-size: 32px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #header-nav {
    display: none;
  }

  #app {
    padding: 16px 8px;
  }

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

@media print {
  header, footer, #ad-slot-container {
    display: none;
  }

  #sidebar {
    position: static;
    break-inside: avoid;
  }

  #resume-container {
    max-width: 100%;
    gap: 16px;
  }

  .content-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}
