:root {
  --paper: #f3f1eb;
  --paper-strong: #ebe8df;
  --ink: #151816;
  --muted: #686c68;
  --line: #d4d1c8;
  --green: #1d5d44;
  --green-soft: #dce8df;
  --orange: #e36e42;
  --white: #fff;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(31, 36, 32, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(21, 24, 22, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 24, 22, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
  font-family: Georgia, serif;
  font-style: italic;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ca875;
  box-shadow: 0 0 0 5px rgba(60, 168, 117, .12);
}

.hero {
  min-height: 690px;
  padding: 110px 0 92px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-index {
  margin: 0 0 24px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

.hero h1 {
  margin: 0;
  max-width: 1060px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(58px, 7.8vw, 106px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(21, 24, 22, .16);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .32);
}

.projects,
.principles {
  padding: 96px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading .section-index {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow);
}

.flagship-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 72px;
}

.flagship-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, .7);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
}

.flagship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 90px rgba(31, 36, 32, .14);
}

.flagship-top {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255,255,255,.8);
  background: #17382c;
}

.flagship-eval .flagship-top { background: #4c43a8; }
.flagship-graph .flagship-top { background: #125f5a; }

.flagship-index {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.flagship-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.flagship-preview {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.delivery-preview {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 28px 24px;
  background: linear-gradient(135deg, #bdd8ca, #edf2ec);
}

.preview-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px 9px;
  border-radius: 9px 0 0 9px;
  background: #153329;
}

.preview-rail i {
  height: 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.18);
}

.preview-main {
  padding: 15px;
  border-radius: 0 9px 9px 0;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 36px rgba(27, 73, 52, .12);
}

.preview-main > span {
  display: block;
  width: 42%;
  height: 7px;
  border-radius: 5px;
  background: #cfd9d3;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.preview-metrics b {
  height: 45px;
  border-radius: 6px;
  background: #edf2ef;
}

.preview-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.preview-flow i {
  position: relative;
  width: 27px;
  height: 27px;
  border: 5px solid #d8e6df;
  border-radius: 50%;
  background: #3f9b72;
}

.preview-flow i:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 22px;
  width: 48px;
  height: 2px;
  background: #cbdad2;
}

.eval-preview {
  background:
    radial-gradient(circle at 85% 0, rgba(255,255,255,.28), transparent 25%),
    linear-gradient(135deg, #8377df, #dcd8f7);
}

.eval-head {
  position: absolute;
  top: 29px;
  left: 26px;
  display: grid;
  gap: 7px;
}

.eval-head i {
  width: 105px;
  height: 7px;
  border-radius: 5px;
  background: rgba(255,255,255,.7);
}

.eval-head i:last-child {
  width: 68px;
  background: rgba(255,255,255,.35);
}

.eval-chart {
  position: absolute;
  left: 27px;
  right: 120px;
  bottom: 29px;
  height: 104px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.eval-chart b {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: rgba(255,255,255,.58);
}

.eval-score {
  position: absolute;
  right: 24px;
  bottom: 30px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 19px;
  color: #433a9b;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 30px rgba(58,50,138,.16);
}

.eval-score strong {
  font-family: Georgia, serif;
  font-size: 26px;
}

.eval-score span {
  margin-top: 4px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
}

.graph-preview {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 12%),
    linear-gradient(135deg, #b8dad7, #edf4f2);
}

.graph-preview svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-preview path {
  fill: none;
  stroke: rgba(22,104,99,.42);
  stroke-width: 2;
}

.graph-preview i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 25px;
  height: 25px;
  border: 6px solid rgba(255,255,255,.82);
  border-radius: 50%;
  background: #1c8179;
  box-shadow: 0 7px 18px rgba(18,94,89,.2);
}

.graph-preview i:nth-of-type(2),
.graph-preview i:nth-of-type(5) {
  background: #6a5daa;
}

.graph-preview i:nth-of-type(4),
.graph-preview i:nth-of-type(6) {
  background: #bd7d2d;
}

.flagship-copy {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 27px 26px 28px;
}

.flagship-copy .project-tags {
  margin-bottom: 17px;
}

.flagship-copy h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.flagship-copy p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.flagship-copy ul {
  display: grid;
  gap: 9px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.flagship-copy li {
  position: relative;
  padding-left: 15px;
  color: #414941;
  font-size: 11px;
  line-height: 1.55;
}

.flagship-copy li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.flagship-copy .project-link {
  padding-top: 25px;
}

.existing-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.existing-heading span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.existing-heading h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.project-featured {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  margin-bottom: 24px;
}

.project-body {
  padding: 56px 32px 48px 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-number {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 2;
  color: rgba(21, 24, 22, .4);
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}

.project-tags span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .5);
  font-size: 11px;
  font-weight: 700;
}

.project-card h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.project-card p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.project-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: #383d39;
  font-size: 14px;
}

.project-points li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.project-link span {
  transition: transform .2s ease;
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

.project-visual {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 56px;
}

.attribution-visual {
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.55), transparent 26%),
    linear-gradient(135deg, #cfdccf 0%, #9cbba9 100%);
}

.mini-window {
  width: min(100%, 440px);
  padding: 18px;
  border: 1px solid rgba(21, 24, 22, .15);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 30px 60px rgba(28, 67, 49, .22);
  transform: rotate(1.5deg);
}

.mini-top {
  display: flex;
  gap: 6px;
  padding: 2px 0 15px;
  border-bottom: 1px solid #e2e4e0;
}

.mini-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9beb9;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.metric-row span {
  padding: 14px;
  border-radius: 13px;
  color: #6d746e;
  background: #f1f3ef;
  font-size: 11px;
}

.metric-row b {
  display: block;
  margin-bottom: 3px;
  color: #1f2822;
  font-family: Georgia, serif;
  font-size: 23px;
}

.bar-stack {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.bar-stack i {
  width: var(--w);
  height: 10px;
  border-radius: 999px;
  background: #2d6b4f;
  opacity: calc(.45 + var(--w) / 200);
}

.reason-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 17px;
  border: 1px solid #d7ddd7;
  border-radius: 14px;
}

.reason-card span,
.reason-card em {
  color: #6f756f;
  font-size: 11px;
  font-style: normal;
}

.reason-card b {
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-compact {
  min-height: 410px;
  padding: 46px 46px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(31, 36, 32, .14);
}

.project-compact h3 {
  font-size: 38px;
}

.project-inverse {
  color: var(--white);
  border-color: #202622;
  background: var(--ink);
}

.project-inverse .project-number,
.project-inverse p {
  color: #aeb6af;
}

.project-inverse .project-tags span {
  color: #c6cec7;
  border-color: #3a423c;
  background: rgba(255, 255, 255, .04);
}

.project-inverse .project-link {
  color: var(--white);
}

.principles {
  border-top: 1px solid var(--line);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-grid article {
  min-height: 270px;
  padding: 36px 34px;
  border-right: 1px solid var(--line);
}

.principle-grid article:last-child {
  border-right: 0;
}

.principle-grid span {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
}

.principle-grid h3 {
  margin: 58px 0 13px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  font-weight: 500;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .hero {
    min-height: 580px;
    padding: 82px 0;
  }

  .hero h1 {
    font-size: clamp(54px, 13vw, 84px);
  }

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

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

  .flagship-card {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
  }

  .flagship-top {
    grid-column: 1 / -1;
  }

  .flagship-preview {
    height: auto;
    min-height: 100%;
  }

  .flagship-copy {
    min-height: 420px;
  }

  .project-body {
    min-height: 520px;
    padding: 50px 38px 42px;
  }

  .project-visual {
    min-height: 420px;
  }

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

  .principle-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-grid article:last-child {
    border-bottom: 0;
  }

  .principle-grid h3 {
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .nav-meta {
    font-size: 0;
  }

  .nav-meta::after {
    content: "产品实作";
    font-size: 12px;
  }

  .hero {
    min-height: 560px;
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 39px;
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .projects,
  .principles {
    padding: 68px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .project-card {
    border-radius: 20px;
  }

  .flagship-grid {
    margin-bottom: 54px;
  }

  .flagship-card {
    display: block;
  }

  .flagship-preview {
    height: 210px;
  }

  .flagship-copy {
    min-height: 430px;
    padding: 25px 23px 28px;
  }

  .flagship-copy h3 {
    font-size: 34px;
  }

  .project-body,
  .project-compact {
    min-height: 450px;
    padding: 38px 26px 32px;
  }

  .project-card h3,
  .project-compact h3 {
    font-size: 37px;
  }

  .project-visual {
    min-height: 320px;
    padding: 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
