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

/* CSS 变量 */
:root {
  --primary: #1a3a5c;
  --primary-light: #2c5f8a;
  --accent: #3a7bd5;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #e8ecf1;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --transition: 0.3s ease;
}

body {
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  text-align: center;
  padding: 28px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#header-title {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}

/* ===== Main Container ===== */
#app {
  padding: 32px 24px;
}

#resume-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

/* ===== 卡片通用样式 ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== 左侧栏 ===== */
#sidebar {
  position: sticky;
  top: 24px;
}

/* 头像区域 */
#avatar-section {
  text-align: center;
  padding: 32px 24px;
}

#avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 16px rgba(58, 123, 213, 0.3);
}

#name {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 0 0;
}

/* 基本信息 */
#info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

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

.info-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.info-label {
  color: var(--text-light);
  width: 68px;
  flex-shrink: 0;
}

.info-value {
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

/* 技能证书 */
#skills-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  background: linear-gradient(135deg, #e8f0fe, #d4e4fc);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #c5d9f5;
}

/* 兴趣爱好 */
#hobbies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-tag {
  display: inline-block;
  background: linear-gradient(135deg, #fef3e8, #fde4d4);
  color: #b85c1e;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #f5d5c0;
}

/* ===== 右侧栏 ===== */
#main-content .card {
  padding: 28px;
}

/* 求职意向 */
#job-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #5b9cf5);
  color: #ffffff;
  padding: 8px 28px;
  border-radius: 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* 自我评价 */
#eval-list {
  padding-left: 20px;
  margin: 0;
}

#eval-list li {
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.8;
}

#eval-list li::marker {
  color: var(--accent);
}

/* 时间线 */
.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}

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

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  box-shadow: 0 0 0 4px rgba(58, 123, 213, 0.15);
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

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

.timeline-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-school,
.timeline-company,
.timeline-org {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.timeline-detail,
.timeline-role {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-desc {
  padding-left: 20px;
  margin: 8px 0 0 0;
}

.timeline-desc li {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.timeline-desc li::marker {
  color: var(--accent);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
}

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

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

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

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  #app {
    padding: 20px 12px;
  }

  #resume-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #sidebar {
    position: static;
  }

  #header-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .card {
    padding: 18px;
  }

  #main-content .card {
    padding: 20px;
  }

  #avatar {
    width: 110px;
    height: 110px;
  }

  #name {
    font-size: 20px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  #app {
    padding: 12px 8px;
  }

  .info-item {
    font-size: 13px;
  }

  .info-label {
    width: 60px;
  }
}

/* 打印优化 */
@media print {
  body {
    background: #ffffff;
  }

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

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