/* =============================================================================
   椿水（csls.fanshiyuone.top / 深圳梵时语科技有限公司）—— 电商向（数码配件）
   源文件: figma.com/design/XLnne24emhqQGXSMXHecGj  node 11:2「椿水零售版」
   画板: 1104 x 2299，底色 #e1eaf4

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

   · 不引 Google Fonts（展示机在国内）；原稿字体 Inter 对中文无字形，这里直接走系统 CJK 栈。
   · 所有文本在原稿里都是单行 nowrap、左对齐，left/top 即 Figma 节点坐标；
     line-height 取原稿文本框高（20→24 / 24→29 / 32→39），让字形落在同一个行盒中线上。
   · 导航「首页」不要照抄导出的 #d9d9d9（浅底上看不见），原稿渲染墨色是 #151515。
   · 截图 .ph-* 的 width/height 是**原稿显示框（1×）**，位图是它的 2 倍 —— 别照 naturalWidth 填。
   ========================================================================== */

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

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

body { margin: 0; background: #e1eaf4; 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:      #e1eaf4;
  --c-ink:     #000;
  --c-nav-cur: #151515;
  --c-nav-ink: #282626;
  --c-cta-bg:  #10100e;
  --c-cta-ink: #fdf0e6;
}

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

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

.page {
  position: relative;
  width: 1104px;
  height: 2299px;
}

.page section, .phs { position: static; }

/* ============================== 顶部导航 ============================== */
.nav {
  position: absolute;
  left: 0; top: 0;
  width: 1104px; height: 113px;
}

.nav-mark {
  position: absolute;
  left: 23px; top: 20px;
  width: 105px; height: 93px;
}

.nav-word {
  position: absolute;
  left: 163px; top: 45px;
  font-family: var(--f-han);
  font-size: 32px; font-weight: 400; line-height: 39px;
  color: #000;
  white-space: nowrap;
}

/* 原稿 frame 311,18：gap 70 的 flex，导航项 y = frame y + 29.5，下载键 y = frame y + 18 */
.nav-links {
  position: absolute;
  left: 311px; top: 47.5px;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 70px;
}

.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: 746px; top: 36px;
  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;
  text-align: center;
  transition: opacity .2s;
}

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

/* ============================== 文本 ============================== */
.txt {
  position: absolute;
  color: var(--c-ink);
  font-family: var(--f-han);
  font-weight: 400;
  white-space: nowrap;
}

.t1   { left: 516px; top: 373px; font-size: 32px; line-height: 39px; font-weight: 300; } /* 原稿 516,373 32px Light */
.t2   { left: 526px; top: 516px; font-size: 32px; line-height: 39px; font-weight: 300; } /* 原稿 526,516 32px Light */
.t3   { left: 526px; top: 896px; font-size: 32px; line-height: 39px; font-weight: 300; text-indent: 9px; } /* 原稿 526,896 32px Light 前导空格→text-indent */
.t4   { left: 593px; top: 1040px; font-size: 32px; line-height: 39px; font-weight: 200; } /* 原稿 593,1040 32px ExtraLight */
.t5   { left: 543px; top: 1394px; font-size: 32px; line-height: 39px; font-weight: 300; } /* 原稿 543,1394 32px Light */
.t6   { left: 495px; top: 1526px; font-size: 32px; line-height: 39px; font-weight: 300; } /* 原稿 495,1526 32px Light */

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

.ph-home    { left: 110px; top: 278px; width: 170px; height: 303px; }
.ph-cate    { left: 307px; top: 278px; width: 171px; height: 303px; }
.ph-detail  { left: 89px; top: 859px; width: 178px; height: 316px; }
.ph-cart    { left: 290px; top: 854px; width: 181px; height: 321px; }
.ph-topup   { left: 75px; top: 1683px; width: 213px; height: 379px; }
.ph-mine    { left: 344px; top: 1688px; width: 208px; height: 369px; }

/* ======================= 中屏：整体等比缩放 ======================= */
/* zoom 按每档最窄视口算：(下界 − 20px 滚动条余量) ÷ 1104；第一档上界 = 画板宽 + 19。 */
@media (max-width: 1123px) { .stage { zoom: 0.978; } }
@media (max-width: 1100px) { .stage { zoom: 0.888; } }
@media (max-width: 1000px) { .stage { zoom: 0.797; } }
@media (max-width: 900px) { .stage { zoom: 0.707; } }
@media (max-width: 800px) { .stage { zoom: 0.678; } }

/* ========================= 窄屏：单栏流式 ========================= */
@media (max-width: 767px) {
  .stage { zoom: 1; width: 100%; }

  .page {
    width: 100%;
    height: auto;
    padding: 96px 20px 48px;
  }

  .nav { width: 100%; height: 72px; }

  .nav-mark { left: 14px; top: 12px; width: 54px; height: 48px; }

  .nav-word {
    left: 80px; top: 12px;
    font-size: 26px; line-height: 48px;
  }

  .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; }

  .txt, .ph { position: static; }

  .txt {
    white-space: normal;
    font-size: 15px; line-height: 1.7;
    text-align: center;
    text-indent: 0;
  }

  .txt:first-child { font-size: 21px; line-height: 1.5; margin-bottom: 8px; }

  .phs { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

  .ph { width: 100%; max-width: 220px; height: auto; border-radius: 8px; }
  .phs .ph:only-child { max-width: 240px; }
  .phs .ph:not(:only-child) { width: calc(50% - 6px); }
}

/* ================================ 页脚 ================================ */
/* 四站逐字节相同，改一处要四处一起改 */
.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__contact .site-footer__sep { display: none; }
}
