/* 印章猫官网 — 电子印章制作 / 抠图 / 生成器 */
:root {
  --seal-red: #c41919;
  --seal-red-deep: #8e1010;
  --seal-red-soft: #f8ebe6;
  --ink: #241816;
  --ink-soft: #4a3d38;
  --muted: #6d625c;
  --line: #eadfd4;
  --paper: #f7f1e8;
  --paper-deep: #f3e6d8;
  --white: #ffffff;
  --gold: #a6843d;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(48, 24, 18, 0.12);
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.seal-wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.seal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 246, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.seal-header.is-stuck {
  background: rgba(255, 250, 246, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(48, 24, 18, 0.05);
}

.seal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.seal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--seal-red-deep);
  letter-spacing: 0;
}

.seal-brand img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
}

.seal-footer .seal-brand img {
  width: 28px;
  height: 28px;
}

.seal-nav {
  display: flex;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.seal-nav a:hover {
  color: var(--seal-red-deep);
}

.seal-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  background: var(--seal-red);
  color: var(--white);
  padding: 12px 24px;
  box-shadow: none;
  transition: background 0.2s ease;
}

.seal-download:hover {
  background: var(--seal-red-deep);
}

.seal-download-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.seal-download-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.maker-hero {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 0;
  background: #f7f4ee;
}

.maker-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 440px;
  z-index: 0;
  pointer-events: none;
  background: url("../images/banner.png") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}

.maker-hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding-top: 4px;
  flex-shrink: 0;
}

.maker-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.maker-line {
  display: inline;
}

.maker-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 12px;
}

.maker-badge {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--seal-red-deep);
  background: none;
  padding: 0;
  letter-spacing: 0;
}

.maker-lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  margin: 0 auto 24px;
  max-width: 34em;
}

.maker-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  padding: 16px 36px;
  border-radius: 10px;
  background: var(--seal-red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s ease;
}

.maker-cta:hover {
  background: var(--seal-red-deep);
}

.maker-win {
  width: 22px;
  height: 22px;
}

.maker-note {
  margin-top: 20px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0;
}

.generator-stage {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0 0 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.generator-shot-wrap {
  position: relative;
  width: 100%;
  max-width: 1280px;
  transform-style: preserve-3d;
}

.generator-shot {
  position: relative;
  width: 100%;
  transform: perspective(1000px) rotateX(18deg) scale(1.06);
  transform-origin: 50% 0%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  background: #fff;
  box-shadow:
    0 20px 44px rgba(48, 24, 18, 0.16),
    0 48px 80px rgba(48, 24, 18, 0.1);
  border: 1px solid #eadfd4;
  border-bottom: none;
  animation: maker-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.generator-shot img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes maker-rise {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateX(24deg) scale(1.02) translateY(20px);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(18deg) scale(1.06) translateY(0);
  }
}

@keyframes maker-rise-narrow {
  from {
    opacity: 0;
    transform: perspective(780px) rotateX(20deg) translateY(12px);
  }
  to {
    opacity: 1;
    transform: perspective(780px) rotateX(14deg) translateY(0);
  }
}

.ink-problem {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: #f3e6dc;
  padding: 72px 0;
}

.ink-problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 28px;
}

.ink-problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin-bottom: 28px;
}

.ink-problem-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
}

.ink-problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seal-red);
}

.ink-problem-close {
  font-size: 1.08rem;
  max-width: 40em;
  color: #f7f1e8;
}

.stamp-studio {
  padding-top: 72px;
  padding-bottom: 0;
}

.stamp-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.stamp-kicker {
  color: var(--seal-red-deep);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.stamp-head h2,
.maker-guide-head h2,
.seal-get h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 12px;
  line-height: 1.3;
}

.stamp-head p {
  color: var(--muted);
}

.stamp-feature {
  padding: 48px 0 64px;
}

.stamp-feature-paper {
  background: var(--paper);
}

.stamp-feature .seal-download {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stamp-feature .seal-download:hover {
  background: var(--paper);
  color: var(--ink);
}

.stamp-feature-paper .seal-download:hover {
  background: var(--white);
}

.stamp-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.stamp-row-flip {
  grid-template-columns: 1.2fr 0.9fr;
}

.stamp-row-flip .stamp-copy {
  order: 2;
}

.stamp-row-flip .stamp-frame {
  order: 1;
}

.stamp-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  margin-bottom: 14px;
}

.stamp-copy p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.stamp-points {
  margin-bottom: 22px;
}

.stamp-points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stamp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--seal-red);
}

.stamp-frame,
.template-frame,
.stamp-pair-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(48, 24, 18, 0.14);
  border: 1px solid rgba(48, 24, 18, 0.08);
  background: #f4ece4;
}

.stamp-frame img,
.template-frame img,
.stamp-pair-card img {
  width: 100%;
  height: auto;
  display: block;
}

