/* ============================================================
   Stikify 官网样式 —— 与 App 设计系统同源（DesignSystem.swift）
   贴纸风：奶油底 + 墨色 2px 描边 + 无模糊硬阴影 + 马卡龙色
   ============================================================ */

:root {
  /* 颜色 token（对应 DS.Color） */
  --bg-page: #FDFBF7;
  --surface: #FCFCFC;
  --ink: #050505;
  --text-secondary: #8A8782;
  --brand-yellow: #FEE085;
  --brand-pink: #FDA4AD;
  --brand-blue: #A6CFFB;
  --brand-green: #D6EFD1;
  --brand-pink-light: #FEC3C0;
  --brand-lavender: #DDD0F3;
  --coin: #FAD76F;

  /* 描边与硬阴影（对应 DS.Border / DS.Shadow） */
  --border: 2px solid var(--ink);
  --shadow-card: 0 4px 0 var(--ink);
  --shadow-control: 0 3px 0 var(--ink);

  --radius-card: 24px;
  --radius-inner: 16px;
  --page-max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 24px; }

/* ---------- 贴纸卡通用样式 ---------- */
.sticker-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border: var(--border);
  border-radius: 9px;
  box-shadow: 0 2px 0 var(--ink);
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--border);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

.btn-pink { background: var(--brand-pink); box-shadow: var(--shadow-control); padding: 10px 22px; font-size: 15px; }
.btn-yellow { background: var(--brand-yellow); box-shadow: var(--shadow-control); padding: 10px 22px; font-size: 15px; }

.btn-cta {
  background: var(--brand-pink);
  box-shadow: var(--shadow-card);
  padding: 16px 38px;
  font-size: 19px;
}

.btn-cta:hover, .btn-pink:hover, .btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Hero 首屏 ---------- */
.hero {
  position: relative;
  padding: 84px 0 120px;
  background: var(--brand-yellow);
  border-bottom: var(--border);
  overflow: hidden;
}

/* 四角射线点缀（同 App Icon） */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 0 / 6px 34px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 50% / 34px 6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 50% / 34px 6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 50% 100% / 6px 34px no-repeat;
  opacity: 0.9;
  transform: rotate(45deg);
}

.hero::before { top: -40px; left: -34px; }
.hero::after { bottom: -40px; right: -34px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-control);
  padding: 6px 16px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 22px;
}

.hero-badge img { width: 18px; height: 18px; }

/* CTA 内的白底加号块（同 App 生成按钮造型） */
.plus-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--surface);
  border: var(--border);
  border-radius: 8px;
  margin-right: 2px;
}

.plus-box img { width: 15px; height: 15px; }

.btn-ic { width: 20px; height: 20px; }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 1px;
}

.hero h1 .hl {
  display: inline-block;
  background: var(--surface);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-control);
  padding: 0 14px;
  transform: rotate(-2deg);
}

.hero h1 .hl-pink { background: var(--brand-pink); transform: rotate(1.5deg); }

.hero-sub {
  margin: 22px 0 34px;
  font-size: 18px;
  font-weight: 600;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-note { font-size: 13px; font-weight: 700; opacity: 0.65; margin-top: 14px; }

/* 首屏右侧：贴纸堆叠拼贴 */
.hero-collage {
  position: relative;
  height: 460px;
}

.hero-collage .paste {
  position: absolute;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.hero-collage .paste:hover { transform: scale(1.06) rotate(0deg) !important; z-index: 9; }

.paste-1 { width: 46%; top: 4%;  left: 6%;  transform: rotate(-7deg); background: var(--brand-blue); }
.paste-2 { width: 42%; top: 0;   right: 4%; transform: rotate(6deg);  background: var(--brand-green); }
.paste-3 { width: 44%; bottom: 6%; left: 12%; transform: rotate(4deg); background: var(--brand-pink-light); }
.paste-4 { width: 40%; bottom: 2%; right: 8%; transform: rotate(-5deg); background: var(--brand-lavender); }

.hero-collage .spark {
  position: absolute;
  font-size: 34px;
  font-weight: 900;
  text-shadow: none;
}

/* ---------- 跑马灯文案带 ---------- */
.marquee {
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--brand-yellow);
  overflow: hidden;
  padding: 12px 0;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.marquee-track { display: inline-block; animation: marquee 26s linear infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }

.section-tag {
  display: inline-block;
  background: var(--brand-blue);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-control);
  padding: 5px 18px;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  margin-bottom: 12px;
}

.section-sub { color: var(--text-secondary); font-weight: 600; margin-bottom: 44px; max-width: 560px; }

/* ---------- 功能卡片 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  padding: 26px 24px;
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--surface);
  transition: transform 0.15s ease;
}

.feature:hover { transform: translateY(-4px) rotate(-0.5deg); }

.feature .emoji {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-control);
  margin-bottom: 16px;
}

.feature .emoji img { width: 28px; height: 28px; }

.feature h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--text-secondary); font-weight: 600; }

.f-yellow .emoji { background: var(--brand-yellow); }
.f-pink .emoji { background: var(--brand-pink); }
.f-blue .emoji { background: var(--brand-blue); }
.f-green .emoji { background: var(--brand-green); }
.f-lavender .emoji { background: var(--brand-lavender); }
.f-coin .emoji { background: var(--coin); }

/* ---------- 模板展示 ---------- */
.section-alt { background: var(--surface); border-top: var(--border); border-bottom: var(--border); }

.templates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.template {
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--bg-page);
  transition: transform 0.15s ease;
}

