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

:root {
  --primary: #1a73e8;
  --primary-dark: #0d47a1;
  --primary-light: #e8f0fe;
  --sidebar-bg: #0d47a1;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-gray: #666666;
  --border-light: #e0e0e0;
  --bg-light: #f8f9fa;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f0f2f5;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

div#app {
  max-width: 100%;
}

#header {
  background: var(--primary-dark);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-bar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  font-size: 24px;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 2px;
}

.header-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
  margin-left: auto;
}

.resume-container {
  display: flex;
  max-width: 1100px;
  margin: 24px auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: calc(100vh - 160px);
}

.sidebar {
  width: 320px;
  min-width: 320px;
  background: var(--sidebar-bg);
  color: var(--text-light);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.avatar-section {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255,255,255,0.3);
}

.avatar-text {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.name {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 3px;
}

.job-title {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: 2px;
}

.info-block {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 20px;
}

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

.info-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}

.info-label {
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
  margin-right: 12px;
}

.info-value {
  color: rgba(255,255,255,0.9);
  text-align: right;
  word-break: break-all;
}

.hobby-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hobby-tag {
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.main-content {
  flex: 1;
  padding: 36px 40px;
  overflow-y: auto;
}

.content-section {
  margin-bottom: 32px;
}

.content-section:last-child {
  margin-bottom: 0;
}

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

.section-icon {
  font-size: 22px;
}

.summary-text {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
  margin: 0;
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

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

.timeline-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-content {
  flex: 1;
  padding-bottom: 8px;
}

.edu-header, .exp-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.edu-date, .exp-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  white-space: nowrap;
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 4px;
}

.edu-school, .exp-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.edu-major {
  font-size: 14px;
  color: var(--text-gray);
  margin: 4px 0 12px;
}

.courses-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px;
}

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

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

.exp-duties li {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 4px;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skills-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 14px;
}

.skill-item {
  margin-bottom: 14px;
}

.skill-name {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-weight: 500;
}

.skill-bar {
  height: 8px;
  background: var(--primary-light);
  border-radius: 4px;
  overflow: hidden;
}

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

#footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--border-light);
}

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

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

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

@media (max-width: 768px) {
  .resume-container {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    padding: 30px 20px;
  }

  .main-content {
    padding: 24px 20px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .edu-header, .exp-header {
    flex-direction: column;
    gap: 4px;
  }
}
