:root {
  --bg: #eef7f4;
  --bg-strong: #d8eee7;
  --ink: #112925;
  --muted: #5d746f;
  --line: rgba(17, 41, 37, 0.12);
  --card: rgba(255, 255, 255, 0.78);
  --teal: #0b8f7f;
  --teal-dark: #05695e;
  --blue: #2b6ef3;
  --green: #18a66a;
  --amber: #d88716;
  --shadow: 0 24px 70px rgba(8, 48, 42, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(11, 143, 127, 0.23), transparent 30rem),
    radial-gradient(circle at 92% 0%, rgba(43, 110, 243, 0.14), transparent 25rem),
    linear-gradient(135deg, var(--bg), #f8fbf6 58%, var(--bg-strong));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 41, 37, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 41, 37, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 58px;
}

.page-shell.compact {
  width: min(1080px, calc(100% - 32px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(17, 41, 37, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.topbar nav,
.actions,
.chips,
.card-head,
.download-preview,
.notice {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--teal), #0a4b55);
  box-shadow: 0 12px 28px rgba(11, 143, 127, 0.28);
}

.topbar nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar nav a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.topbar nav a:hover,
.topbar nav .pill {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 36px;
  align-items: center;
  padding: 82px 0 44px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 16px 34px rgba(11, 143, 127, 0.28);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.button.wide {
  width: 100%;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.chips {
  flex-wrap: wrap;
  gap: 10px;
}

.chips span {
  padding: 8px 12px;
  color: var(--teal-dark);
  border: 1px solid rgba(11, 143, 127, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.terminal-card,
.download-preview,
.features article,
.download-card,
.steps,
.notice {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.terminal-card {
  overflow: hidden;
  border-radius: 28px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.terminal-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6b61;
}

.terminal-header span:nth-child(2) {
  background: #ffbd4a;
}

.terminal-header span:nth-child(3) {
  background: #23c76a;
}

.terminal-header b {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

pre {
  margin: 0;
  padding: 28px;
  color: #d8fff5;
  background: #0d211f;
  font: 700 15px/1.9 "Cascadia Mono", Consolas, monospace;
  white-space: pre-wrap;
}

.download-preview {
  justify-content: space-between;
  gap: 22px;
  margin: 16px 0 30px;
  padding: 26px;
  border-radius: 30px;
}

.download-preview p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.features article,
.download-card,
.steps,
.notice {
  border-radius: 28px;
  padding: 24px;
}

.features p,
.download-card p,
.steps li,
.notice span {
  color: var(--muted);
  line-height: 1.75;
}

.icon,
.os-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  border-radius: 17px;
  font-size: 13px;
  font-weight: 900;
}

.icon.blue,
.os-icon.windows {
  background: linear-gradient(135deg, var(--blue), #0d9ac0);
}

.icon.green {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.icon.amber,
.os-icon.zip {
  background: linear-gradient(135deg, var(--amber), #e7b24b);
}

.os-icon.apple {
  background: linear-gradient(135deg, #263238, #607d8b);
}

.download-hero {
  padding: 66px 0 28px;
}

.download-hero h1 {
  max-width: 900px;
}

.download-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.download-card.preferred {
  position: relative;
  overflow: hidden;
}

.download-card.preferred::after {
  content: "推荐";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 11px;
  color: #fff;
  border-radius: 999px;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.card-head {
  gap: 16px;
  margin-bottom: 22px;
}

.card-head .os-icon {
  flex: 0 0 auto;
  margin: 0;
}

.meta {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta dt {
  color: var(--muted);
  font-weight: 800;
}

.meta dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  margin: 14px 0 0;
  font-size: 13px;
}

.steps {
  margin-top: 20px;
}

.steps.compact-list ol {
  grid-template-columns: 1fr;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link.disabled {
  pointer-events: none;
  color: var(--muted);
  text-decoration: none;
}

.steps ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.notice {
  gap: 12px;
  margin-top: 18px;
}

.notice strong {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .topbar,
  .download-preview,
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    justify-content: flex-start;
  }

  .hero,
  .features,
  .download-grid,
  .steps ol {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .terminal-card {
    order: -1;
  }

  .download-preview .button {
    width: 100%;
  }
}
