/* =============================================================================
   欲念（vest 93 / 深圳市河点科技有限公司）- Figma 1:1 复刻
   源文件: figma.com/design/GGjTPpeKWWw1NS88s5HCRp  node 204878:6531
   画板: 2353 x 8032

   >=2353px   完全按 Figma 绝对坐标渲染，像素级还原
   820-2352px 整体等比缩放（zoom），版式不变
   <768px     单栏流式布局（移动端适配，非原稿版式）

   注意：不引 Google Fonts —— 展示机在国内，fonts.googleapis.com 会被墙掉
   导致首屏阻塞。正文一律走系统 CJK 字体栈。

   截图文件名沿用 Figma 图层名（yn1..yn6，其中 yn1 在原稿里叫 "yl1"），
   与页面章节顺序不是一一对应：章节 2=yn1、3=yn2、4=yn3、5=yn4、6=yn6、7=yn5。
   改图时按文件名对，不要按序号猜。

   原稿正文块是「标题 + 换行 + 正文」合成的一个文本图层，字号相同（44px），
   居中对齐、字距 8px、首行缩进 8px —— 这里保持同一个 <p> + <br>，不要拆成两段，
   拆了行距和居中基准都会变。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { margin: 0; background: #fcf5e5; overflow-x: hidden; }

h1, h2, p { margin: 0; font-weight: inherit; }

img { display: block; }

a { color: inherit; text-decoration: none; }

:root {
  --f-han: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB",
           "Microsoft YaHei", sans-serif;

  --c-bg:      #fcf5e5;  /* 画板底色（原稿是纯色，不是渐变） */
  --c-nav-bg:  #eeedcf;  /* 导航条底色 */
  --c-ink:     #000;
  --c-nav-ink: #282626;
  --c-nav-dim: #d9d9d9;  /* 「首页」在原稿里就是浅灰（当前页态） */
  --c-cta-bg:  #10100e;
}

/* 底色铺满整个视口宽度，.stage 两侧留白不会露边 */
.canvas { background: var(--c-bg); }

.stage { width: 2353px; margin: 0 auto; }

.page {
  position: relative;
  width: 2353px;
  height: 8032px;
}

/* section 不参与定位，子元素直接相对 .page 绝对定位 */
.page section { position: static; }

/* ============================== 顶部导航 ============================== */
/* 原稿导航 frame 宽 2774（超出画板 421px），这里裁到画板宽，子元素沿用画板绝对坐标 */
.nav {
  position: absolute;
  left: 0; top: 0;
  width: 2353px; height: 175px;
  background: var(--c-nav-bg);
}

.nav-mark {
  position: absolute;
  left: 15px; top: 25px;
  width: 123px; height: 128px;
  object-fit: cover;
}

/* 原稿字号 64 / 行距 32 —— 行距小于字号是 Figma 里的实际值，
   视觉中心 = top + 16px，写死才能和原稿对齐，别"顺手"改成 1.2 倍行距 */
.nav-word {
  position: absolute;
  left: 172px; top: 92px;
  font-family: var(--f-han);
  font-size: 64px; font-weight: 400; line-height: 32px;
  color: var(--c-ink);
  white-space: nowrap;
}

.nav-links {
  position: absolute;
  left: 518px; top: 49px;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav-links a {
  font-family: var(--f-han);
  font-size: 22px; font-weight: 700; line-height: 33px;
  letter-spacing: 0.66px;
  color: var(--c-nav-ink);
  white-space: nowrap;
  transition: opacity .2s;
}

.nav-links a.is-current { color: var(--c-nav-dim); }

.nav-links a:hover { opacity: .6; }

.nav-cta {
  position: absolute;
  left: 1707px; top: 79px;
  width: 120px; height: 56px;
  border-radius: 40px;
  background: var(--c-cta-bg);
  color: #fff;
  font-family: var(--f-han);
  font-size: 20px; font-weight: 700; line-height: 56px;
  text-align: center;
  transition: opacity .2s;
}

.nav-cta:hover { opacity: .85; }

/* ============================ 首屏主标题 ============================ */
/* 原稿字号 64 / 行距 normal(≈1.21) / 字距 8 / 居中 / 首行缩进 8 */
.tt-0 {
  position: absolute;
  left: 1064.5px; top: 280px;
  transform: translateX(-50%);
  font-family: var(--f-han);
  font-size: 64px; font-weight: 400; line-height: 77px;
  letter-spacing: 8px;
  text-indent: 8px;
  text-align: center;
  color: var(--c-ink);
  white-space: nowrap;
}

/* ============================== 正文文案 ============================== */
/* 原稿字号 44 / 行距 normal(≈1.21) / 字距 8 —— 字距写死，保证换行点与 Figma
   一致（每行 = 宽度 / (44+8)，实测首段 5 行） */
.txt {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--f-han);
  font-size: 44px; font-weight: 400; line-height: 53px;
  letter-spacing: 8px;
  text-indent: 8px;
  text-align: center;
  color: var(--c-ink);
}