.template:hover { transform: translateY(-5px); }
.template:nth-child(odd):hover { transform: translateY(-5px) rotate(-1deg); }
.template:nth-child(even):hover { transform: translateY(-5px) rotate(1deg); }

.template img { aspect-ratio: 1; object-fit: cover; border-bottom: var(--border); }

.template .meta { padding: 14px 16px; }
.template .meta b { font-size: 16px; font-weight: 900; }

.template .chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  border: var(--border);
  border-radius: 999px;
  padding: 1px 10px;
  margin-top: 8px;
  box-shadow: 0 2px 0 var(--ink);
}

.chip-pink { background: var(--brand-pink); }
.chip-blue { background: var(--brand-blue); }
.chip-green { background: var(--brand-green); }
.chip-yellow { background: var(--brand-yellow); }

/* ---------- 广场 UGC ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: end;
}

.shot {
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  background: var(--surface);
  padding: 12px;
  transition: transform 0.2s ease;
}

.shot img { border-radius: 10px; }

.shot .cap {
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  margin-top: 8px;
}

.shot:nth-child(1) { transform: rotate(-4deg); background: var(--brand-green); }
.shot:nth-child(2) { transform: rotate(3deg) translateY(-14px); background: var(--brand-pink-light); }
.shot:nth-child(3) { transform: rotate(-2deg); background: var(--brand-blue); }
.shot:nth-child(4) { transform: rotate(5deg) translateY(-10px); background: var(--brand-lavender); }
.shot:hover { transform: rotate(0) translateY(-6px) scale(1.04); z-index: 5; }

/* ---------- 下载引导 ---------- */
.download-card {
  background: var(--brand-yellow);
  border: var(--border);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.download-card h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin-bottom: 10px; }
.download-card p { font-weight: 700; margin-bottom: 26px; }

.download-steps { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }

.download-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}

.download-steps .num {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: var(--border);
  border-radius: 9px;
  box-shadow: 0 2px 0 var(--ink);
  font-weight: 900;
  font-size: 14px;
}

.download-icon {
  justify-self: center;
  width: min(230px, 70%);
}

.download-icon img {
  border: var(--border);
  border-radius: 22%;
  box-shadow: 0 6px 0 var(--ink);
  transform: rotate(3deg);
  transition: transform 0.2s ease;
}

.download-icon img:hover { transform: rotate(0) scale(1.04); }

/* ---------- 页脚 ---------- */
.footer { border-top: var(--border); background: var(--surface); padding: 40px 0 48px; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 14px;
}

.footer-inner .nav-logo { font-size: 17px; }
.footer-inner .nav-logo img { width: 30px; height: 30px; }

.footer-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { text-decoration: none; opacity: 0.8; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-copy { width: 100%; color: var(--text-secondary); font-size: 13px; font-weight: 600; }

/* ---------- 协议文档页 ---------- */
.doc-page { padding: 64px 0 96px; }

.doc-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 48px clamp(24px, 5vw, 56px);
  max-width: 820px;
  margin: 0 auto;
}

.doc-card h1 { font-size: 30px; font-weight: 900; margin-bottom: 8px; }

.doc-meta {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  background: var(--brand-yellow);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--ink);
  padding: 3px 14px;
  margin-bottom: 30px;
}

.doc-card h2 { font-size: 19px; font-weight: 900; margin: 28px 0 10px; }
.doc-card p, .doc-card li { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.doc-card ul { padding-left: 22px; }

.doc-back { display: inline-block; margin-bottom: 26px; font-weight: 800; text-decoration: none; }
.doc-back:hover { text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { height: 380px; margin-top: 10px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .templates { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-steps li { justify-content: center; }
  .nav-links { display: none; }
}

@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 84px; }
  .section { padding: 64px 0; }
}
