:root {
  --primary: #4F46E5;
  --primary-dark: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-soft: color-mix(in srgb, var(--primary) 10%, #fff);
  --text: #16181d;
  --muted: #5f6673;
  --line: #e6e8ec;
  --ink: #16181d;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
ul, ol { line-height: 1.75; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 76px 0; scroll-margin-top: 64px; }
section.alt { background: var(--bg-alt); }
.section-title { text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 44px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .18s ease;
  background: var(--bg); color: var(--text); font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-size: 19px; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; font-size: 22px; background: none; border: 0; cursor: pointer; color: var(--text); }

/* 首屏 */
.hero { padding: 84px 0 44px; background: linear-gradient(180deg, var(--primary-soft), transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  color: var(--primary); font-weight: 700; letter-spacing: .04em;
  font-size: 14px; margin-bottom: 10px;
}
.hero h1 { margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 32px; flex-wrap: wrap; }
.hero-metrics { list-style: none; display: flex; gap: 40px; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-metrics li { display: flex; flex-direction: column; }
.hero-metrics strong { font-size: 26px; color: var(--primary); font-weight: 800; line-height: 1.3; }
.hero-metrics span { font-size: 13px; color: var(--muted); }

.hero-visual { display: flex; justify-content: center; }
.profile-card {
  width: 100%; max-width: 380px; background: var(--ink); color: #fff;
  border-radius: 20px; padding: 30px 28px 26px; overflow: hidden; position: relative;
}
.monogram {
  font-size: 132px; font-weight: 900; line-height: .82; letter-spacing: -.04em;
  color: var(--primary); opacity: .95; margin-bottom: 6px; user-select: none;
}
.profile-name { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.profile-role { font-size: 14px; color: rgba(255, 255, 255, .6); margin: 0 0 20px; }
.profile-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags li {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .82);
}

/* 卡片 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 14px; }
.grid-2 .card h3:first-child { margin-top: 0; }
.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px;
  margin-bottom: 4px;
}
.card p:last-child { margin-bottom: 0; }

/* 履历时间轴 */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 132px; top: 10px; bottom: 12px;
  width: 1px; background: var(--line);
}
.timeline > li { display: grid; grid-template-columns: 110px 1fr; gap: 44px; padding-bottom: 40px; }
.timeline > li:last-child { padding-bottom: 0; }
.tl-time { font-size: 14px; font-weight: 700; color: var(--primary); text-align: right; padding-top: 3px; }
.tl-body { position: relative; min-width: 0; }
.tl-body::before {
  content: ""; position: absolute; left: -22px; top: 9px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--primary);
}
.tl-body h3 { margin: 0 0 2px; font-size: 18px; }
.tl-org { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.tl-body ul { list-style: none; margin: 0; padding: 0; }
.tl-body ul li { position: relative; padding-left: 16px; margin-bottom: 8px; color: var(--text); }
.tl-body ul li:last-child { margin-bottom: 0; }
.tl-body ul li::before {
  content: ""; position: absolute; left: 0; top: .75em;
  width: 6px; height: 1px; background: var(--primary);
}

/* 标签云 */
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; justify-content: center; }
.tag {
  font-size: 14px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: #fff;
}

/* 知识库折叠 */
.card details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.card details:last-of-type { border-bottom: 0; padding-bottom: 0; }
.card details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; font-size: 15.5px; }
details summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; color: var(--primary); font-weight: 800; margin-right: 10px; }
details[open] summary::before { content: "−"; }
summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* 爱好 */
.hobby { text-align: left; }

/* 联系方式 */
.contact-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 48px 32px; text-align: center;
}
.contact-box h2 { margin-bottom: 10px; }
.contact-box > p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.copy-hint { font-size: 12px; color: var(--primary); border-left: 1px solid var(--line); padding-left: 8px; }
.contact-note { font-size: 13px; color: var(--primary); min-height: 1.5em; margin: 14px 0 0; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 44px 0; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 4px; }

/* 动效 */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column;
    align-items: flex-start; gap: 4px; padding: 12px 20px 20px; background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .btn { width: auto; margin-top: 8px; padding: 10px 24px; }
  .hero-metrics { gap: 28px; }
  .timeline::before { left: 4px; }
  .timeline > li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; padding-bottom: 32px; }
  .tl-time { text-align: left; }
  .tl-body::before { left: -26px; top: 8px; }
  .monogram { font-size: 104px; }
}

@media (max-width: 600px) {
  .contact-box { padding: 36px 20px; }
  .contact-actions .btn { width: 100%; }
  .copy-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
