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

/* ===== CSS Variables ===== */
:root {
  --primary: #2c7da0;
  --primary-light: #61a5c2;
  --primary-bg: #e8f4f8;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 20px rgba(44, 125, 160, 0.15);
  --radius: 12px;
  --gap: 20px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 50%, #f5f9fb 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 30px 20px 24px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "+";
  position: absolute;
  top: -40px;
  right: -20px;
  font-size: 200px;
  opacity: 0.06;
  font-weight: 300;
  pointer-events: none;
}

header::after {
  content: "+";
  position: absolute;
  bottom: -60px;
  left: -30px;
  font-size: 250px;
  opacity: 0.04;
  font-weight: 300;
  pointer-events: none;
}

#header-content {
  position: relative;
  z-index: 1;
}

#page-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 2px;
}

#subtitle {
  font-size: 14px;
  margin: 6px 0 2px;
  opacity: 0.9;
}

#subtitle-en {
  font-size: 12px;
  margin: 0;
  opacity: 0.7;
  font-style: italic;
}

#job-intent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 24px;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
}

#job-icon {
  font-size: 20px;
}

/* ===== Ad Slot ===== */
#header-ad {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

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

#sidebar {
  flex: 0 0 300px;
}

#main-content {
  flex: 1;
  min-width: 0;
}

/* ===== Card ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: var(--gap);
  transition: box-shadow 0.3s ease;
}

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

/* ===== Profile Card ===== */
#profile-card {
  text-align: center;
  position: sticky;
  top: 24px;
}

#avatar-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-light);
  box-shadow: 0 0 0 6px var(--primary-bg);
}

#avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

#profile-info {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

#profile-info li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

#profile-info li:last-child {
  border-bottom: none;
}

.info-icon {
  flex-shrink: 0;
  font-size: 16px;
}

/* ===== Section Title ===== */
.section-title {
  font-size: 18px;
  color: var(--primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-bg);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* ===== Education ===== */
#education-card p {
  margin: 6px 0;
  font-size: 14px;
}

#courses-title {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--text);
}

#courses-text {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* ===== Experience ===== */
.experience-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

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

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-date {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 3px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
}

.exp-org {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.exp-role {
  font-size: 14px;
  color: var(--primary);
  margin: 6px 0 4px;
}

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

/* ===== Skills ===== */
#skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#skills-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

#skills-list li:last-child {
  border-bottom: none;
}

/* ===== Self Evaluation ===== */
#self-eval-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
  text-indent: 2em;
}

/* ===== Cover Letter ===== */
#cover-letter-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin: 0 0 10px;
  text-indent: 2em;
}

#cover-greeting {
  text-indent: 0 !important;
  font-weight: 600;
  color: var(--text) !important;
}

#cover-closing {
  text-indent: 0 !important;
  font-weight: 600;
  color: var(--text) !important;
  text-align: right;
}

#cover-sign {
  text-indent: 0 !important;
  text-align: right;
  margin-top: 20px !important;
}

#cover-footer {
  text-indent: 0 !important;
  text-align: center;
  font-style: italic;
  color: var(--primary) !important;
  margin-top: 16px !important;
}

#cover-footer-cn {
  text-indent: 0 !important;
  text-align: center;
  font-weight: 600;
  color: var(--primary) !important;
  font-size: 16px !important;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

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

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

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

  #sidebar {
    flex: none;
  }

  #profile-card {
    position: static;
  }

  #page-title {
    font-size: 24px;
  }

  #job-intent {
    font-size: 14px;
    padding: 6px 16px;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 18px;
  }

  header {
    padding: 20px 16px 18px;
  }
}

@media (max-width: 480px) {
  #page-title {
    font-size: 20px;
  }

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

  #profile-name {
    font-size: 18px;
  }

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