.template-wall {
  padding: 88px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.template-frame {
  margin-bottom: 22px;
}

.template-caption {
  padding: 12px 16px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: #fffaf6;
}

.stamp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cutout-export {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.cutout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cutout-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
}

.cutout-grid h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cutout-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

.seal-compare {
  padding: 88px 0;
  background: var(--paper);
}

.seal-compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.seal-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.seal-compare-table th,
.seal-compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.seal-compare-table thead th {
  background: #f8f1ea;
  font-weight: 700;
}

.seal-compare-table th.is-seal,
.seal-compare-table td.is-seal {
  background: rgba(196, 25, 25, 0.07);
  color: var(--seal-red-deep);
  font-weight: 700;
}

.seal-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.seal-compare-note {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.maker-guide {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 88px 0;
}

.maker-guide-wrap {
  max-width: 720px;
}

.maker-guide-head {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.maker-guide-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 8px 0 14px;
}

.maker-guide-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.maker-guide-body > p,
.maker-guide-body > blockquote {
  margin-bottom: 1.15em;
}

.maker-guide-body p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.maker-guide-body strong {
  color: var(--seal-red-deep);
}

.maker-guide-body blockquote {
  border-left: 4px solid var(--seal-red);
  padding: 12px 0 12px 18px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.7;
  background: var(--paper);
}

.maker-guide-cta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  background: var(--seal-red-soft);
  border-radius: 16px;
}

.maker-guide-cta strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.maker-guide-cta p {
  color: var(--muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.seal-faq {
  padding: 0 0 88px;
  background: var(--white);
}

.seal-faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.seal-faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}

.seal-faq-list details p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.seal-get {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0;
}

.seal-get-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.seal-get-name {
  color: #f3e6dc;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.seal-get h2 {
  margin-bottom: 8px;
}

.seal-get p {
  opacity: 0.92;
}

.seal-get .seal-download {
  background: var(--white);
  color: var(--seal-red-deep);
  box-shadow: none;
  flex-shrink: 0;
}

.seal-get .seal-download:hover {
  background: #fff6f4;
}

.seal-footer {
  background: var(--ink);
  color: #cbb8b0;
  padding: 40px 0 48px;
  text-align: center;
}

.seal-footer-inner .seal-brand {
  color: #f3e4dc;
  margin: 0 auto 10px;
}

.seal-footer-meta {
  margin-top: 14px;
  font-size: 0.82rem;
  opacity: 0.8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
}

.seal-footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pc-modal[hidden] {
  display: none;
}

.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 16, 0.55);
  backdrop-filter: blur(2px);
}

.pc-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 64px rgba(26, 18, 16, 0.28);
  text-align: center;
  animation: pc-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pc-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.pc-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.pc-modal-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 4px 0 12px;
}

.pc-modal-lead {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 18px;
}

.pc-modal-url {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  font-weight: 700;
  color: var(--seal-red-deep);
  letter-spacing: 0.02em;
  background: var(--seal-red-soft);
  border: 1px solid rgba(196, 25, 25, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  user-select: all;
  word-break: break-all;
}

.pc-modal-copy {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
}

.pc-modal-tip {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--seal-red-deep);
  font-weight: 600;
}

@media (max-width: 960px) {
  .seal-nav {
    display: none;
  }

  .stamp-row,
  .stamp-row-flip,
  .cutout-grid,
  .stamp-pair,
  .seal-get-inner {
    grid-template-columns: 1fr;
  }

  .seal-get-inner {
    display: grid;
  }

  .stamp-row-flip .stamp-copy,
  .stamp-row-flip .stamp-frame {
    order: initial;
  }

  .ink-problem-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .maker-hero {
    padding: 24px 0 0;
    overflow: visible;
  }

  .maker-hero-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .maker-mark {
    width: 52px;
    height: 52px;
  }

  .maker-line {
    display: block;
  }

  .maker-title {
    display: flex;
    flex-direction: column;
    font-size: 1.85rem;
    letter-spacing: 0.02em;
    gap: 10px;
  }

  .maker-hero-bg {
    height: 220px;
    background-position: right top;
    background-size: auto 220px;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 28%, #000 100%),
      linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 28%, #000 100%),
      linear-gradient(180deg, #000 0%, #000 50%, transparent 100%);
    mask-composite: intersect;
  }

  .generator-stage {
    width: 100%;
    max-width: 100%;
    margin: 8px auto 0;
    padding-bottom: 28px;
    overflow: visible;
  }

  .generator-shot-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .generator-shot {
    width: 100%;
    margin: 0 auto;
    transform: perspective(780px) rotateX(14deg);
    transform-origin: 50% 100%;
    animation-name: maker-rise-narrow;
    border-radius: 10px 10px 0 0;
  }

  .generator-shot img {
    border-radius: 9px 9px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
