/* ShotMagic 官网 — 品牌蓝取自扩展图标 #1F6CEE,选框角标为全站母题 */

:root {
  --brand: #1f6cee;
  --brand-deep: #1a55bd;
  --brand-wash: rgba(31, 108, 238, 0.08);
  --ink: #101623;
  --muted: #57627a;
  --paper: #ffffff;
  --tint: #f3f7fe;
  --line: #e2e8f5;
  --ok: #128a57;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航 ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }

.nav-links { display: flex; gap: 26px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* ---------- 眉题:带选框角标的母题 ---------- */

.eyebrow {
  display: inline-block;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 6px 12px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brand);
}
.eyebrow::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.eyebrow::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 20px 0 18px;
}
h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-sub { color: var(--muted); max-width: 34em; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-trust {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero 演示:截图 → 选框 → 出字 ---------- */

.demo {
  background: linear-gradient(160deg, #eef4fe 0%, #e4edfc 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px -30px rgba(16, 38, 90, 0.35);
}

.shot {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafd;
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6deeb;
}
.shot-body { padding: 18px 20px 22px; }
.shot-body p { font-size: 0.82rem; color: #8b95ab; margin-bottom: 10px; }
.shot-body .bar {
  height: 8px;
  border-radius: 4px;
  background: #e8edf6;
  margin-bottom: 10px;
}
.shot-target {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* 截图里"选不中"的像素文字:轻微模糊模拟栅格化,禁止选择 */
.shot-pixel {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: #2a3550;
  filter: blur(0.45px) contrast(1.1);
  user-select: none;
  -webkit-user-select: none;
  padding: 6px 10px;
  white-space: nowrap;
}

/* 蚂蚁线选框:从左上角生长到全尺寸 */
.select-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  animation: box-appear 8s ease-out infinite;
}
.select-box rect {
  fill: rgba(31, 108, 238, 0.1);
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
  animation: ants 0.6s linear infinite;
}

.demo-out {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  min-height: 2.4em;
}
.demo-out-text {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  border-right: 2px solid var(--brand);
  padding-right: 3px;
  animation: typing 8s steps(39) infinite, caret 0.8s step-end infinite;
}
.demo-copied {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ok);
  background: rgba(18, 138, 87, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  animation: copied-pop 8s ease-out infinite;
}
.demo-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

@keyframes ants { to { stroke-dashoffset: -10; } }
@keyframes box-appear {
  0% { clip-path: inset(0 100% 100% 0); }
  6% { clip-path: inset(0 100% 100% 0); }
  22% { clip-path: inset(0 0 0 0); }
  92% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { opacity: 0; }
}
@keyframes typing {
  0%, 26% { width: 0; }
  62%, 100% { width: 39ch; }
}
@keyframes caret {
  0%, 100% { border-color: var(--brand); }
  50% { border-color: transparent; }
}
@keyframes copied-pop {
  0%, 63% { opacity: 0; transform: translateY(4px); }
  68%, 96% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .select-box, .select-box rect, .demo-out-text, .demo-copied {
    animation: none;
  }
  .demo-out-text { width: auto; border-right: none; white-space: normal; }
}

/* ---------- 章节通用 ---------- */

.section { padding: 76px 0; }
.section.alt { background: var(--tint); }

.section-head { max-width: 620px; margin-bottom: 44px; }

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 16px 0 12px;
}
.section-head p { color: var(--muted); }

/* ---------- 三步流程(真实序列,编号成立) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 8px 0 8px;
}
.step p { font-size: 0.95rem; color: var(--muted); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}

/* ---------- 功能卡片 ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: border-color 0.2s ease;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-radius: 2px 0 0 0; }
.card::after { bottom: -2px; right: -2px; border-left: none; border-top: none; border-radius: 0 0 2px 0; }
.card:hover { border-color: rgba(31, 108, 238, 0.4); }
.card:hover::before, .card:hover::after { border-color: var(--brand); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p { font-size: 0.92rem; color: var(--muted); }
.card .tag {
  float: right;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  background: var(--brand-wash);
  border-radius: 4px;
  padding: 2px 7px;
  margin-left: 8px;
}

/* ---------- 定价 ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 780px;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
}
.plan.pro { border: 2px solid var(--brand); }
.plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 18px;
}
.plan.pro .plan-price { color: var(--brand-deep); }
.plan ul { list-style: none; }
.plan li {
  position: relative;
  font-size: 0.94rem;
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--line);
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--brand);
  font-weight: 700;
}
.pricing-note { margin-top: 20px; font-size: 0.88rem; color: var(--muted); }

.btn-buy-pro,
.btn-install {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 13px 30px;
}
.btn-buy-pro:hover,
.btn-install:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }
.btn-install { margin-top: 0; }

/* ---------- 隐私宣言 ---------- */

.privacy-block { text-align: center; max-width: 720px; margin: 0 auto; }
.privacy-block h2 { margin-top: 18px; }
.privacy-block .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.privacy-block p { color: var(--muted); margin-top: 16px; }
.privacy-block .link-row { margin-top: 24px; }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 页脚 ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-zero {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- 隐私政策页 ---------- */

.policy { max-width: 720px; padding: 48px 0 80px; }
.policy h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.policy .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.policy h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.policy p, .policy li { color: #3c4558; font-size: 0.98rem; }
.policy ul { padding-left: 22px; margin: 10px 0; }
.policy li { margin: 6px 0; }
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.policy th, .policy td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.policy th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--tint);
}
.policy .callout {
  background: var(--tint);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 60px; }
  .steps, .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .nav { flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 16px; font-size: 0.9rem; }
  /* 窄屏放弃打字动画,完整展示结果;选框与"已复制"动画保留 */
  .demo-out-text {
    font-size: 0.8rem;
    animation: none;
    width: auto;
    border-right: none;
    white-space: normal;
  }
  .shot-pixel { font-size: 0.78rem; white-space: normal; }
}
