/* =============================================================================
   娇纯 · 美妆好物商城（深圳市励虞科技有限公司）
   源文件: figma.com/design/Ut5TMqoC6MsrRx514152gF  node 205041:6360
   画板: 1899 x 3839，底色 #f3ebeb

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

   注意：不引 Google Fonts —— 展示机在国内，fonts.googleapis.com 会被墙掉
   导致首屏阻塞。正文一律走系统 CJK 字体栈。
   原稿正文/标题标的是 Inter Regular（西文字体，中文由 Figma 回落到系统 CJK），
   导航项标的是 Source Han Sans CN Bold —— 这里对应 400 / 700 两档。

   🔴 导航「首页」的颜色不要照抄 Figma 导出的 #d9d9d9 ——
      那个值在 #f3ebeb 底上几乎看不见，而 1:1 原稿渲染图里量到的实际墨色是
      rgb(21,21,21)。三个导航项里「首页」（当前项）比另两项（#282626）略深，
      与 lianwen-www 同一处理。

   🔴 行高实测 = 1.2（40px→48px、64px→76.8px，与 Figma 的 line-height:auto 一致），
      两行文本的墨迹 top 差在原稿里逐块都是 48px。
   🔴 正文一律不用 <br> 硬换行：换行点由「width + letter-spacing:1.2px + CJK 禁则」
      算出（每行 ≈ 宽度 ÷ 41.2，且「，」不能出现在行首）。**改 width 或字距换行点就跑。**
   ========================================================================== */

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

/* html 也要 overflow-x:hidden —— 只给 body 设，缩放档位有零头时
   documentElement 仍会横向溢出 */
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body { margin: 0; background: #f3ebeb; 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:      #f3ebeb;   /* 画板底色 */
  --c-ink:     #000;
  --c-brand:   #10100e;   /* 品牌字「娇纯」 */
  --c-nav-cur: #151515;   /* 导航当前项「首页」（实测墨色，非导出的 #d9d9d9） */
  --c-nav-ink: #282626;   /* 导航其余项 */
  --c-cta-bg:  #10100e;   /* 「下载」胶囊按钮 */
  --c-cta-ink: #f9dada;
}

.canvas { background: var(--c-bg); }

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

.page {
  position: relative;
  width: 1899px;
  height: 3839px;
}

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

/* ============================== 顶部导航 ============================== */
/* 容器铺满画板宽，子元素直接用画板绝对坐标（原稿里 logo / 品牌字是画板的直接子节点，
   只有三个导航项 + 下载按钮在 frame 205045:6367 里） */
.nav {
  position: absolute;
  left: 0; top: 0;
  width: 1899px; height: 116px;
}

.nav-mark {
  position: absolute;
  left: 134px; top: 30px;
  width: 87px; height: 84px;
  border-radius: 19px;
  object-fit: cover;
}

.nav-word {
  position: absolute;
  left: 330px; top: 30px;        /* 原稿 y=34，64px 字号的行盒 ascent 差 4px，见下方标题说明 */
  font-family: var(--f-han);
  font-size: 64px; font-weight: 400; line-height: 1.2;
  letter-spacing: 1.92px;
  color: var(--c-brand);
  white-space: nowrap;
}

/* 三个导航项 + 下载按钮是一条 gap:60 的 flex —— 与原稿 frame 205045:6367 一致，
   算出来的绝对位置正好是 688 / 793 / 943 / 1093 */
.nav-links {
  position: absolute;
  left: 688px; top: 56.5px;
  height: 33px;
  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-cur); }

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

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

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

/* ============================== 标题 ============================== */
.tt {
  position: absolute;
  color: var(--c-ink);
  font-family: var(--f-han);
  font-size: 64px; font-weight: 400; line-height: 1.2;
  letter-spacing: 1.92px;
  white-space: nowrap;
}

/* 🔴 top 不是 Figma 节点的 y：CSS 用系统 CJK 字体复现时行盒内的 ascent 与 Figma 的
   回退字体有差，照抄 y 会整体下坠（64px 档差 4px、40px 档差 2px）。下面的值是拿
   1:1 原稿渲染图逐块量墨迹边界校准出来的，括号里标的是原稿 y。 */
.tt-1 { left: 107px; top: 528px; }   /* 原稿 y=532 */

/* ============================== 正文 ============================== */
.txt {
  position: absolute;
  color: var(--c-ink);
  font-family: var(--f-han);
  font-size: 40px; font-weight: 400; line-height: 48px;
  letter-spacing: 1.2px;
}

