/* 闪点科技官网（#1001，#2777 改版，#3038 第二版：软件开发公司，产品放后面）。只用系统字体，不从别的网站取字体：一个外部请求都不要。
   颜色、圆角都在 :root 里，风格定下来以后改这里。 */
:root {
  --ink: #1d2a26;
  --muted: #5b6a64;
  --green: #244f3e;
  --green-deep: #17372b;
  --accent: #c8452e;
  --paper: #ffffff;
  --card: #ffffff;
  --line: #e3e0d6;
  --tint: #f3f6f4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 61, 49, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* 点导航跳到一节时，节头不被粘性顶栏盖住（320 宽顶栏三行高 81 px，Mango #2777） */
section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--green); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, p, ul { margin-top: 0; }

/* 顶栏：滚动时留在上面 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; white-space: nowrap; }
.links { min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--green); }

/* 首屏：只讲公司做什么，文字居中，不放产品图（#3038） */
.hero { background: var(--tint); padding: 96px 0 88px; text-align: center; }
.eyebrow { margin-bottom: 12px; color: var(--green); font-weight: 600; letter-spacing: 0.08em; }
.hero h1 { margin-bottom: 20px; font-size: 46px; line-height: 1.25; letter-spacing: 0.01em; }
.hero-lead { margin: 0 auto 32px; max-width: 34em; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 0; }
.btn { display: inline-block; padding: 10px 22px; border: 1px solid var(--green); border-radius: 999px; color: var(--green); text-decoration: none; font-weight: 600; line-height: 1.5; background: var(--card); }
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-deep); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:focus-visible, .links a:focus-visible, .shot a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* 截图：每张链到图片自己（#1049），手机上点一下看原图 */
.shot { margin: 0; }
.shot a { display: block; cursor: zoom-in; }
.shot img { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
/* 样机：设备外框用 CSS 画在图片自己身上（图片外面不再套标签） */
.shot.tablet img { border: 14px solid #15201c; border-radius: 30px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* 我们做什么：四张卡片一行 */
.services { padding: 80px 0 72px; text-align: center; }
.service-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 32px 0 0; list-style: none; }
.service-list li { padding: 28px 20px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); background: var(--card); }
.service-list h3 { margin-bottom: 8px; font-size: 20px; color: var(--green-deep); }
.service-list p { margin: 0; font-size: 15px; color: var(--muted); }

/* 我们的产品：两个产品上下排，文字、卡片、图都居中（高顺 m18214） */
.products { padding: 80px 0; background: var(--tint); text-align: center; }
h2 { margin-bottom: 10px; font-size: 40px; line-height: 1.25; }
.lead { margin: 0 auto 8px; max-width: 40em; font-size: 18px; color: var(--muted); }
.product { max-width: 920px; margin: 48px auto 0; padding: 48px 40px; border-radius: 24px; background: var(--card); }
.kicker { margin-bottom: 4px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; }
.product h3 { margin-bottom: 8px; font-size: 32px; line-height: 1.3; }
.product-lead { margin: 0 auto 32px; max-width: 34em; font-size: 18px; color: var(--green); font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; text-align: left; }
.features li { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; }
.features h4 { margin: 0 0 6px; font-size: 18px; color: var(--green-deep); }
.features p { margin: 0; font-size: 15px; color: var(--muted); }

/* 产品的图：闪点菜单一张平板，选样一段录屏 */
.shots { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; margin-top: 40px; }
.shots .shot.tablet { flex: 1 1 420px; max-width: 720px; }

/* 手机截图（闪点任务介绍页，#3246）：样机外框同录屏的 */
.shot.phone { flex: 0 1 260px; }
.shot.phone img { border: 12px solid #15201c; border-radius: 38px; box-shadow: var(--shadow); }

/* 闪点任务介绍页 /tasks/（#3246）：五个功能三列，服务信息的项名四个字 */
.app-features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.app-features h3 { margin: 0 0 6px; font-size: 18px; color: var(--green-deep); }
.phones { margin-top: 32px; gap: 32px 24px; }
/* 介绍页四张一行（1280 宽），平板两张一行 */
.phones .shot.phone { flex-basis: 220px; }
#service dt { width: 4em; }
.back { margin: 32px 0 0; }

/* 选样小程序的录屏：手机样机，不自动播放 */
.video { flex: 0 1 260px; margin: 0; }
.video video { display: block; width: 100%; height: auto; border: 12px solid #15201c; border-radius: 38px; box-shadow: var(--shadow); background: #15201c; }
.video figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* 联系方式 */
.contact { padding: 72px 0; text-align: center; }
.contact h2 { margin-bottom: 24px; }
.contact dl { margin: 0 auto; display: grid; gap: 12px; max-width: 560px; text-align: left; }
.contact dl div { display: flex; gap: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.contact dt { width: 3em; flex: none; color: var(--muted); }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* 底栏 */
.bottom { background: var(--tint); border-top: 1px solid var(--line); padding: 24px 0; text-align: center; font-size: 14px; color: var(--muted); }
.bottom p { margin: 4px 0; }
.bottom a { color: var(--muted); }
/* 公安备案 (#3116): its badge before the number, on the text's line */
.bottom .beian-mps { display: inline-flex; align-items: center; gap: 4px; }
.bottom .beian-mps img { flex: none; width: auto; height: 18px; }

/* 平板宽度：我们做什么两列 */
@media (max-width: 1000px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 34px; }
}

/* 手机宽度：上下排，留边小一点（320 宽也不横向滚动） */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top-row { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
  .brand { font-size: 18px; }
  .links { gap: 0 14px; }
  .links a { font-size: 14px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 26px; }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .services, .products { padding: 48px 0; }
  .service-list { gap: 12px; margin-top: 24px; }
  .service-list li { padding: 18px 12px; }
  .service-list h3 { font-size: 17px; }
  .service-list p { font-size: 14px; }
  h2 { font-size: 28px; }
  .lead { font-size: 16px; }
  .product { margin-top: 28px; padding: 28px 16px; border-radius: 18px; }
  .product h3 { font-size: 26px; }
  .product-lead { font-size: 16px; margin-bottom: 20px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .features li { padding: 16px 16px; }
  .shots { gap: 24px 12px; margin-top: 28px; }
  .shots .shot.tablet { flex-basis: 100%; }
  .app-features { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .phones { margin-top: 24px; }
  .shot.phone { flex-basis: 240px; }
  .shot.phone img { border-width: 10px; border-radius: 30px; }
  .video { flex-basis: 240px; }
  .video video { border-width: 10px; border-radius: 30px; }
  .contact { padding: 48px 0; }
}

@media (max-width: 360px) {
  .brand { font-size: 17px; }
  .links a { font-size: 13px; }
  .hero h1 { font-size: 22px; }
  .btn { padding: 8px 16px; }
}

/* 不想要动效的人：不平滑滚动 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
