:root {
  --accent: #1777b3;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0b0b0b;
  --muted: #4a4a4a;
  --border: #d9d9d9;
  --shadow: none;
  --border-w: 1px;
  --lift: 0px;
  --lift-hover: 0px;
  --shadow-hard: none;
  --shadow-hard-hover: none;
  --radius: 0px;
  --container: 1080px;
  --focus: 0 0 0 3px rgba(23, 119, 179, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f12;
    --surface: #10161d;
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.62);
    --border: rgba(255, 255, 255, 0.18);
    --shadow: none;
    --shadow-hard: none;
    --shadow-hard-hover: none;
    --focus: 0 0 0 3px rgba(23, 119, 179, 0.34);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 装饰性背景已移除：把注意力还给内容 */

a::selection,
button::selection,
p::selection,
h1::selection,
h2::selection,
h3::selection,
span::selection,
dd::selection,
dt::selection,
li::selection {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font: inherit;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: none;
  border-radius: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: var(--border-w) solid var(--accent);
  border-radius: 0;
  box-shadow: none;
  transform: translateY(-160%);
  transition: transform 180ms ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: var(--border-w) solid var(--border);
  backdrop-filter: none;
  background: var(--bg);
}

.site-header::before {
  content: none;
}

@supports not (background: color-mix(in srgb, white, black)) {
  .site-header {
    background: var(--bg);
  }
  @media (prefers-color-scheme: dark) {
    .site-header {
      background: var(--bg);
    }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: cover;
  border: var(--border-w) solid var(--accent);
  background: var(--surface);
  box-shadow: none;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
}

.brand-text {
  font-size: 14px;
}

.site-nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 0;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  box-shadow: none;
}

.nav-toggle-lines {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines {
  display: block;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--text) 70%, transparent);
  border-radius: 0;
  transition: transform 180ms ease, top 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines::before {
  top: 1px;
}

.nav-toggle-lines::after {
  top: 9px;
}

.nav-open .nav-toggle-lines::before {
  top: 5px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  top: 5px;
  transform: rotate(-45deg);
}

.nav-open .site-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  position: absolute;
  top: 64px;
  right: 20px;
  padding: 10px;
  width: min(260px, calc(100% - 40px));
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.nav-open body {
  overflow: hidden;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}

/* 分区不使用强分割线，避免喧宾夺主 */

.hero {
  padding-top: 58px;
}

.hero-inner {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 650;
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 54px);
  letter-spacing: -0.6px;
  line-height: 1.06;
  font-weight: 850;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 56ch;
}

.section-title {
  display: inline-block;
  padding: 0 0 0 10px;
  border-left: 4px solid var(--accent);
  letter-spacing: -0.4px;
}

.hero-title::after {
  content: none;
}

.hero-subtitle {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  padding: 12px 14px;
  border: var(--border-w) solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  transform: none;
  box-shadow: none;
}

.button:active {
  transform: none;
  box-shadow: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000000);
  border-color: color-mix(in srgb, var(--accent) 88%, #000000);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.button.small {
  padding: 10px 12px;
  border-radius: 0;
  font-size: 14px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
}

.card.hero-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: var(--border-w) solid var(--border);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.hero-card-content {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}

.section-inner {
  display: grid;
  gap: 16px;
}

.section-header {
  display: grid;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px;
}

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

/* 卡片保持克制：不做位移/硬阴影，突出内容本身 */

.prose p {
  margin: 0 0 12px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 14px 0 0;
}

.tag {
  padding: 6px 10px;
  border-radius: 0;
  border: var(--border-w) solid var(--border);
  color: var(--muted);
  font-size: 13px;
  background: transparent;
}

.projects-grid {
  grid-template-columns: 1fr;
}

.project-card {
  display: grid;
  gap: 10px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  font-size: 12px;
  color: #ffffff;
  border: var(--border-w) solid var(--border);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 0;
}

.card-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.card-desc {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card-link::after {
  content: "→";
  transform: translateY(-1px);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.list.compact {
  gap: 0;
}

.list-item {
  border-radius: 0;
}

.list-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 0;
  color: var(--text);
}

.list-link:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.list-title {
  font-size: 14px;
}

.list-meta {
  font-size: 12px;
  color: var(--muted);
  flex: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  color: var(--accent);
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 1.2em;
}

.contact-grid {
  grid-template-columns: 1fr;
}

.site-footer {
  padding: 26px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 2px solid var(--border);
  padding-top: 18px;
}

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

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .section {
    padding: 88px 0;
  }

  .hero-inner {
    gap: 24px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card-media {
    aspect-ratio: 16 / 9;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-link,
  .skip-link,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after {
    transition: none !important;
  }
}


