/* ==========================================================================
   水果乐消消 · 官网样式
   ==========================================================================
   设计约束：
   1. 零外部依赖 —— 不引 Google Fonts / CDN。
      服务器在国内，访客是中文用户，外部资源只会变慢或加载失败。
      字体走系统栈（PingFang / 苹方 / 微软雅黑），中文渲染质量最好。
   2. 移动优先 —— 微信内打开、手机浏览器是主要入口。
      所有断点从小屏往上叠加。
   3. 浅色为主 —— 呼应"清新水果"调性，深色字保证可读性。
   ========================================================================== */

:root {
  --bg: #FDFAF4;
  --bg-soft: #F7F1E6;
  --ink: #23201C;
  --ink-2: #5A5248;
  --ink-3: #93897C;
  --line: #E9E1D4;
  --card: #FFFFFF;

  --brand: #E4572E;
  --brand-dark: #C74320;
  --brand-soft: #FDECE6;
  --leaf: #4C9A5B;
  --leaf-soft: #EDF6EE;
  --gold: #D99A2B;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(35, 32, 28, .05), 0 2px 8px rgba(35, 32, 28, .04);
  --shadow: 0 2px 6px rgba(35, 32, 28, .05), 0 12px 32px rgba(35, 32, 28, .07);
  --shadow-lg: 0 4px 12px rgba(35, 32, 28, .06), 0 24px 60px rgba(35, 32, 28, .10);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ============================ 导航 ============================ */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 244, .82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }

.nav-in {
  display: flex; align-items: center; gap: 14px;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.nav-logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: none; gap: 26px; margin-left: 20px; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color .18s; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  padding: 9px 17px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 10px rgba(228, 87, 46, .28);
  transition: transform .16s, box-shadow .16s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(228, 87, 46, .34); }

@media (min-width: 820px) {
  .nav-in { height: 72px; }
  .nav-links { display: flex; }
  .nav-logo img { width: 34px; height: 34px; }
}

/* ============================ Hero ============================ */

.hero { position: relative; padding: 44px 0 56px; overflow: hidden; }

/* 背景暖光斑 */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background:
    radial-gradient(closest-side, rgba(245, 158, 11, .13), transparent 70%) 18% 24% / 460px 460px no-repeat,
    radial-gradient(closest-side, rgba(76, 154, 91, .11), transparent 70%) 78% 12% / 420px 420px no-repeat;
  pointer-events: none;
}

.hero-in { position: relative; display: grid; gap: 34px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 6px 13px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

h1 {
  font-size: clamp(34px, 7.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -.028em;
  font-weight: 800;
  margin-bottom: 18px;
}
h1 .hl {
  background: linear-gradient(100deg, var(--brand) 10%, var(--gold) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--brand);
}

.hero-sub {
  font-size: clamp(15px, 3.4vw, 17.5px);
  color: var(--ink-2); line-height: 1.8;
  max-width: 30em; margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px;
  font-size: 15px; font-weight: 650;
  transition: transform .16s, box-shadow .16s, background .16s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 18px rgba(228, 87, 46, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(228, 87, 46, .36); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: var(--ink-2); font-weight: 650; }

/* 画面拼贴：2×2 四格
 *
 * 用战斗背景（进关后铺满屏幕的背景），不是关卡预览图 ——
 * 预览图是俯视地图，扁平、看不出游戏感；战斗背景有纵深和光影。
 *
 * # 为什么必须是 2×2 且每格锁死比例
 *
 * 3 张图时代用过 `grid-row: span 2` 让左列跨两行，结果图片高度不足行高，
 * 底部必然空一块 —— 看起来像"漏了一张"。
 * 现在四格都靠 aspect-ratio 锁定同一比例，天然等高等宽，
 * **任何屏宽都不会出现空隙**，不依赖任何 span 技巧。
 *
 * # 为什么是 3/4
 *
 * 战斗背景原图 9:20 竖屏。四格若用 9:16 会把整块区域拉得过高，
 * 3/4 更紧凑，裁掉的主要是上下边缘，中段信息量最足。
 */
.hero-art {
  position: relative;
  display: grid;
  /*
   * 必须是 minmax(0, 1fr) 而不是 1fr。
   *
   * `1fr` 等价于 `minmax(auto, 1fr)`，而 auto 的下限是**内容的固有宽度**。
   * 图片固有宽 480px，会把每一列撑到不小于 480 —— 两列就是 960，
   * 手机上直接横向溢出被裁掉（body 有 overflow-x:hidden，所以看不见，
   * 但布局已经错了）。
   *
   * minmax(0, 1fr) 把下限压到 0，列宽才真正按等分计算。
   */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  /*
   * 关键：hero-art 自己是 .hero-in 这个 grid 的 item，
   * 同样带着 min-width: auto —— 它会被内部图片的固有宽度顶大，
   * 于是整个拼贴区比容器宽，右侧被裁掉看不见。
   *
   * 内层 figure 设 min-width:0 只解决"格子不撑破本容器"，
   * 本容器自己被父 grid 撑破还得靠这一行。
   */
  min-width: 0;
}
.hero-art figure {
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, .7);
  aspect-ratio: 3 / 4;
  min-width: 0;          /* 双保险：不让内容撑破列宽 */
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 860px) {
  .hero { padding: 72px 0 84px; }
  .hero-in { grid-template-columns: 1.04fr .96fr; gap: 52px; }
}

/* ============================ 通用区块 ============================ */

section { padding: 62px 0; }
section.tight { padding: 48px 0; }

.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(24px, 4.6vw, 34px);
  line-height: 1.24; letter-spacing: -.022em; font-weight: 780;
  margin-bottom: 12px;
}
.sec-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }

