:root {
  --bg: #faf9f4;
  --panel: #ffffff;
  --panel-soft: #f5f4ef;
  --line: #c2c8c0;
  --line-soft: #e3e3de;
  --text: #051d0e;
  --muted: #424842;
  --secondary: #456178;
  --sidebar: #111827;
  --accent: #34a853;
  --accent-soft: rgba(52, 168, 83, 0.12);
  --shadow: 0 16px 48px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --sidebar-width: 280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.mobile-topbar { display: none; }
.sidebar-backdrop { display: none; }
.identity-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--sidebar);
  color: #fff;
}
.profile-block { margin-bottom: 28px; }
.portrait {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(52, 168, 83, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0d3520, #172033);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.profile-block h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}
.profile-block h1 span { font-size: 20px; font-weight: 700; }
.profile-block p {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.identity-facts { display: grid; gap: 18px; margin: 18px 0 auto; }
.identity-facts article {
  position: relative;
  padding-left: 38px;
}
.identity-facts strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.identity-facts p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}
.identity-facts b {
  display: inline-flex;
  margin: 6px 6px 0 0;
  padding: 2px 7px;
  border: 1px solid rgba(52, 168, 83, 0.28);
  border-radius: 4px;
  background: rgba(52, 168, 83, 0.1);
  color: var(--accent);
  font-size: 12px;
}
.fact-icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}
.fact-icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.fact-icon.trend::after { inset: 4px 3px 8px 5px; transform: rotate(-35deg); }
.fact-icon.bolt { transform: skew(-12deg); }
.nav-menu {
  display: grid;
  gap: 12px;
  margin: 34px 0 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-link {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-link span {
  width: 34px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.nav-link:hover, .nav-link.is-active {
  color: var(--accent);
  transform: translateX(2px);
}
.nav-link.is-active { border-left: 2px solid var(--accent); padding-left: 10px; }
.sidebar-cta {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  background: var(--accent);
  color: #06120a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.content-canvas {
  height: 100dvh;
  margin-left: var(--sidebar-width);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.content-inner {
  width: min(calc(100% - 96px), 980px);
  margin: 0 auto;
  padding: 72px 0 80px;
}
.section-anchor { scroll-margin-top: 40px; }
.hero-panel { margin-bottom: 82px; }
.kicker, .card-label, .project-card p, .portfolio-grid article > p, .role {
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.hero-panel h2 {
  margin-top: 20px;
  font-size: clamp(44px, 6vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hero-panel h2 span { color: var(--secondary); }
.hero-subtitle {
  display: inline;
  color: var(--secondary);
}
.proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.proof-tags span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(69, 97, 120, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
  color: #1d2f3d;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 50px 0 42px;
}
.metric-grid article {
  min-height: 118px;
  padding: 26px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel-soft);
}
.metric-grid strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.1;
}
.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.summary-card {
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.summary-card p:last-child {
  margin-top: 18px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.85;
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.qa-grid article {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}
.qa-grid strong { display: block; margin-bottom: 6px; }
.qa-grid p { color: var(--muted); font-size: 14px; }
