/* Beepin 展示页样式。
   文字阶与强调色取自 App 现行主题（beepin_app/lib/config/theme/theme.dart 浅色 ColorScheme）。
   App 只提供一个 surface 色 #EEFDF7（饱和度 79%），整页铺满等于一张绿纸，所以画布与浮层
   是把它同色相降饱和到 16%、提亮到 97% 推导出的中性阶，#EEFDF7 降级为产品图后方的局部柔光。
   改配色只动 :root。 */

:root {
  /* 画布：App 的 surface #EEFDF7 同色相降饱和到 16%、提亮到 97% */
  --canvas: #f7f9f8;

  /* 文字阶，沿用 App token */
  --ink: #111e1b; /* colors.onSurface */
  --ink-2: #394a46; /* colors.onSurfaceVariant */
  --ink-3: #576864; /* colors.outline */
  --accent: #006b5d; /* colors.surfaceTint，链接与 hover：压画布 6.09:1 */

  /* App 的 outlineVariant #849691 压画布只有 2.9:1，做边框太抢眼，改用低透明墨色发丝线 */
  --hair: rgba(17, 30, 27, 0.07);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* 三层低透明大模糊：要让人觉得"浮着一点"，而不是"加了阴影" */
  --float: 0 2px 4px rgba(17, 30, 27, 0.04),
    0 12px 24px -8px rgba(17, 30, 27, 0.1),
    0 40px 64px -32px rgba(17, 30, 27, 0.12);
  --float-quiet: 0 1px 3px rgba(17, 30, 27, 0.04),
    0 8px 18px -10px rgba(17, 30, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  /* 两团无边界径向柔光替代纯色填充：制造光源，而不是制造色块。
     取 App 的 primary #008776 压到 5.5%/3.5%，需带透明度故未走变量 */
  background-image: radial-gradient(
      1100px 620px at 76% -10%,
      rgba(0, 135, 118, 0.055),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at 4% 104%,
      rgba(0, 135, 118, 0.035),
      transparent 60%
    );
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 顶部导航：滚动超过 50px 后加半透明底与模糊，未滚动时透明 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  /* 1px 透明边框常驻占位，避免加底色时整页跳 1px */
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s var(--ease),
    border-color 0.28s var(--ease), backdrop-filter 0.28s var(--ease);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hair);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* 品牌图标自身已含 beepin 字标，故不再并排文字 */
.brand img {
  height: 2.5rem;
  width: auto;
  border-radius: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.5rem 1.125rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 400;
  transition: color 0.24s var(--ease), background-color 0.24s var(--ease);
}

.nav-links a:hover {
  color: var(--accent);
  background-color: rgba(0, 107, 93, 0.06);
}

main {
  padding-top: 5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  animation: rise 0.6s var(--ease) both;
}

/* 标题拆两行：原来用一根竖线连接产品名与定位语，属于"用符号代替空间"，
   改成字号与字重落差。文案一字未动 */
.hero h1 {
  margin: 0;
  font-size: 2.75rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero h1 .t2 {
  display: block;
  margin-top: 0.875rem;
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.hero .tagline {
  margin: 1.75rem 0 0;
  max-width: 24rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-3);
}

.shots {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 3.5rem 0 4.5rem;
  /* App 的 surface #EEFDF7 只在这一团柔光里出现，占画面比例远小于 5%。
     画在自身背景上而不是伪元素：伪元素要外扩就必然撑破文档宽度 */
  background: radial-gradient(
    62% 54% at 50% 50%,
    rgba(238, 253, 247, 0.95),
    rgba(238, 253, 247, 0) 76%
  );
  animation: rise 0.6s 0.12s var(--ease) both;
}

.shot {
  min-width: 0;
}

/* 后一张下移并缩到 94%、阴影更弱，形成近—远两级深度 */
.shot + .shot {
  transform: translateY(2rem) scale(0.94);
}

.shot-inner {
  position: relative;
  width: clamp(15rem, 22vw, 17.25rem);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.5rem;
  border: 1px solid var(--hair);
  box-shadow: var(--float);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.shot + .shot img {
  box-shadow: var(--float-quiet);
}

.shot img:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--float-quiet);
}

/* 标题与正文同为左对齐、整块居中：居中标题压左对齐正文会两种对齐混用 */
.about-head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  text-align: left;
  animation: rise 0.6s var(--ease) both;
}

.about-head h1 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* 正文行宽从 56rem 收到 42rem：中文 19px 下约 34 字一行，再宽眼睛要回头找下一行 */
.about-body {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 4rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 2.1;
  animation: rise 0.6s 0.08s var(--ease) both;
}

.about-body p {
  margin: 0 0 1.25rem;
}

/* 页脚：备案信息与协议入口 */
footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.75rem 1.5rem 3.5rem;
  border-top: 1px solid var(--hair);
  text-align: center;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.875rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

footer a:hover {
  color: var(--accent);
}

footer .icp {
  color: var(--ink-2);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero h1 .t2 {
    font-size: 1.1875rem;
  }

  .shots {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0 3rem;
  }

  .shot + .shot {
    transform: scale(0.97);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/* 首屏改成左文右图两栏：文案列 42%、产品图列 58%，两栏垂直居中 */
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  main > .container {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: center;
    column-gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .shots {
    margin-top: 0;
    padding: 2rem 0;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1120px;
  }

  main > .container {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* 动效只用来建立"到场—静止"的节奏；用户要求减少动效时全部关掉 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
