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

/* ========== CSS变量 ========== */
:root {
  --green: #00b894;
  --green-dark: #009a7b;
  --green-light: #e6f9f5;
  --text-dark: #2d3436;
  --text-gray: #636e72;
  --text-light: #b2bec3;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --border: #dfe6e9;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 8px;
}

/* ========== Header 横幅 ========== */
#header-banner {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  padding: 48px 20px;
  text-align: center;
  color: #fff;
}

#resume-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 8px;
  margin: 0;
  color: #fff;
}

#resume-subtitle {
  font-size: 18px;
  letter-spacing: 6px;
  margin: 8px 0 0;
  opacity: 0.9;
  color: #fff;
}

/* ========== 主容器 ========== */
#resume-container {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  gap: 32px;
}

/* ========== 左侧栏 ========== */
#left-sidebar {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== 头像 ========== */
#avatar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--green);
  box-shadow: 0 2px 12px rgba(0,184,148,0.25);
}

/* ========== 右侧内容 ========== */
#right-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

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

/* ========== 区域标题 ========== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  position: relative;
}

.section-title .title-en {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 8px;
  font-weight: 400;
  letter-spacing: 1px;
}

/* ========== 信息列表（个人信息/联系方式） ========== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-item {
  font-size: 14px;
  line-height: 1.6;
}

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

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

/* ========== 教育背景 ========== */
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.edu-school {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

.edu-degree {
  font-size: 13px;
  color: #fff;
  background: var(--green);
  padding: 2px 10px;
  border-radius: 12px;
}

.edu-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-gray);
}

.edu-courses {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  margin: 8px 0 0;
}

/* ========== 荣誉列表 ========== */
.honor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.honor-item {
  font-size: 13px;
  color: var(--text-dark);
  padding: 6px 10px;
  background: var(--green-light);
  border-radius: 4px;
  position: relative;
  padding-left: 18px;
}

.honor-item::before {
  content: '✦';
  position: absolute;
  left: 6px;
  color: var(--green);
  font-size: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========== 时间线（工作经验） ========== */
.timeline {
  position: relative;
  padding-left: 24px;
}

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

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

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

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.timeline-date {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
}

.timeline-company {
  font-size: 13px;
  color: var(--text-gray);
  margin: 4px 0;
  font-weight: 500;
}

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

/* ========== 技能条 ========== */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-name {
  flex: 0 0 80px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

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

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

.skill-percent {
  flex: 0 0 36px;
  font-size: 12px;
  color: var(--text-gray);
  text-align: right;
}

/* ========== 自我评价 ========== */
.eval-text {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.9;
  margin: 0;
}

/* ========== 可编辑字段 ========== */
.editable {
  cursor: text;
  border-radius: 3px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: background 0.2s, outline 0.2s;
}

.editable:hover {
  background: var(--green-light);
  outline: 1px dashed var(--green);
}

.editable:focus {
  background: #fff;
  outline: 2px solid var(--green);
  box-shadow: 0 0 0 3px rgba(0,184,148,0.15);
}

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

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

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

/* ========== 打印样式 ========== */
@media print {
  #header-banner {
    background: var(--green) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 24px 20px;
  }

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

  .editable {
    cursor: default;
  }

  .editable:hover {
    background: transparent;
    outline: none;
  }

  footer {
    display: none;
  }

  #resume-container {
    gap: 20px;
    padding: 16px;
  }
}

/* ========== 响应式 ========== */

/* 平板端 */
@media (max-width: 1023px) {
  #resume-container {
    gap: 20px;
  }

  #left-sidebar {
    flex: 0 0 260px;
  }

  #resume-title {
    font-size: 40px;
    letter-spacing: 6px;
  }

  .honor-list {
    grid-template-columns: 1fr;
  }
}

/* 手机端 */
@media (max-width: 767px) {
  #resume-container {
    flex-direction: column;
    padding: 16px 12px;
    gap: 16px;
  }

  #left-sidebar {
    flex: auto;
  }

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

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

  #resume-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .section-title {
    font-size: 16px;
  }

  .honor-list {
    grid-template-columns: 1fr 1fr;
  }

  .skill-item {
    flex-wrap: wrap;
  }

  .skill-name {
    flex: 0 0 64px;
  }

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