/* ============================ 简介 ============================ */

.intro { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.intro-grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

.intro-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.9; margin-bottom: 15px; }
.intro-body p:last-child { margin-bottom: 0; }
.intro-body strong { color: var(--ink); font-weight: 650; }

.facts { display: grid; gap: 12px; }
.fact {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 15px 17px;
}
.fact-ic {
  flex: 0 0 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--brand-soft);
}
.fact:nth-child(2) .fact-ic { background: var(--leaf-soft); }
.fact:nth-child(3) .fact-ic { background: #FEF6E4; }
.fact:nth-child(4) .fact-ic { background: #EEF2FB; }
.fact-t { font-weight: 650; font-size: 14.5px; margin-bottom: 3px; }
.fact-d { font-size: 13px; color: var(--ink-3); line-height: 1.65; }

/* ============================ 特色卡 ============================ */

.cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DED4C2; }
.card-ic {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--brand-soft); margin-bottom: 15px;
}
.card:nth-child(2) .card-ic { background: var(--leaf-soft); }
.card:nth-child(3) .card-ic { background: #FEF6E4; }
.card:nth-child(4) .card-ic { background: #EEF2FB; }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.78; }

/* ============================ 场景 ============================ */

.scenes { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.scene-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .scene-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .scene-grid { grid-template-columns: repeat(6, 1fr); } }

.scene {
  position: relative; border-radius: 14px; overflow: hidden;
  aspect-ratio: 2 / 3; background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.scene:hover img { transform: scale(1.06); }
.scene figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 12px 11px;
  background: linear-gradient(to top, rgba(20, 16, 12, .78), transparent);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}

/* ============================ 玩法三步 ============================ */

.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: s; content: "0" counter(s);
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  color: var(--brand); margin-bottom: 10px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }

/* ============================ 下载 ============================ */

.dl { background: linear-gradient(165deg, #2A241E 0%, #3A2E23 52%, #241E18 100%); color: #fff; }
.dl .sec-kicker { color: var(--gold); }
.dl h2 { color: #fff; }
.dl .sec-desc { color: rgba(255, 255, 255, .62); }

.dl-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .dl-grid { grid-template-columns: 1fr auto; gap: 56px; } }

.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dl .btn-primary { background: var(--brand); box-shadow: 0 6px 24px rgba(228, 87, 46, .4); }
.dl .btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border-color: rgba(255, 255, 255, .18); box-shadow: none;
}
.dl .btn-ghost:hover { background: rgba(255, 255, 255, .14); }

.dl-note {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: rgba(255, 255, 255, .48); line-height: 1.9;
}

.qr {
  background: rgba(255, 255, 255, .96); border-radius: 18px;
  padding: 15px; text-align: center; width: 178px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .34);
}
.qr img { border-radius: 8px; margin-bottom: 9px; }
.qr span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* ============================ 关于 ============================ */

.about-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; }

.kv { display: grid; gap: 11px; font-size: 13.5px; }
.kv-row { display: flex; gap: 14px; align-items: baseline; }
.kv-k { flex: 0 0 74px; color: var(--ink-3); }
.kv-v { color: var(--ink); word-break: break-all; }
.kv-v a { color: var(--brand); }
.kv-v a:hover { text-decoration: underline; }

/* ============================ 页脚 ============================ */

.foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 42px 0 34px;
  font-size: 13px; color: var(--ink-3);
}
.foot-top {
  display: flex; flex-wrap: wrap; gap: 20px 34px;
  align-items: flex-start; justify-content: space-between;
  padding-bottom: 26px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { width: 36px; height: 36px; border-radius: 10px; }
.foot-brand b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.foot-brand small { font-size: 12px; color: var(--ink-3); }

.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--brand); }

.foot-legal { display: grid; gap: 7px; line-height: 1.9; }
.foot-legal a { color: var(--ink-2); }
.foot-legal a:hover { color: var(--brand); text-decoration: underline; }

/* ============================ 文档页（隐私/协议）============================ */

.doc-hero {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 46px 0 34px;
}
.doc-hero h1 { font-size: clamp(26px, 5vw, 38px); margin-bottom: 12px; }
.doc-meta { font-size: 13px; color: var(--ink-3); line-height: 2; }
.doc-meta b { color: var(--ink-2); font-weight: 600; }

.doc { padding: 44px 0 72px; }
.doc-in { max-width: 800px; margin: 0 auto; }

.doc h2 {
  font-size: 20px; font-weight: 750; letter-spacing: -.015em;
  margin: 38px 0 14px; padding-top: 8px;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
  font-size: 15.5px; font-weight: 700;
  margin: 24px 0 10px; color: var(--ink);
}
.doc p { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; margin-bottom: 13px; }
.doc ul, .doc ol { margin: 0 0 15px 20px; }
.doc li { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; margin-bottom: 7px; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { color: var(--brand); }
.doc a:hover { text-decoration: underline; }

.doc-note {
  background: var(--brand-soft); border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0; padding: 15px 18px; margin: 18px 0;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.85;
}

.table-wrap { overflow-x: auto; margin: 14px 0 20px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 650; white-space: nowrap; }
td { color: var(--ink-2); line-height: 1.75; }

.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px;
}
.back-link:hover { color: var(--brand); }

/* ============================ 动效 ============================ */

/*
 * 滚动淡入。
 *
 * ⚠️ 隐藏态必须挂在 .js 下 —— 否则 JS 未执行时（禁用 JS、爬虫抓取、
 * 部分内置浏览器预览）内容永久 opacity:0，等于整页空白。
 * html 上的 .js 由 <head> 里的一行内联脚本同步加上，不依赖异步加载。
 */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