/* width 决定换行点，别动（见文件头说明）；不带 width 的是原稿的 nowrap 单行。
   top 同样是校准值，括号里是原稿 y（40px 档统一 −2）。 */
.txt-2 { left:  688px; top: 1171px; width: 544px; }   /* 原稿 y=1173；13 / 13 字 */
.txt-3 { left:  107px; top: 2043px; white-space: nowrap; }              /* 原稿 y=2045 */
.txt-4 { left: 1166px; top: 2820px; width: 606px; }   /* 原稿 y=2822；13 / 13 字 */
.txt-5 { left: 1139px; top: 3065px; width: 660px; }   /* 原稿 y=3067；16 / 11 字。
           原稿框宽 659，而 16 字正好 659.2px —— 差 0.2px 会把第 16 字挤到下一行，故补到 660 */

/* ============================ App 截图 ============================ */
.ph { position: absolute; }

.ph-home   { left: 1357px; top:  417px; width: 388px; height: 701px; }
.ph-detail { left:  178px; top: 1018px; width: 434px; height: 783px; }
.ph-cart   { left: 1212px; top: 1750px; width: 379px; height: 685px; }
.ph-mine   { left:  178px; top: 2680px; width: 380px; height: 687px; }
.ph-topup  { left:  688px; top: 2684px; width: 378px; height: 683px; }

/* ======================= 中屏：整体等比缩放 ======================= */
/* zoom 而非 transform:scale —— zoom 会带动布局高度，页面不会留白。
   每档的 zoom 按该区间**最窄**的视口算：(下界 − 20px 滚动条余量) ÷ 1899，
   否则档内最窄那几像素会横向溢出。
   第一档上界 1918 = 画板 1899 + 19px 滚动条余量：媒体查询比的是视口宽（含滚动条），
   而能不能放下画板取决于内容区宽，视口正好 1899 时内容区只剩 1884。 */
@media (max-width: 1918px) { .stage { zoom: .93; } }
@media (max-width: 1800px) { .stage { zoom: .88; } }
@media (max-width: 1700px) { .stage { zoom: .83; } }
@media (max-width: 1600px) { .stage { zoom: .77; } }
@media (max-width: 1500px) { .stage { zoom: .72; } }
@media (max-width: 1400px) { .stage { zoom: .67; } }
@media (max-width: 1300px) { .stage { zoom: .62; } }
@media (max-width: 1200px) { .stage { zoom: .56; } }
@media (max-width: 1100px) { .stage { zoom: .51; } }
@media (max-width: 1000px) { .stage { zoom: .46; } }
@media (max-width:  900px) { .stage { zoom: .42; } }
@media (max-width:  820px) { .stage { zoom: .39; } }

/* ========================= 窄屏：单栏流式 ========================= */
/* 原稿是 1899 宽的桌面画板，手机上按 DOM 顺序重排，不再还原绝对坐标 */
@media (max-width: 767px) {
  .stage { zoom: 1; width: 100%; }

  .page {
    width: 100%;
    height: auto;
    padding: 96px 20px 48px;   /* 顶部留给绝对定位的 .nav（72px）+ 24px 呼吸 */
  }

  /* 导航压成固定高度的普通栏；窄屏放不下三个导航项，收起，只留下载按钮
     （联系方式在页脚，「关于我们」的内容本身就在下面） */
  .nav { left: 0; top: 0; width: 100%; height: 72px; }

  .nav-mark { left: 14px; top: 12px; width: 50px; height: 48px; border-radius: 11px; }

  .nav-word {
    left: 76px; top: 12px;
    height: 48px;
    font-size: 28px; line-height: 48px; letter-spacing: .8px;
  }

  .nav-links { display: none; }

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

  .page section {
    display: block;
    margin-bottom: 44px;
  }

  .tt, .txt, .ph {
    position: static;
    white-space: normal;
    width: auto;
  }

  .tt {
    font-size: 24px; line-height: 1.5; letter-spacing: .6px;
    margin-bottom: 10px;
  }

  .txt {
    font-size: 15px; line-height: 1.7; letter-spacing: .4px;
  }

  .ph {
    width: 100%; max-width: 240px; height: auto;
    margin: 20px auto 0;
    border-radius: 8px;
  }
}

/* ================================ 页脚 ================================ */
/* 与 liuruan 站逐字节相同，改一处要两处一起改 */
.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 .site-footer__sep`：
        单写 `.site-footer__sep`（0,1,0）打不过上一行的 `.site-footer__contact span`（0,1,1），
        竖线会变成 block 单占一行。 */
  .site-footer__contact span { display: block; }
  .site-footer__contact .site-footer__sep { display: none; }
}
