:root {
  --bg: #11100e;
  --card: #1a1916;
  --ink: #f2ece3;
  --muted: #a39b90;
  --line: rgba(242, 236, 227, 0.1);
  --gold: #c4a574;
  --gold-soft: rgba(196, 165, 116, 0.22);
  --sans: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active { box-shadow: inset 0 -2px 0 var(--gold); }
.nav-links .ext { opacity: 0.55; font-size: 11px; }

.lang {
  width: 36px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
}

.hero {
  padding: 64px 0 40px;
}

.hero img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero h1 {
  margin: 18px 0 8px;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.role {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 14px;
}

.hero p {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.btn-primary {
  background: var(--ink);
  color: #1a1713;
  border-color: var(--ink);
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }

.section {
  padding: 12px 0 64px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.section .lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.card .tag {
  color: var(--gold);
  font-size: 12px;
}

.card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card .actions { margin-top: 18px; }

.stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.stats strong { color: var(--ink); font-weight: 500; }

.page-head {
  padding: 48px 0 28px;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer a:hover { color: var(--ink); }

[data-lang="en"] [data-zh],
[data-lang="zh"] [data-en] { display: none; }

.cursor-halo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1.5px solid rgba(196, 165, 116, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-soft);
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  will-change: transform;
}

.cursor-halo.is-press {
  border-color: #e0c49a;
  box-shadow: 0 0 16px rgba(196, 165, 116, 0.5);
}

.cursor-halo.is-hover {
  border-color: #d8b88a;
  box-shadow: 0 0 14px rgba(196, 165, 116, 0.4);
}

.note-date {
  color: var(--gold);
  font-size: 12px;
}

.cards.notes { grid-template-columns: 1fr; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-head h2 { margin: 0; }

.section-head .more {
  color: var(--gold);
  font-size: 13px;
  white-space: nowrap;
}

.section-head .more:hover { color: var(--ink); }

@media (min-width: 721px) {
  .cards.notes-home { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor-halo { display: none; }
}
