/* =========================================================
   《抓螃蟹》Crab Hunt — 官方网站样式
   配色:白底 · 系统蓝钮(与商品页一致的苹果设计语言)
   布局:官网形态(Hero 横幅 → 特色 → 玩法 → 场景 → 画廊 → 图鉴 → 工具 → 成就 → 定价 → CTA)
   ========================================================= */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --blue: #007aff;
  --blue-dark: #0062cc;
  --blue-soft: #eef6ff;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --line: #e8e8ed;
  --card: #ffffff;
  --star: #ffb800;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, .1);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ---------------- 通用 ---------------- */
section { padding: 72px 0; }
.section-title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.5px;
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-faint);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ---------------- 蓝色获取按钮 ---------------- */
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .3px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn-buy:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 122, 255, .35); }
.btn-buy-lg { padding: 14px 40px; font-size: 17px; }
.btn-buy-outline {
  background: var(--card);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-buy-outline:hover { background: var(--blue-soft); box-shadow: none; }

/* ---------------- 滚动出现动画 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   导航
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  transition: box-shadow .3s ease;
  padding: 12px 0;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .08); }
.nav-inner {
  width: min(1100px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; border-radius: 22.5%; box-shadow: var(--shadow-sm); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.brand-en { font-size: 11px; font-weight: 600; color: var(--ink-faint); letter-spacing: 2px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta { padding: 8px 18px; font-size: 13.5px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; margin: 5px 0;
  border-radius: 2px; background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   Hero · 全宽广告横幅(纯图展示)
   ========================================================= */
.hero { position: relative; width: 100%; padding: 0; overflow: hidden; }
.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   游戏特色
   ========================================================= */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-emoji { font-size: 40px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   玩法
   ========================================================= */
.how { background: var(--bg-soft); }
.loop {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.loop-step {
  flex: 1 1 130px;
  max-width: 178px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.loop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}
.loop-step strong { display: block; font-size: 15.5px; margin-bottom: 6px; }
.loop-step small { color: var(--ink-faint); font-size: 12.5px; line-height: 1.5; display: block; }
.loop-arrow { align-self: center; font-size: 20px; color: var(--blue); font-weight: 700; }
.gestures {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.gesture-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gesture-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gesture-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.gesture-card h4 { font-size: 15px; margin-bottom: 4px; }
.gesture-card p { font-size: 12.5px; color: var(--ink-faint); }
.how-note {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--blue-soft);
  border: 1px solid rgba(0, 122, 255, .2);
  border-radius: 14px;
  padding: 14px 20px;
}

/* =========================================================
   场景
   ========================================================= */
.scenes { background: var(--bg); }
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.scene-card {
  grid-column: span 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scene-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.scene-emoji { font-size: 34px; }
.scene-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  letter-spacing: .3px;
}
.scene-card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: .3px; }
.scene-card > p { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.scene-unlock {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}
.scene-moon { background: linear-gradient(160deg, #f4f0ff, #fff 70%); border-color: #e2d8f7; }

/* 隐藏场景:全宽横条 */
.scene-wide {
  grid-column: span 6;
  display: flex;
  gap: 26px;
  align-items: center;
}
.scene-wide-main { flex: 1.4; }
.scene-wide-side { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* =========================================================
   图鉴
   ========================================================= */
.crabs { background: var(--bg); }
.crab-group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  margin: 40px 0 18px;
}
.crab-group-title span { font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.crab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.crab-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.crab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.crab-emoji { font-size: 28px; line-height: 1.2; }
.crab-info h4 { font-size: 14.5px; margin-bottom: 2px; }
.crab-latin { font-size: 11px; color: var(--ink-faint); margin-bottom: 4px; }
.crab-desc { font-size: 12px; color: var(--ink-faint); margin-top: 7px; line-height: 1.55; }
.crab-hidden { background: linear-gradient(160deg, #f6f2fd, #fff 70%); border-color: #e6dcf5; }
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: .4px;
}
.badge-common { background: #eef2f0; color: #4d6b5c; }
.badge-rare { background: var(--blue-soft); color: var(--blue); }
.badge-legend { background: #fdf0e8; color: #c2410c; }
.badge-hidden { background: #f0eafb; color: #7a4fb8; }
.badge-default { background: var(--blue-soft); color: var(--blue); }
.badge-unlock { background: #fdf6e3; color: #a9701a; }
.crab-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 18px;
}

/* =========================================================
   工具
   ========================================================= */
.tools { background: var(--bg-soft); }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-emoji { font-size: 34px; display: block; margin-bottom: 10px; }
.tool-card h4 { font-size: 16px; margin-bottom: 6px; }
.tool-card .badge { margin-bottom: 8px; }
.tool-card p { font-size: 12.5px; color: var(--ink-faint); }
.tool-mechanic {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 122, 255, .2);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.tool-mechanic-emoji { font-size: 36px; }
.tool-mechanic h4 { font-size: 17px; margin-bottom: 6px; }
.tool-mechanic p { font-size: 14px; color: var(--ink-soft); }

/* =========================================================
   收集与成就
   ========================================================= */
.collect { background: var(--bg); }
.collect-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}
.collect-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.collect-emoji { font-size: 36px; }
.collect-card h4 { font-size: 17px; margin-bottom: 6px; }
.collect-card p { font-size: 13.5px; color: var(--ink-soft); }
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.badge-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.badge-item > span { font-size: 26px; }
.badge-item h4 { font-size: 14.5px; }
.badge-item p { font-size: 12px; color: var(--ink-faint); }

/* =========================================================
   定价
   ========================================================= */
.pricing { background: var(--bg-soft); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-featured { border: 2px solid var(--blue); }
.price-badge {
  position: absolute;
  top: -15px; left: 26px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(0, 122, 255, .35);
}
.price-card h3 { font-size: 20px; margin-bottom: 8px; }
.price { font-size: 48px; font-weight: 800; line-height: 1.1; }
.price .currency { font-size: 24px; vertical-align: 12px; font-weight: 700; margin-right: 2px; }
.price-alt { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 18px; }
.price-card ul { margin-bottom: 24px; }
.price-card li { padding: 7px 0; font-size: 14.5px; font-weight: 500; border-bottom: 1px dashed var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card .btn-buy { width: 100%; }
.dlc {
  margin-top: 36px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.dlc h4 { font-size: 16px; margin-bottom: 6px; }
.dlc p { font-size: 13.5px; color: var(--ink-faint); }

/* =========================================================
   底部获取
   ========================================================= */
.final-cta {
  background: linear-gradient(160deg, #eef6ff, #f5f5f7);
  text-align: center;
  padding: 88px 0;
}
.cta-icon {
  width: 96px; height: 96px;
  border-radius: 22.5%;
  margin: 0 auto 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .16);
}
.final-cta h2 {
  font-size: clamp(23px, 3.6vw, 34px);
  font-weight: 800;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.4;
  letter-spacing: -.4px;
}
.final-cta p { margin: 14px 0 28px; font-size: 15.5px; color: var(--ink-faint); }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* =========================================================
   页脚
   ========================================================= */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  padding: 42px 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-brand .brand-icon { width: 30px; height: 30px; border-radius: 22.5%; }
.footer-desc { font-size: 13px; margin-bottom: 14px; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}
.footer-links a { font-size: 13px; color: var(--ink-faint); transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 12px; opacity: .7; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gestures { grid-template-columns: repeat(3, 1fr); }
  .crab-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .collect-features { grid-template-columns: 1fr; }
  .loop-arrow { transform: rotate(90deg); }
  .scene-wide { flex-direction: column; align-items: flex-start; }
  .scene-wide-side { align-items: flex-start; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    background: #fff;
    padding: 84px 30px 30px;
    gap: 22px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .12);
    transition: right .3s ease;
    z-index: 99;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 16px; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .loop { flex-direction: column; align-items: stretch; }
  .loop-step { max-width: none; }
  .loop-arrow { transform: rotate(90deg); align-self: center; }
  .gestures { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid { grid-template-columns: 1fr; }
  .scene-card { grid-column: span 1; }
  .scene-wide { grid-column: span 1; }
  .crab-grid { grid-template-columns: repeat(2, 1fr); }
  .crab-group-title { flex-direction: column; gap: 4px; }
  .tools-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
