:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef6f3;
  --ink: #182323;
  --muted: #627070;
  --line: #d9e1e4;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #b45309;
  --blue: #335c81;
  --shadow: 0 14px 34px rgba(24, 35, 35, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

.hero {
  min-height: 620px;
  padding: 18px min(6vw, 72px) 76px;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(13, 32, 36, 0.9), rgba(15, 118, 110, 0.62)),
    url("../images/baidu_result_4.jpg") center / cover;
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 0;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-content {
  width: min(1120px, 100%);
  margin: 132px auto 0;
}

.eyebrow,
.section-label,
.tag,
.file-type {
  margin: 0 0 8px;
  color: #99d6c5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  color: #fff;
  background: var(--brand);
}

.button.secondary {
  color: #fff;
  background: var(--blue);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-heading {
  max-width: 790px;
  margin-bottom: 22px;
}

.section-label {
  color: var(--brand-dark);
}

h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.22;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.section-heading p:not(.section-label),
.feature-card p,
.download-card p,
.source-item p,
.block-title p {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.stats article,
.feature-card,
.download-card,
.source-item,
.review-card,
figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats article {
  padding: 18px;
}

.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--brand-dark);
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

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

.feature-card,
.download-card,
.review-card {
  padding: 22px;
}

.feature-card .tag,
.source-item .tag {
  color: var(--accent);
}

.download-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
}

.download-card.highlight {
  background: var(--surface-soft);
}

.file-type {
  color: var(--accent);
}

.source-list {
  display: grid;
  gap: 18px;
}

.source-item {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px;
}

.source-main p {
  margin-bottom: 0;
}

.check-list,
.review-card ul {
  margin: 0;
  padding-left: 20px;
  color: #334242;
}

.check-list {
  columns: 2;
}

.result-block {
  margin-top: 32px;
}

.block-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.block-title p {
  max-width: 620px;
  margin: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

figure {
  margin: 0;
  overflow: hidden;
}

figure img {
  width: 100%;
  display: block;
  background: #fff;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

footer {
  padding: 26px 16px 34px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    min-height: 560px;
    padding-inline: 18px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .hero-content {
    margin-top: 96px;
  }

  .stats,
  .project-grid,
  .download-grid,
  .review-grid,
  .image-grid,
  .gallery,
  .source-item {
    grid-template-columns: 1fr;
  }

  .source-item {
    align-items: start;
  }

  .check-list {
    columns: 1;
  }

  .block-title {
    display: block;
  }

  .block-title p {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 520px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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