:root {
  --ink: #101010;
  --paper: #ffffff;
  --soft: #f3f3f0;
  --line: #d6d6d0;
  --red: #ff4f3a;
  --blue: #2f6bff;
  --yellow: #f4c94a;
  --muted: #64645f;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 7px 14px;
  border-bottom: 3px solid transparent;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
}

.download-button,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 900;
  line-height: 1.2;
}

.download-button {
  color: var(--paper);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
}

.download-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.text-button {
  background: var(--paper);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  border-bottom: 2px solid var(--ink);
  background: var(--soft);
}

.hero-grid {
  min-height: 626px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;
  gap: 54px;
  padding-block: 34px 30px;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 10em;
  margin: 0;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy > p:not(.kicker) {
  max-width: 650px;
  margin: 22px 0 0;
  color: #373733;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 520px;
  margin-top: 30px;
  border-top: 2px solid var(--ink);
}

.hero-meta span {
  padding: 11px 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 2px solid var(--ink);
}

.issue-number {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--red);
  font-size: 74px;
  font-weight: 950;
  line-height: 1;
}

.shot {
  position: absolute;
  width: auto;
  max-width: 400px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  object-fit: cover;
  object-position: top;
}

.shot-a {
  left: 16px;
  bottom: 94px;
  height: 330px;
  z-index: 3;
}

.shot-b {
  left: 190px;
  bottom: 126px;
  height: 300px;
  z-index: 2;
}

.shot-c {
  right: 4px;
  bottom: 158px;
  height: 254px;
  z-index: 1;
}

.media-caption {
  position: absolute;
  right: 4px;
  bottom: 20px;
  z-index: 5;
  padding: 7px 11px;
  color: var(--paper);
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-index {
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}

.feature-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.index-item {
  min-height: 112px;
  padding: 20px;
  border-right: 2px solid var(--ink);
}

.index-item:last-child {
  border-right: 0;
}

.index-item b {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.index-item span {
  color: #393931;
  font-size: 13px;
}

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

.section-dark {
  color: var(--paper);
  background: var(--ink);
}

.section-blue {
  color: var(--paper);
  background: var(--blue);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.section-rule {
  width: 104px;
  height: 10px;
  background: var(--red);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: auto;
  max-width: 400px;
  height: 420px;
  margin-inline: auto;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  object-fit: contain;
}

.gallery-item:nth-child(2) img {
  height: 370px;
}

.gallery-item:nth-child(3) img {
  height: 320px;
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
}

.gallery-item figcaption b {
  color: var(--blue);
  font-size: 20px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #444;
  border-left: 1px solid #444;
}

.function-item {
  min-height: 184px;
  padding: 28px;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
}

.function-item b {
  display: block;
  color: var(--red);
  font-size: 13px;
}

.function-item h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.function-item p {
  margin: 0;
  color: #c8c8c2;
}

.route-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.route-card {
  min-height: 240px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.route-card:nth-child(2) {
  color: var(--paper);
  background: var(--blue);
}

.route-card h3 {
  margin: 26px 0 10px;
  font-size: 27px;
}

.route-card p {
  margin: 0 0 24px;
}

.route-card a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

.faq-preview article {
  padding: 24px;
  border-left: 5px solid var(--red);
  background: var(--soft);
}

.faq-preview h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-preview p {
  margin: 0;
  color: var(--muted);
}

.final-action {
  padding-block: 54px;
  border-bottom: 2px solid var(--ink);
  background: var(--red);
}

.final-action-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.final-action h2 {
  max-width: 620px;
  margin: 0;
  font-size: 35px;
  line-height: 1.25;
}

.final-action .download-button {
  color: var(--ink);
  background: var(--paper);
}

.page-hero {
  padding-block: 62px 48px;
  border-bottom: 2px solid var(--ink);
  background: var(--soft);
}

.page-hero h1 {
  max-width: 14em;
  font-size: 50px;
}

.page-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: #3f3f3a;
  font-size: 17px;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px;
  padding-block: 64px;
}

.side-index {
  align-self: start;
  position: sticky;
  top: 98px;
  border-top: 6px solid var(--blue);
}

.side-index a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.article-flow section {
  scroll-margin-top: 100px;
  padding: 0 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.article-flow h2 {
  margin: 0 0 18px;
  font-size: 29px;
}

.article-flow h3 {
  margin: 26px 0 9px;
  font-size: 20px;
}

.article-flow p,
.article-flow li {
  color: #3f3f3a;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  min-height: 74px;
  padding: 0 0 28px 64px;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--blue);
  font-weight: 900;
}

.notice {
  padding: 18px 20px;
  border-left: 6px solid var(--red);
  background: #fff0ed;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.faq-list summary {
  position: relative;
  min-height: 58px;
  padding: 15px 56px 15px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 11px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--blue);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--red);
}

.faq-answer {
  padding: 0 18px 18px;
  color: #3f3f3a;
}

.faq-answer p {
  margin: 0;
}

.site-footer {
  padding-block: 34px;
  text-align: center;
  background: var(--ink);
  color: #d4d4ce;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--paper);
  font-weight: 800;
}

.site-footer p {
  max-width: 820px;
  margin: 8px auto;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .shot-a {
    left: 8px;
  }

  .shot-b {
    left: 150px;
  }

  .gallery-item img {
    height: 360px;
  }
}

@media (max-width: 780px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .site-header,
  .header-inner {
    min-height: 64px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .header-inner > .download-button {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    padding: 14px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 22px 18px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
    font-size: 38px;
  }

  .hero-copy > p:not(.kicker) {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-meta {
    margin-top: 18px;
  }

  .hero-media {
    height: 244px;
    border-top: 2px solid var(--ink);
    border-left: 0;
  }

  .issue-number {
    top: 6px;
    font-size: 48px;
  }

  .shot {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .shot-a {
    left: 4px;
    bottom: 12px;
    height: 214px;
  }

  .shot-b {
    left: 34%;
    bottom: 27px;
    height: 182px;
  }

  .shot-c {
    right: 5px;
    bottom: 42px;
    height: 150px;
  }

  .media-caption {
    display: none;
  }

  .feature-index-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-item:nth-child(2) {
    border-right: 0;
  }

  .index-item:nth-child(-n + 2) {
    border-bottom: 2px solid var(--ink);
  }

  .section {
    padding-block: 54px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .gallery-grid,
  .faq-preview {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 16px;
  }

  .gallery-item img,
  .gallery-item:nth-child(2) img,
  .gallery-item:nth-child(3) img {
    width: auto;
    height: 238px;
  }

  .gallery-item figcaption {
    grid-template-columns: 38px 1fr;
    margin: 0;
  }

  .route-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-index {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 14px;
  }

  .page-hero {
    padding-block: 42px 34px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta span {
    font-size: 11px;
  }

  .shot-a {
    height: 206px;
  }

  .shot-b {
    left: 31%;
    height: 176px;
  }

  .shot-c {
    height: 144px;
  }

  .feature-index-grid,
  .function-grid {
    grid-template-columns: 1fr;
  }

  .index-item,
  .index-item:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .index-item:last-child {
    border-bottom: 0;
  }

  .gallery-item {
    grid-template-columns: 124px 1fr;
  }

  .gallery-item img,
  .gallery-item:nth-child(2) img,
  .gallery-item:nth-child(3) img {
    height: 210px;
  }

  .final-action-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-action h2 {
    font-size: 29px;
  }
}
