/* =========================================================
   拾罗阁 · 下载选择页
   ========================================================= */

.download-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 48px;
  padding: 50px 0 52px;
  border-bottom: 1px solid var(--line);
}

.download-page-copy h1 {
  margin: 13px 0 15px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.download-page-copy .page-hero-lead {
  max-width: 500px;
}

.download-page-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 345px;
  overflow: hidden;
  border: 1px solid rgba(216, 183, 119, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 47%, rgba(216, 183, 119, 0.22), transparent 22%),
    radial-gradient(circle at 70% 24%, rgba(216, 73, 44, 0.15), transparent 31%),
    linear-gradient(135deg, #13241b, #213b2d 58%, #3d2b1b);
  box-shadow: 0 22px 48px rgba(23, 35, 28, 0.16);
}

.download-page-art::before {
  content: "";
  position: absolute;
  width: 255px;
  height: 255px;
  border: 1px solid rgba(216, 183, 119, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(216, 183, 119, 0.07),
    0 0 0 44px rgba(216, 183, 119, 0.04),
    0 0 0 66px rgba(216, 183, 119, 0.025);
}

.download-page-rings {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255, 248, 235, 0.12);
  border-radius: 50%;
}

.download-page-glyph {
  position: relative;
  z-index: 1;
  color: #f1d7a4;
  font-family: var(--serif);
  font-size: 142px;
  font-weight: 600;
  line-height: 1;
  text-shadow: 0 10px 38px rgba(0, 0, 0, 0.32);
}

.download-page-caption {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(255, 248, 235, 0.38);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.55;
  letter-spacing: 0.13em;
}

.download-gallery {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
}

.download-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 17px;
}

.download-gallery-head h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(29px, 3.3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.download-gallery-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  text-align: right;
}

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

.download-gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.download-gallery-image {
  overflow: hidden;
  aspect-ratio: 1.32;
  background: var(--ink);
}

.download-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.002);
  transition: transform 0.6s var(--ease);
}

.download-gallery-card:hover .download-gallery-image img {
  transform: scale(1.045);
}

.download-gallery-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px 11px;
  border-top: 1px solid var(--line);
}

.download-gallery-card figcaption > span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
}

.download-gallery-card figcaption strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.download-gallery-card figcaption small {
  margin-left: auto;
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.4;
  text-align: right;
}

.download-page-contact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 345px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgba(216, 183, 119, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 10%, rgba(216, 183, 119, 0.17), transparent 30%),
    linear-gradient(135deg, #13241b, #213b2d 58%, #3d2b1b);
  color: var(--cream);
  box-shadow: 0 22px 48px rgba(23, 35, 28, 0.16);
}

.download-page-contact::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -120px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(216, 183, 119, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(216, 183, 119, 0.04),
    0 0 0 48px rgba(216, 183, 119, 0.025);
  pointer-events: none;
}

.download-contact-head {
  position: relative;
  z-index: 1;
}

.download-contact-head p {
  margin: 0;
  color: #d8b477;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}

.download-contact-head strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.download-contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  width: 100%;
  max-width: 430px;
  margin: 15px auto 12px;
}

.download-contact-item {
  min-width: 0;
  margin: 0;
  padding: 8px 8px 9px;
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.97);
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.download-contact-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 5px;
  background: #fff;
}

.download-contact-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-contact-item figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 7px;
}

.download-contact-item figcaption strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}

.download-contact-item figcaption small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.35;
}

.download-contact-note {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 248, 235, 0.42);
  font-size: 7.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
}

.download-choice-aside {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: 330px;
}

.download-perk {
  position: relative;
  min-width: 280px;
  overflow: hidden;
  padding: 13px 18px 14px;
  border: 1px solid rgba(216, 183, 119, 0.42);
  border-radius: 11px;
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 183, 119, 0.2), transparent 34%),
    linear-gradient(135deg, #17291f, #2d4b39);
  color: var(--cream);
  box-shadow: 0 12px 26px rgba(23, 35, 28, 0.12);
}

