:root {
  --ink: #173334;
  --muted: #647b7a;
  --paper: #f6f4ec;
  --accent: #0d6b67;
  --accent-dark: #07504d;
  --line: #d7dfd8;
  --warm: #e6a84a;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(13, 107, 103, .045) 1px, transparent 1px), linear-gradient(rgba(13, 107, 103, .045) 1px, transparent 1px);
  background-size: 28px 28px;
}

main {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
}

.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  background: var(--accent);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--warm);
}

.brand-name {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-type {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

h1 {
  max-width: 520px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(36px, 9vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.summary {
  max-width: 470px;
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.load-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.load-status[data-state="error"] {
  color: #a04a2a;
}

.download {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--accent-dark);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.download:hover, .download:focus-visible {
  background: var(--accent-dark);
  outline: 3px solid rgba(230, 168, 74, .75);
  outline-offset: 3px;
}

.download:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--accent-dark);
}

.download-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.meta {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta-row {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 12px;
  padding: 15px 0;
  font-size: 14px;
  line-height: 1.55;
}

.meta-row + .meta-row { border-top: 1px solid var(--line); }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 600; }
.meta dd a { color: var(--accent-dark); word-break: break-all; }

.steps {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.steps strong { color: var(--ink); }

@media (min-width: 600px) {
  main { padding-right: 48px; padding-left: 48px; }
  .download { width: 330px; }
}
