* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #474747;
  background: #f2f2ed;
  font-size: 14px;
  line-height: 1.5;
}

.page-wrap {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.018) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.018) 75%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.018) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.018) 75%),
    #f2f2ed;
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  border-left: 1px solid #e3e3dc;
  border-right: 1px solid #e3e3dc;
  min-height: 100vh;
}

/* ── Header ── */
.topbar {
  padding: 14px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.git-mark {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f05133;
  color: #fff;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.git-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  color: #1f1f1f;
}

.tagline {
  font-size: 12px;
  color: #8a8a84;
  margin-left: 6px;
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search {
  width: 260px;
  border: 1px solid #d5d5d2;
  border-radius: 16px;
  background: #f7f7f6;
  color: #8a8a84;
  padding: 6px 12px;
  font-size: 12px;
}

.theme {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #c4c4c1;
  display: grid;
  place-items: center;
  color: #666;
  font-size: 14px;
}

/* ── Nav ── */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 20px 12px;
  border-bottom: 1px solid #dfdfd9;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  padding: 4px 10px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #c7412e;
}

/* ── Hero ── */
.hero {
  padding: 20px 20px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 14px;
  color: #444;
}

.hero-text strong {
  color: #1e7ea8;
  font-weight: 700;
}

.hero-graph {
  position: relative;
  min-height: 160px;
}

.node {
  position: absolute;
  width: 52px;
  height: 38px;
  background: linear-gradient(#fff, #f0f0ec);
  border: 1px solid #d7d7d1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.n1 { top: 4px; left: 58px; }
.n2 { top: 34px; left: 0; }
.n3 { top: 34px; right: 48px; }
.n4 { top: 90px; left: 48px; }
.n5 { top: 90px; right: 0; }

.line {
  position: absolute;
  height: 5px;
  transform-origin: left center;
  border-radius: 5px;
}

.l1 { top: 58px; left: 52px; width: 80px; background: #f05d3d; transform: rotate(-28deg); }
.l2 { top: 68px; left: 72px; width: 80px; background: #13a8bd; }
.l3 { top: 108px; left: 42px; width: 72px; background: #d7a208; transform: rotate(26deg); }
.l4 { top: 112px; left: 130px; width: 84px; background: #f05d3d; transform: rotate(24deg); }

/* ── Middle: features + download ── */
.middle {
  border-top: 1px solid #dfdfd9;
  border-bottom: 1px solid #dfdfd9;
  background: #f7f7f3;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 20px;
  align-items: start;
}

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

.features article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecece8;
  display: grid;
  place-items: center;
  color: #9b9b95;
  font-size: 16px;
}

.features h3 {
  margin: 0 0 2px;
  color: #c7412e;
  font-size: 15px;
  font-weight: 700;
}

.features p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #666;
}

/* ── Download card ── */
.download-card {
  border: 1px solid #e0d1be;
  background: #f4efe7;
  border-radius: 4px;
  padding: 14px;
}

.release-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.git-mini {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f29b8b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.release-label {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.release-ver {
  margin: 1px 0;
  font-size: 28px;
  color: #2f2f2f;
  font-weight: 700;
  line-height: 1.1;
}

.release-note {
  margin: 0;
  font-size: 11px;
  color: #888;
}

.btn-primary,
.btn-secondary {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
}

.btn-primary {
  background: #f04a33;
  color: #fff;
}

.btn-secondary {
  background: #f2f2ef;
  border: 1px solid #dddcd6;
  color: #4b4b46;
}

/* ── Book row ── */
.book-row {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dfdfd9;
}

.book-cover {
  flex-shrink: 0;
  width: 42px;
  height: 56px;
  background: linear-gradient(180deg, #121212, #3b1e18 60%, #111);
  border: 1px solid #222;
}

.book-row p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  color: #555;
}

.book-row strong,
.book-row a {
  color: #1a7ca8;
  text-decoration: none;
}

/* ── Footer ── */
.foot {
  padding: 10px 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: #888;
}

.foot-title {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.foot-left p {
  margin: 2px 0 0;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .git-word { font-size: 32px; }
  .tagline { display: none; }
  .hero,
  .middle { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .search { width: 180px; }
}
