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

:root {
  --primary: #1a2a3a;
  --primary-light: #2c3e50;
  --accent: #c9a96e;
  --accent-light: #e8d5b7;
  --bg-light: #f5f6f8;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-mid: #5a6c7d;
  --text-light: #8899aa;
  --border: #e8ecf1;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ========== Header ========== */
#header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 24px 36px;
  text-align: center;
  position: relative;
}

#header-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

#header-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

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

#header-name {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
}

#header-title {
  margin: 8px 0 0;
  color: var(--accent-light);
  font-size: 16px;
  letter-spacing: 2px;
}

/* ========== Main Layout ========== */
#app {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

#sidebar {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  position: relative;
  letter-spacing: 1px;
}

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

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

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

.info-label {
  color: var(--text-mid);
  flex: 0 0 52px;
  font-weight: 500;
}

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

/* ========== Education ========== */
.edu-item {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

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

.edu-date {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

.edu-school {
  margin: 4px 0 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.edu-major {
  margin: 0;
  font-size: 13px;
  color: var(--text-mid);
}

/* ========== Certificates ========== */
.cert-group {
  margin-bottom: 12px;
}

.cert-group:last-child {
  margin-bottom: 0;
}

.cert-subtitle {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

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

/* ========== Self Evaluation ========== */
.evaluation-text {
  margin: 0;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  text-align: justify;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 1px;
}

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

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

.timeline-dot {
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.tl-date {
  margin: 0;
  font-size: 13px;
  color: var(--text-light);
}

.tl-company {
  margin: 4px 0 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.tl-role {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
}

.tl-desc {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.tl-desc li {
  margin-bottom: 4px;
}

.tl-desc li:last-child {
  margin-bottom: 0;
}

/* ========== Footer ========== */
footer {
  text-align: center;
  padding: 20px;
}

.page-info {
  font-size: 12px;
  color: var(--text-light);
}

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

.page-info a:hover {
  color: var(--accent);
}

/* ========== Print ========== */
@media print {
  body {
    background: #fff;
  }
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  #header-banner {
    background: var(--primary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

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

  #sidebar {
    flex: 0 0 auto;
  }

  #header-banner {
    padding: 32px 16px 24px;
  }

  #header-name {
    font-size: 26px;
  }

  #header-avatar {
    width: 90px;
    height: 90px;
  }

  .card {
    padding: 16px;
  }
}
