:root {
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 11px;
}

.print-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.print-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Layout */
main {
  padding: 32px 0 64px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Hero */
.hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.hero-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
}

.hero-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title {
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

.hero-summary {
  margin-top: 10px;
  color: var(--text-muted);
}

.hero-contacts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 13px;
  text-decoration: none;
}

.hero-contacts a:hover {
  border-color: var(--accent);
}

/* Skills */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 500;
}

/* Timeline */
.timeline-item + .timeline-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px dashed var(--border);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.timeline-meta h3 {
  font-size: 16px;
  font-weight: 700;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

.timeline-item p {
  margin-top: 6px;
  color: var(--text-muted);
}

.list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--text-muted);
}

.list li + li {
  margin-top: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    flex-direction: column;
  }

  .hero-contacts {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .print-btn {
    display: none;
  }

  body {
    background: #fff;
  }

  .card {
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}
