/* =========================================================
   拾机 PICKUP · 手机奖品限时广告
   视觉方向：票据 / 印刷广告（纸面 + 墨黑 + 印章红 + 荧光笔黄）
   ========================================================= */

/* ---------- 1. 设计变量 ---------- */
:root {
  --paper: #eeeae0;
  --paper-deep: #e2ddd0;
  --paper-lift: #f6f3ea;
  --ink: #17160f;
  --ink-70: #4c4840;
  --ink-40: #6d685c;
  --stamp: #b4311b;
  --marker: #e6c23c;
  --line: rgba(23, 22, 15, 0.16);
  --line-strong: rgba(23, 22, 15, 0.42);
  --sans: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 22, 15, 0.075) 1px, transparent 1.2px);
  background-size: 17px 17px;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: 78px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

::selection {
  background: var(--marker);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. 页眉（窄条报头） ---------- */
.masthead {
  border-bottom: 1.5px solid var(--ink);
  padding: 12px 0 10px;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
}

.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
}

.masthead-brand strong {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.masthead-brand em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-70);
}

.masthead-right {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 4. 首屏 ---------- */
.hero {
  padding: 26px 0 0;
}

.hero-grid {
  display: grid;
  gap: 30px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  padding: 4px 10px 4px 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: rise 0.7s var(--ease) both;
  animation-delay: 0.04s;
}

.hero-eyebrow i {
  width: 7px;
  height: 7px;
  background: var(--stamp);
  display: inline-block;
  border-radius: 50%;
}

.hero-title {
  margin-top: 18px;
  font-weight: 900;
  font-size: clamp(44px, 13vw, 92px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  animation: rise 0.8s var(--ease) both;
  animation-delay: 0.1s;
}

.hero-title .line {
  display: block;
}

.hero-title .num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-lead {
  margin-top: 18px;
  max-width: 31em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-70);
  animation: rise 0.8s var(--ease) both;
  animation-delay: 0.16s;
}

.hero-lead b {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  animation: rise 0.8s var(--ease) both;
  animation-delay: 0.22s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn:hover {
  background: #000;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--paper-deep);
}


/* 数据条 */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.stat b {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 12px;
  color: var(--ink-70);
}

/* 首屏图片 */
.hero-media {
  position: relative;
  animation: rise 0.9s var(--ease) both;
  animation-delay: 0.14s;
}

.hero-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  box-shadow: 14px 14px 0 0 var(--paper-deep);
  background: var(--paper-deep);
}

.stamp {
  position: absolute;
  top: -22px;
  left: -12px;
  width: 100px;
  height: 100px;
  border: 2.5px solid var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-11deg);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background: rgba(238, 234, 224, 0.55);
  backdrop-filter: none;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(180, 49, 27, 0.65);
  border-radius: 50%;
}

.stamp .stamp-sm {
  font-size: 11px;
  letter-spacing: 0.16em;
}

.stamp .stamp-lg {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
}

/* ---------- 5. 滚动词条 ---------- */
.ticker {
  margin-top: 34px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 0;
  overflow: hidden;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  padding-right: 34px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.ticker-item i {
  font-style: normal;
  color: var(--marker);
  padding-right: 8px;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 6. 区块标题 ---------- */
.section {
  padding-top: 46px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 9px;
}

.section-title {
  font-size: clamp(26px, 5.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-70);
  white-space: nowrap;
}

.section-lead {
  margin-top: 14px;
  max-width: 34em;
  font-size: 15px;
  color: var(--ink-70);
}

/* ---------- 7. 奖品 ---------- */
.prize-layout {
  display: grid;
  gap: 26px;
  margin-top: 22px;
}

.prize-photo {
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
}

.prize-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.prize-photo figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
}

.prize-list {
  border-bottom: 1px solid var(--line-strong);
}

.stub {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 12px;
  padding: 18px 0 16px;
  border-top: 1px dashed var(--line-strong);
}

.stub:first-child {
  border-top: 0;
}

.stub-no {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-70);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.stub-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.stub-name .tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px 3px;
  background: var(--marker);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 4px;
}

.stub-desc {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.65;
}

.stub-qty {
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.stub-qty span {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-70);
}

.prize-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-40);
}

/* ---------- 8. 参与步骤 ---------- */
.steps {
  margin-top: 22px;
  border-top: 1.5px solid var(--ink);
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.step-no {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
}

.step-text {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.7;
}

/* ---------- 9. 规则 + 领券 ---------- */
.claim-layout {
  display: grid;
  gap: 26px;
  margin-top: 24px;
  align-items: start;
}

.rules-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.rules-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.rules-table col:nth-child(1) {
  width: 32%;
}

.rules-table tbody tr {
  border-bottom: 1px dashed var(--line);
}

.rules-table th {
  text-align: left;
  vertical-align: top;
  padding: 11px 10px 11px 0;
  font-weight: 600;
  color: var(--ink-70);
}

.rules-table td {
  vertical-align: top;
  padding: 11px 0;
  color: var(--ink);
}

.rules-foot {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-40);
}

