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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #e8f4fd 0%, #d2eafc 30%, #e0f0fa 60%, #f0f7fc 100%);
  color: #333;
  line-height: 1.6;
}

/* Header */
.header-bar {
  background: linear-gradient(135deg, #1976D2 0%, #2196F3 40%, #42A5F5 100%);
  padding: 16px 24px;
  box-shadow: 0 2px 8px rgba(25,118,210,0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.header-tag {
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
}

/* App Container */
#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Resume Container */
.resume-container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Sidebar */
.sidebar {
  width: 30%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid #42A5F5;
}

/* Avatar Section */
.avatar-section {
  text-align: center;
  padding: 28px 24px 20px;
  border-top: 3px solid #2196F3;
}

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #2196F3;
}

.avatar-placeholder {
  font-size: 44px;
}

.sidebar-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1565C0;
  margin: 0 0 4px;
}

.sidebar-job {
  font-size: 0.9rem;
  color: #2196F3;
  margin: 0;
  background: #e3f2fd;
  display: inline-block;
  padding: 3px 14px;
  border-radius: 12px;
  font-weight: 500;
}

/* Section Titles */
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1565C0;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e3f2fd;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: #2196F3;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.contact-list .icon {
  font-size: 1rem;
}

/* Basic Info List */
.basic-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.basic-info-list li {
  padding: 5px 0;
  font-size: 0.92rem;
  color: #555;
  display: flex;
}

.basic-info-list .label {
  color: #888;
  white-space: nowrap;
  min-width: 80px;
}

/* Skills List */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  padding: 5px 0;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.skill-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42A5F5;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Motto */
.motto-section {
  text-align: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #e3f2fd, #f0f7fc);
  border-top: 3px solid #2196F3;
}

.motto-text {
  font-size: 1.1rem;
  color: #1565C0;
  font-weight: 500;
  margin: 0;
  font-style: italic;
  letter-spacing: 1px;
}

/* Section Card */
.section-card {
  padding: 24px;
}

/* Content Text */
.content-text {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  text-indent: 2em;
}

/* Timeline */
.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2196F3;
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 0 3px rgba(33,150,243,0.15);
}

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

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.timeline-date {
  font-size: 0.88rem;
  color: #2196F3;
  font-weight: 600;
  background: #e3f2fd;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.timeline-school,
.timeline-place {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.timeline-major,
.timeline-role {
  font-size: 0.92rem;
  color: #1976D2;
  margin: 4px 0;
  font-weight: 500;
}

.timeline-detail {
  font-size: 0.9rem;
  color: #666;
  margin: 6px 0 0;
  line-height: 1.7;
}

.timeline-duties {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.timeline-duties li {
  font-size: 0.9rem;
  color: #555;
  padding: 3px 0;
  line-height: 1.7;
}

/* Cover Letter */
.cover-letter-body {
  font-size: 0.94rem;
  color: #444;
  line-height: 1.9;
}

.cover-letter-body p {
  margin: 0 0 12px;
  text-indent: 2em;
}

.cover-letter-body p:first-child {
  text-indent: 0;
}

.cover-letter-body p:last-child {
  text-indent: 0;
}

.signature {
  text-align: right;
  color: #333;
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 16px;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
}

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

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

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

/* Responsive */
@media screen and (max-width: 768px) {
  .resume-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: auto;
  }

  .header-bar {
    padding: 12px 16px;
  }

  .header-name {
    font-size: 1.2rem;
  }

  .header-tag {
    font-size: 0.82rem;
    padding: 4px 12px;
  }

  #app {
    padding: 16px 12px 30px;
  }

  .card {
    padding: 16px;
  }

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

  .avatar-placeholder {
    font-size: 36px;
  }

  .sidebar-name {
    font-size: 1.15rem;
  }
}

@media screen and (max-width: 480px) {
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .header-inner {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .cover-letter-body p {
    text-indent: 1.5em;
  }

  .section-title {
    font-size: 0.98rem;
  }
}