.download-perk::after {
  content: "8折";
  position: absolute;
  right: -3px;
  bottom: -15px;
  color: rgba(255, 248, 235, 0.07);
  font-family: var(--serif);
  font-size: 53px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.download-perk-label {
  position: relative;
  z-index: 1;
  display: block;
  color: #d8b477;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
}

.download-perk strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.download-perk em {
  color: #f1d7a4;
  font-style: normal;
}

.download-choice-aside .page-section-side {
  margin-bottom: 0;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 25px;
}

.download-choice {
  --cover-a: #17382a;
  --cover-b: #2d6a53;
  --cover-accent: #f1d7a4;
  --cover-glow: rgba(241, 215, 164, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    box-shadow 0.25s var(--ease);
}

.download-choice:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(23, 35, 28, 0.13);
}

.tone-jade {
  --cover-a: #17382a;
  --cover-b: #2d6a53;
  --cover-accent: #f1d7a4;
  --cover-glow: rgba(241, 215, 164, 0.22);
}

.tone-violet {
  --cover-a: #241b3f;
  --cover-b: #58428b;
  --cover-accent: #e8dcff;
  --cover-glow: rgba(167, 139, 250, 0.25);
}

.tone-gold {
  --cover-a: #3a2a13;
  --cover-b: #8b6630;
  --cover-accent: #ffe6b3;
  --cover-glow: rgba(255, 214, 150, 0.23);
}

.tone-blue {
  --cover-a: #102c3b;
  --cover-b: #2e6b86;
  --cover-accent: #d9f2ff;
  --cover-glow: rgba(133, 215, 255, 0.24);
}

.tone-amber {
  --cover-a: #382414;
  --cover-b: #925326;
  --cover-accent: #ffd6a0;
  --cover-glow: rgba(255, 180, 100, 0.22);
}

.tone-crimson {
  --cover-a: #341817;
  --cover-b: #7b2e27;
  --cover-accent: #ffd2c4;
  --cover-glow: rgba(255, 120, 100, 0.22);
}

.tone-ink {
  --cover-a: #1c211d;
  --cover-b: #465144;
  --cover-accent: #e9dfc9;
  --cover-glow: rgba(233, 223, 201, 0.18);
}

.tone-help {
  --cover-a: #183025;
  --cover-b: #2d6a53;
  --cover-accent: #f1d7a4;
  --cover-glow: rgba(241, 215, 164, 0.2);
}

.download-choice-cover {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 92px;
  overflow: hidden;
  padding: 13px 15px;
  background:
    radial-gradient(circle at 82% 12%, var(--cover-glow), transparent 34%),
    linear-gradient(135deg, var(--cover-a), var(--cover-b));
}

.download-choice-cover::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -25px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(255, 255, 255, 0.035),
    0 0 0 32px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.download-choice-badge {
  position: relative;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cover-accent);
  font-family: var(--mono);
  font-size: 6.5px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.download-choice-glyph {
  position: absolute;
  right: 16px;
  bottom: -14px;
  z-index: 1;
  color: var(--cover-accent);
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.92;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s var(--ease);
}

.download-choice:hover .download-choice-glyph {
  transform: translateY(-2px) scale(1.03);
}

.download-choice-no {
  position: absolute;
  top: 13px;
  right: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 7.5px;
}

.download-choice-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 15px;
}

.download-choice h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.download-choice p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.65;
}

.download-choice-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
}

.download-choice-action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.download-choice:hover .download-choice-action svg {
  transform: translateX(3px);
}

.download-choice.is-help {
  cursor: default;
  border-style: dashed;
  background: rgba(45, 106, 83, 0.045);
}

.download-choice.is-help:hover {
  border-color: var(--line);
  transform: none;
  box-shadow: none;
}

.download-choice-help {
  border: 0;
  background: transparent;
  color: var(--jade);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
}

.download-choice-help:hover {
  color: var(--accent);
}

.download-page-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding: 27px 30px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 20%, rgba(216, 183, 119, 0.16), transparent 26%),
    var(--ink);
  color: var(--cream);
}

.download-page-help .eyebrow {
  color: rgba(255, 248, 235, 0.48);
}

.download-page-help .eyebrow-dot {
  background: #d8b477;
}

.download-page-help h2 {
  margin: 9px 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.download-page-help p {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 248, 235, 0.55);
  font-size: 10px;
  line-height: 1.75;
}

.download-page-help .btn {
  flex: 0 0 auto;
}

@media (min-width: 1100px) {
  .download-choice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
  }

  .download-choice {
    min-height: 210px;
  }

  .download-choice.is-help {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .download-page-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 35px;
  }

  .download-page-contact {
    min-height: 0;
  }

  .download-contact-grid {
    max-width: 430px;
  }

  .download-page-art {
    min-height: 230px;
  }

  .download-page-glyph {
    font-size: 104px;
  }

  .download-page-art::before {
    width: 190px;
    height: 190px;
  }

  .download-page-rings {
    width: 230px;
    height: 230px;
  }

  .download-page-copy h1 {
    font-size: clamp(42px, 8vw, 58px);
  }
}

@media (max-width: 700px) {
  .download-page-hero {
    padding: 25px 0 35px;
  }

  .download-choice-aside {
    align-items: flex-start;
    max-width: none;
  }

  .download-perk {
    width: 100%;
    max-width: 340px;
    min-width: 0;
  }

  .download-gallery {
    padding: 24px 0 19px;
  }

  .download-gallery-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .download-gallery-head > p {
    text-align: left;
  }

  .download-gallery-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .download-gallery-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .download-gallery-image {
    aspect-ratio: 1.2;
  }

  .download-page-art {
    min-height: 190px;
    border-radius: 18px;
  }

  .download-page-contact {
    padding: 20px;
    border-radius: 18px;
  }

  .download-contact-head strong {
    font-size: 21px;
  }

  .download-page-glyph {
    font-size: 82px;
  }

  .download-choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-choice {
    min-height: 200px;
  }

  .download-choice-cover {
    min-height: 88px;
  }

  .download-choice h3 {
    font-size: 23px;
  }

  .download-page-help {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }

  .download-page-help h2 {
    font-size: 26px;
  }

  .download-page-help .btn {
    width: 100%;
  }
}