/* 领券卡（深色票据） */
.claim {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 26px 22px 22px;
  overflow: hidden;
}

.claim::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background-image: radial-gradient(circle at 6px 0, var(--paper) 5px, transparent 5.5px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
  opacity: 0.9;
}

.claim-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(238, 234, 224, 0.66);
}

.claim-title {
  margin-top: 8px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.claim-sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(238, 234, 224, 0.74);
  line-height: 1.65;
}

.claim-form {
  margin-top: 20px;
}

.field {
  position: relative;
  display: block;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  background: transparent;
  border: 1.5px solid rgba(238, 234, 224, 0.45);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s ease;
}

.field input::placeholder {
  color: rgba(238, 234, 224, 0.52);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
}

.field input:focus {
  outline: none;
  border-color: var(--marker);
}

.field.is-error input {
  border-color: #ff7a5e;
}

.field-error {
  display: none;
  margin-top: 7px;
  font-size: 12.5px;
  color: #ff9c86;
}

.field.is-error .field-error {
  display: block;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(238, 234, 224, 0.78);
  cursor: pointer;
}

.agree input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--stamp);
  flex: 0 0 auto;
  cursor: pointer;
}

.agree a {
  color: var(--marker);
  text-underline-offset: 3px;
}

.btn--submit {
  width: 100%;
  margin-top: 16px;
  min-height: 56px;
  background: var(--stamp);
  border-color: var(--stamp);
  color: #fff5ef;
  font-size: 17px;
}

.btn--submit:hover {
  background: #9c2917;
}

.claim-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(238, 234, 224, 0.62);
  line-height: 1.6;
}

/* 领券成功态 */
.ticket-result {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(238, 234, 224, 0.3);
}

.claim.is-claimed .claim-form {
  display: none;
}

.claim.is-claimed .ticket-result {
  display: block;
}

.ticket-result-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(238, 234, 224, 0.66);
}

.ticket-code {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--marker);
  word-break: break-all;
  font-variant-numeric: tabular-nums;
}

.ticket-result p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238, 234, 224, 0.8);
}

.btn--copy {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  background: transparent;
  border-color: rgba(238, 234, 224, 0.5);
  color: var(--paper);
}

.btn--copy:hover {
  background: rgba(238, 234, 224, 0.12);
}

/* ---------- 10. 页脚 ---------- */
.footer {
  margin-top: 50px;
  border-top: 1.5px solid var(--ink);
  padding: 18px 0 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--ink-70);
}

.footer-inner p {
  max-width: 46em;
  line-height: 1.7;
}

/* ---------- 11. 移动端底栏 / 提示 ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper-lift);
  border-top: 1.5px solid var(--ink);
}

.mobile-bar .btn {
  flex: 1;
  min-height: 46px;
  font-size: 15px;
  padding: 0 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 70;
  max-width: calc(100vw - 40px);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--paper-lift);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 12. 动效关键帧 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 13. 响应式：720px 以上 ---------- */
@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .wrap {
    padding: 0 32px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-media {
    width: 100%;
    max-width: 640px;
    margin: 6px auto 0;
  }

  .hero-actions .btn {
    min-width: 190px;
  }

  .stub {
    grid-template-columns: 46px 1fr auto;
    gap: 6px 18px;
    padding: 20px 0;
  }

  .stub-qty {
    grid-column: 3;
    grid-row: 1;
    display: block;
    margin-top: 0;
    padding-top: 4px;
    text-align: right;
  }

  .stub-qty span {
    display: block;
    margin-top: 3px;
  }

  .stub-name {
    font-size: 23px;
  }

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

  .step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 22px 22px;
    border-bottom: 0;
    border-right: 1px dashed var(--line-strong);
  }

  .step:first-child {
    padding-left: 0;
  }

  .step:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .step-no {
    font-size: 34px;
  }

  .claim-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: 40px;
  }

  .prize-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 34px;
  }

  .mobile-bar {
    display: none;
  }
}

/* ---------- 14. 响应式：1024px 以上 ---------- */
@media (min-width: 1024px) {
  .wrap {
    padding: 0 40px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .claim {
    padding: 30px 28px 26px;
  }

  .stub-name {
    font-size: 25px;
  }
}

/* ---------- 14b. 宽屏双栏首屏 ---------- */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
  }

  .hero-media {
    max-width: none;
    margin: 58px 0 0;
  }

  .hero-title {
    font-size: 92px;
  }
}

/* ---------- 15. 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .hero-media {
    animation: none;
  }

  .ticker-track {
    animation: none;
    width: 100%;
    overflow-x: auto;
  }

  .btn,
  .toast {
    transition: none;
  }
}

/* ---------- 11. 报名表单（姓名 / 电话 / 邮件） ---------- */
.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(238, 234, 224, 0.7);
}

.claim-form .field + .field {
  margin-top: 12px;
}

.form-msg {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(238, 234, 224, 0.76);
}

.form-msg.is-error {
  color: #ff9c86;
}

.form-msg.is-success {
  color: var(--marker);
}
