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

/* ========== 变量 ========== */
:root {
  --primary: #1a3a5c;
  --gold: #c9a962;
  --bg: #f5f5f0;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0d8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ========== Header ========== */
.header-container {
  background: linear-gradient(135deg, var(--primary) 0%, #0f2440 100%);
  text-align: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}

.header-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}

#resume-title-en {
  color: var(--gold);
  font-size: 28px;
  letter-spacing: 6px;
  margin: 0 0 6px 0;
  font-weight: 300;
}

#resume-title-cn {
  color: var(--white);
  font-size: 18px;
  letter-spacing: 4px;
  margin: 0;
  font-weight: 400;
}

/* ========== Resume Wrapper ========== */
.resume-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 32px auto;
  gap: 24px;
  padding: 0 16px;
  align-items: flex-start;
}

/* ========== Sidebar ========== */
.sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

/* ========== Card ========== */
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
}

/* ========== Avatar ========== */
#avatar-card {
  text-align: center;
  padding: 0;
  overflow: hidden;
}

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

/* ========== Section Titles ========== */
.section-title-en {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
}

.section-title-cn {
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 14px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.info-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed var(--border);
}

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

.info-label {
  color: var(--text-light);
  font-weight: 500;
}

.info-value {
  color: var(--text);
}

/* ========== Honor List ========== */
.honor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honor-list li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.honor-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--gold);
  font-size: 8px;
}

/* ========== Self Assessment ========== */
#self-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.9;
  margin: 0;
}

/* ========== Timeline ========== */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--primary);
  opacity: 0.2;
}

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

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

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--primary);
}

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

.timeline-date {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 16px;
  color: var(--primary);
  margin: 0 0 2px 0;
  font-weight: 600;
}

.timeline-sub {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 6px 0;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px 16px;
  background: var(--primary);
}

footer .page-info {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

footer .page-info a {
  color: var(--gold);
  text-decoration: none;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .resume-wrapper {
    flex-direction: column;
    margin: 16px auto;
    gap: 16px;
  }

  .sidebar {
    flex: none;
    width: 100%;
  }

  #resume-title-en {
    font-size: 22px;
    letter-spacing: 4px;
  }

  #resume-title-cn {
    font-size: 15px;
    letter-spacing: 3px;
  }

  .card {
    padding: 16px;
  }
}