.txt-0 { left: 1088.5px; top:  462px; width: 1127px; }
.txt-1 { left: 1439.5px; top: 1324px; width: 1093px; }
.txt-2 { left:  726.5px; top: 2396px; width: 1119px; }
.txt-3 { left: 1523.5px; top: 3767px; width:  947px; }
.txt-4 { left:  776.5px; top: 4977px; width: 1085px; }
.txt-5 { left: 1339.0px; top: 6095px; width: 1062px; }
.txt-6 { left:  849.5px; top: 7185px; width: 1047px; }

/* ============================== 截图组件 ============================== */
.yn {
  position: absolute;
  object-fit: cover;
  max-width: none;
}

.yn-1 { left:  174px; top:  867px; width: 643px; height: 1145px; }
.yn-2 { left: 1459px; top: 1951px; width: 656px; height: 1167px; }
.yn-3 { left:  218px; top: 3260px; width: 677px; height: 1205px; }
.yn-4 { left: 1498px; top: 4538px; width: 661px; height: 1176px; }
.yn-6 { left:   88px; top: 5714px; width: 655px; height: 1166px; }
.yn-5 { left: 1622px; top: 6768px; width: 495px; height: 1025px; }

/* ======================= 820-2352px 等比缩放 ======================= */
@media (max-width: 2352px) { .stage { zoom: .99; } }
@media (max-width: 2100px) { .stage { zoom: .89; } }
@media (max-width: 1900px) { .stage { zoom: .80; } }
@media (max-width: 1700px) { .stage { zoom: .72; } }
@media (max-width: 1500px) { .stage { zoom: .63; } }
@media (max-width: 1400px) { .stage { zoom: .59; } }
@media (max-width: 1300px) { .stage { zoom: .55; } }
@media (max-width: 1200px) { .stage { zoom: .50; } }
@media (max-width: 1100px) { .stage { zoom: .46; } }
@media (max-width: 1000px) { .stage { zoom: .42; } }
@media (max-width:  900px) { .stage { zoom: .38; } }
@media (max-width:  820px) { .stage { zoom: .34; } }

/* ================= <768px 单栏流式布局（移动端适配，非原稿版式） ================= */
@media (max-width: 767px) {

  .stage { zoom: 1; width: 100%; }

  .page {
    width: 100%;
    height: auto;
    padding: 96px 24px 72px;
  }

  .page section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
  }

  .s7 { margin-bottom: 0; }

  /* 导航压成固定高度的普通栏 */
  .nav {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 72px;
  }

  .nav-mark { left: 14px; top: 10px; width: 50px; height: 52px; }

  .nav-word {
    left: 74px; top: 10px;
    height: 52px;
    font-size: 28px; line-height: 52px;
  }

  /* 窄屏放不下导航项，收起，只留下载按钮；页脚里有联系方式 */
  .nav-links { display: none; }

  .nav-cta {
    left: auto; right: 14px; top: 18px;
    width: 88px; height: 38px;
    font-size: 15px; line-height: 38px;
  }

  .tt-0,
  .txt,
  .yn {
    position: static;
    left: auto; top: auto;
    transform: none;
  }

  /* 原稿 8px 字距在窄屏会把每行挤成三四个字，收到 .5px */
  .tt-0 {
    width: 100%;
    font-size: 22px; line-height: 34px; letter-spacing: .6px;
    text-indent: 0;
    white-space: normal;
    font-weight: 700;
  }

  .txt {
    width: 100%;
    font-size: 17px; line-height: 32px; letter-spacing: .5px;
    text-indent: 0;
  }

  .yn {
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}

/* ================================ 页脚 ================================ */
.site-footer {
  background: #000;
  color: rgba(255, 255, 255, .72);
  font-family: var(--f-han);
  padding: 40px 24px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.9;
}

.site-footer__corp {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.site-footer__addr,
.site-footer__contact {
  font-size: 13px;
}

.site-footer__sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, .35);
}

.site-footer__icp {
  margin-top: 8px;
  font-size: 13px;
}

.site-footer__icp a {
  color: rgba(255, 255, 255, .72);
  transition: color .2s;
}

.site-footer__icp a:hover { color: #fff; }

@media (max-width: 767px) {
  .site-footer { padding: 28px 16px; }
  .site-footer__corp { font-size: 15px; }
  .site-footer__addr,
  .site-footer__contact,
  .site-footer__icp { font-size: 12px; }
  /* 窄屏把「手机号 | 邮箱」拆成两行，竖线隐藏 */
  .site-footer__contact span { display: block; }
  .site-footer__sep { display: none; }
}
