:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --text: #1d2633;
  --muted: #5c6778;
  --line: #d8dee9;
  --accent: #23615d;
  --accent-2: #8a5a2f;
  --accent-3: #455c7b;
  --soft: #edf5f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(35, 97, 93, 0.08), rgba(35, 97, 93, 0) 340px),
    linear-gradient(90deg, rgba(29, 38, 51, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 38, 51, 0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.page {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 44px;
}

.hero {
  position: relative;
  padding: 70px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(360px, 45%);
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.section h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
}

.section > p {
  max-width: 760px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.project-grid article {
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(29, 38, 51, 0.06);
}

.project-grid h3 {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 1.05rem;
}

.project-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.note {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(29, 38, 51, 0.07);
}

.note::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
}

.note-meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.note h3 {
  max-width: 800px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.paper-ref {
  max-width: 900px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.paper-ref strong {
  color: var(--text);
}

.note p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 38px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .page {
    padding-top: 34px;
  }

  .hero {
    padding: 42px 0;
  }

  .lead {
    font-size: 1rem;
  }

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

  .project-grid article {
    min-height: 0;
  }
}
