/* ============ 落地页 ============ */

.hero {
  padding: clamp(44px, 9vw, 96px) 0 clamp(36px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.8fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 22px;
  font-size: clamp(46px, 7.2vw, 84px);
  line-height: 1.12;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-desc {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: clamp(14.5px, 1.6vw, 16.5px);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 30px;
}

.hero-actions .btn {
  min-height: 50px;
  padding: 0 26px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta b {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--cinnabar);
  font-weight: 500;
}

/* 竖排宣纸 */
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.scroll-paper {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 3 / 4;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 34px;
  background: linear-gradient(170deg, #fffdf6 0%, #f4efe1 62%, #eee7d5 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 0 60px rgba(195, 39, 43, 0.03);
  /* 界格 */
  background-image: repeating-linear-gradient(
      to bottom,
      transparent 0 calc(100% / 4 - 1px),
      rgba(43, 43, 43, 0.09) calc(100% / 4 - 1px) calc(100% / 4)
    );
}

.scroll-paper::before,
.scroll-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to right, #ded4be, #efe8d7 18%, #e6ddc8 50%, #efe8d7 82%, #ded4be);
  border-block: 1px solid rgba(43, 43, 43, 0.08);
}

.scroll-paper::before {
  top: -6px;
  border-radius: 2px;
}

.scroll-paper::after {
  bottom: -6px;
  border-radius: 2px;
}

.scroll-title {
  writing-mode: vertical-rl;
  display: flex;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 64px);
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.scroll-title span:last-child {
  color: var(--cinnabar);
}

.scroll-lines {
  writing-mode: vertical-rl;
  display: flex;
  gap: clamp(10px, 1.4vw, 16px);
  height: 100%;
  align-items: flex-start;
  padding-top: 4px;
}

.scroll-lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(43, 43, 43, 0.22) 0%,
    rgba(43, 43, 43, 0.1) 55%,
    rgba(43, 43, 43, 0) 100%
  );
}

.scroll-lines span:nth-child(even) {
  background: linear-gradient(
    to bottom,
    rgba(43, 43, 43, 0.08) 0%,
    rgba(43, 43, 43, 0.04) 40%,
    rgba(43, 43, 43, 0) 100%
  );
}

.scroll-seal {
  position: absolute;
  left: 30px;
  bottom: 34px;
  --seal-size: 46px;
  font-size: 23px;
  opacity: 0.92;
}

.hero-art-note {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--ink-4);
}

/* 区块 */
.section {
  padding: clamp(48px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: 0.06em;
}

.section-note {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
  white-space: nowrap;
  padding-bottom: 6px;
}

/* 示例卡片 */
.works-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 292px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  margin: -4px -4px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.works-track::-webkit-scrollbar {
  height: 4px;
}

.works-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.work-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px 20px;
  background: rgba(255, 253, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.work-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.work-card header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.work-card h3 {
  font-size: 20px;
  letter-spacing: 0.16em;
}

.work-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}

.work-lines {
  font-family: var(--font-poem);
  font-size: 19px;
  line-height: 2.1;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.work-lines p {
  margin: 0;
}

.work-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
}

.chip.on {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
  background: var(--cinnabar-soft);
}

/* 三步 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.step {
  background: rgba(255, 253, 246, 0.66);
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-no {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--cinnabar);
}

.step h3 {
  font-size: 19px;
  letter-spacing: 0.1em;
}

.step p {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
}

.step-demo {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.demo-line {
  height: 6px;
  border-radius: 99px;
  background: var(--paper-3);
}

.demo-line.short {
  width: 62%;
}

.chips-demo {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.check-demo {
  flex-direction: row;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.check-demo .ok {
  color: var(--bamboo);
}

/* CTA */
.cta-band {
  background: linear-gradient(120deg, rgba(195, 39, 43, 0.06), rgba(92, 115, 96, 0.08));
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.1em;
}

.cta-inner p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.cta-actions {
  display: flex;
  gap: 12px;
}

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 42px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.footer-note {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-art {
    order: 2;
    align-items: flex-start;
  }
  .scroll-paper {
    width: 100%;
    aspect-ratio: auto;
    height: 220px;
    padding: 20px 22px;
    background-image: none;
  }
  .scroll-title {
    font-size: clamp(36px, 11vw, 52px);
  }
  .scroll-seal {
    left: 24px;
    bottom: 22px;
    --seal-size: 36px;
    font-size: 18px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }
  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 56px);
  }
  .hero-meta {
    gap: 14px 18px;
    font-size: 11.5px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .works-track {
    grid-auto-columns: 82%;
  }
  .topnav a[href="#works"],
  .topnav a[href="#how"] {
    display: none;
  }
  .footer-note {
    margin-left: 0;
    width: 100%;
  }
}
