/*
  一木笔记官网
  色板取自安卓端 colors.xml 的 md_* 语义色（浅色 / _night 两套），网页端用 CSS 变量承载，
  只在 :root 定义一次，下面全部引用变量。夜间走 prefers-color-scheme。
*/
:root {
  --primary: #17181b;          /* md_primary */
  --on-primary: #fff;          /* md_on_primary，恒为白 */
  --accent: #2b5aa0;           /* md_accent */
  --accent-soft: #e8eef7;      /* md_accent_soft */
  --info: #3b6ef5;             /* md_info */
  --danger: #e5484d;           /* md_danger */
  --surface: #f2f3f5;          /* md_surface */
  --paper: #fff;               /* md_surface_container_lowest */
  --container: #eceef1;        /* md_surface_container */
  --ink: #1c1b1b;              /* md_on_surface */
  --ink-soft: #484555;         /* md_on_surface_variant */
  --meta: #797587;             /* md_outline */
  --hint: #c9c4d8;             /* md_outline_variant */
  --line: #e8e9eb;             /* md_card_line */
  --gold: #e7c56a;
  --paper-warm: #fbf7ef;       /* 画布纸色：内容调色板 */
  --paper-rule: #ece8df;

  --glow-a: rgba(59, 110, 245, 0.22);
  --glow-b: rgba(43, 90, 160, 0.16);
  --grid: rgba(23, 24, 27, 0.05);
  --nav-bg: rgba(242, 243, 245, 0.72);
  --scrim: rgba(13, 15, 19, 0.46);

  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #f2f3f5;
    --on-primary: #17181b;
    --accent: #7ca6de;         /* md_accent_night */
    --accent-soft: rgba(124, 166, 222, 0.14);
    --info: #7ca6de;
    --surface: #131316;        /* md_surface_dim_night */
    --paper: #1a1a1e;          /* md_surface_night */
    --container: #26262b;
    --ink: #eceef1;
    --ink-soft: #b4b3bd;
    --meta: #8a8996;
    --hint: #4a4955;
    --line: #2a2a30;
    --paper-warm: #22211e;
    --paper-rule: #2e2c28;

    --glow-a: rgba(124, 166, 222, 0.2);
    --glow-b: rgba(120, 100, 220, 0.14);
    --grid: rgba(255, 255, 255, 0.04);
    --nav-bg: rgba(19, 19, 22, 0.7);
    --scrim: rgba(0, 0, 0, 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* ===== 顶部阅读进度 ===== */
.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 60;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--info));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* ===== 导航 ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.is-scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.nav-links a {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--container);
}

.nav-links a.is-current {
  color: var(--ink);
}

.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-cta,
.nav-login {
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-cta {
  border: 0;
  background: var(--primary);
  color: var(--on-primary);
}

.nav-cta:hover,
.nav-login:hover {
  transform: translateY(-1px);
}

/* QQ_REVIEW_LOGIN：审核通过后连同官网登录入口一起删 */
.nav-login {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.nav-login:hover {
  border-color: var(--hint);
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  position: relative;
}

.nav-toggle i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}

.nav-toggle i:first-child {
  top: 14px;
}

.nav-toggle i:last-child {
  top: 20px;
}

.nav-toggle[aria-expanded="true"] i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-top: -64px;
  padding: 172px 0 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow.g1 {
  left: calc(var(--mx, 50%) - 280px);
  top: calc(var(--my, 20%) - 280px);
  background: var(--glow-a);
  transition: left 1.2s var(--ease), top 1.2s var(--ease);
}

.glow.g2 {
  right: -120px;
  top: 60px;
  background: var(--glow-b);
  animation: drift 14s ease-in-out infinite alternate;
}

.hero h1 {
  margin: 0 auto 22px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-indent: 0.04em; /* 抵消末字后的字距，视觉居中 */
  line-height: 1.08;
  color: var(--ink);
}

/* 渐变只挂在单字上：挂在 h1 上会按最终位置先画一遍字，入场动画就看不出来了 */
.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotateX(-70deg);
  filter: blur(8px);
  animation: char-in 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
  background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 50%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  margin: 0 auto 34px;
  max-width: 26em;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.04em;
  animation: rise 1s var(--ease) 0.45s both;
}

/* 平台分段：滑块跟随选中项 */
.platforms {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  animation: rise 1s var(--ease) 0.55s both;
}

.seg-pill {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(var(--x, 0));
  width: var(--w, 0);
  transition: transform 0.5s var(--spring), width 0.5s var(--spring);
}

.platforms button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 0.35s var(--ease);
}

.platforms button:hover {
  color: var(--ink);
}

.platforms button.is-active {
  color: var(--on-primary);
}

.store-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 1s var(--ease) 0.65s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
  transform: translate(var(--tx, 0), var(--ty, 0));
}

.btn:active {
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.97);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

/* 主按钮扫光 */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: sheen 4.5s var(--ease) 1.6s infinite;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.btn-ghost span {
  transition: transform 0.3s var(--ease);
}

.btn-ghost:hover span {
  transform: translateX(4px);
}

/* ===== 区块 ===== */
.section {
  padding: 128px 0;
}

/* hero 截图底边直接落在这条线上，像搁在桌面 */
.hero + .section {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.section.tint {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.h1-br {
  display: none;
}

@media (max-width: 720px) {
  .h1-br {
    display: block;
  }
}

.lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 80px;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.lead h2 {
  margin: 0 0 12px;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.lead p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.feat {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}

.feat:last-child {
  margin-bottom: 0;
}

.feat.is-flip {
  grid-template-columns: 1.15fr 0.85fr;
}

.feat.is-flip .feat-copy {
  order: 2;
}

.feat-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

/* 功能名小标签（照滴答清单：小字功能名 + 大字利益点 + 一段说明 + 了解更多） */
.feat-tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feat-copy > p {
  max-width: 30em;
}

.feat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.feat-link span {
  transition: transform 0.3s var(--ease);
}

.feat-link:hover span {
  transform: translateX(4px);
}

.feat h3 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.feat-copy > p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 16px;
}

.feat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.feat li {
  padding: 12px 0 12px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.feat.is-in li {
  opacity: 1;
  transform: none;
}

.feat.is-in li:nth-child(2) { transition-delay: 0.08s; }
.feat.is-in li:nth-child(3) { transition-delay: 0.16s; }

.feat li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
}

/* 卡片：扁平 + 1px 描边，鼠标处有聚光（--sx/--sy 由 JS 写入） */
[data-spot] {
  --spot-x: 50%;
  --spot-y: 50%;
}

.shot,
.bento-card,
.compare {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.shot::before,
.bento-card::before,
.compare::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), var(--accent-soft), transparent 60%);
  transition: opacity 0.4s var(--ease);
}

.shot::after,
.bento-card::after,
.compare::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  opacity: 0;
  background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), var(--accent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.4s var(--ease);
}

.shot:hover::before,
.shot:hover::after,
.bento-card:hover::before,
.bento-card:hover::after,
.compare:hover::before,
.compare:hover::after {
  opacity: 1;
}

.shot > *,
.bento-card > *,
.compare > * {
  position: relative;
  z-index: 1;
}

.shot {
  min-height: 360px;
}

/* 文档 */
.shot-doc {
  padding: 30px 32px;
}

.doc-kicker {
  color: var(--meta);
  font-size: 12px;
}

.shot-doc h4 {
  margin: 4px 0 16px;
  font-size: 22px;
}

.blk {
  position: relative;
  margin: 0 -10px 4px;
  padding: 4px 10px 4px 28px;
  border-radius: 8px;
  transition: background 0.3s var(--ease);
}

.blk:hover {
  background: var(--surface);
}

.grip {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 12px;
  margin-top: -6px;
  opacity: 0;
  background-image: radial-gradient(circle, var(--meta) 1.2px, transparent 1.4px);
  background-size: 4px 4px;
  transition: opacity 0.25s var(--ease);
}

.blk:hover .grip {
  opacity: 1;
}

/* 演示「块可拖动」：第二块在进入视口后被拎起一次 */
.feat.is-in .blk.is-drag {
  animation: lift 3.4s var(--ease) 0.9s 1 both;
}

.todo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

.todo i {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--hint);
  border-radius: 4px;
  position: relative;
}

.todo.done i {
  background: var(--primary);
  border-color: var(--primary);
}

.todo.done i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--on-primary);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.todo.done span {
  text-decoration: line-through;
  color: var(--meta);
}

.formula {
  display: inline-block;
  margin: 4px 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface);
  font-family: "Times New Roman", serif;
  font-style: italic;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: left;
}

.mini-table th {
  background: var(--surface);
  font-weight: 500;
}

.md-peek {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--spring);
}

.shot-doc:hover .md-peek {
  opacity: 0.94;
  transform: none;
}

/* 画布 */
.shot-paper {
  background:
    linear-gradient(var(--paper-rule) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper-warm);
}

.pens {
  position: absolute;
  top: 16px;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 6px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.pen {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: transform 0.3s var(--spring);
}

.pen:hover {
  transform: scale(1.2);
}

/* 笔色属于内容调色板，不参与换肤 */
.pen.p1 { background: #2b5aa0; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px #2b5aa0; }
.pen.p2 { background: #6b6d73; }
.pen.p3 { background: #7fb6e6; }
.pen.p4 { background: #ffe066; }

.ink-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
}

.ink-path.late {
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0.5;
}

.hl-path {
  fill: none;
  stroke: #ffe066;
  stroke-width: 22;
  stroke-linecap: round;
  opacity: 0.55;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
}

.ink-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.5;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}

.feat.is-in .ink-path { animation: draw 1.8s var(--ease) 0.2s forwards; }
.feat.is-in .ink-path.late { animation-delay: 0.9s; }
.feat.is-in .hl-path { animation: draw 1s var(--ease) 1.8s forwards; }
.feat.is-in .ink-ring { animation: draw 1.2s var(--ease) 2.4s forwards; }

/* 图谱 */
.shot-graph {
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 60%),
    var(--paper);
}

.graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.graph-lines line {
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0.45;
  stroke-dasharray: 4 6;
  animation: flow 1.6s linear infinite;
}

.nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--spring), border-color 0.3s;
}

.node:hover {
  border-color: var(--accent);
}

.node.hub {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.feat.is-in .node {
  opacity: 1;
  transform: scale(1);
  animation: bob 5s ease-in-out infinite;
}

.feat.is-in .node:nth-child(1) { transition-delay: 0.1s; animation-delay: 0.1s; }
.feat.is-in .node:nth-child(2) { transition-delay: 0s; animation-delay: 0.5s; }
.feat.is-in .node:nth-child(3) { transition-delay: 0.2s; animation-delay: 1s; }
.feat.is-in .node:nth-child(4) { transition-delay: 0.3s; animation-delay: 1.5s; }
.feat.is-in .node:nth-child(5) { transition-delay: 0.4s; animation-delay: 2s; }

/* 同步 */
.shot-sync {
  min-height: 380px;
  background:
    radial-gradient(circle at 70% 50%, var(--accent-soft), transparent 55%),
    var(--paper);
}

.device-lap,
.device-ph {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  z-index: 1;
}

.device-lap {
  width: 58%;
  height: 64%;
  left: 7%;
  top: 18%;
}

.device-ph {
  width: 24%;
  height: 70%;
  right: 9%;
  top: 15%;
  border-radius: 22px;
  border: 6px solid var(--primary);
}

.device-lap .bar {
  height: 24px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.device-lap .bar .dots i {
  width: 7px;
  height: 7px;
}

.device-lap .body,
.device-ph .body {
  padding: 14px 12px;
}

.chip {
  height: 9px;
  border-radius: 6px;
  background: var(--container);
  margin-bottom: 9px;
}

.chip.w2 { width: 62%; }
.chip.w3 { width: 40%; background: var(--accent-soft); }

.device-ph .chip {
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.feat.is-in .device-ph .chip {
  animation: chip-sync 4s var(--ease) infinite;
}

.feat.is-in .device-ph .chip:nth-child(2) { animation-delay: 0.12s; }
.feat.is-in .device-ph .chip:nth-child(3) { animation-delay: 0.24s; }
.feat.is-in .device-ph .chip:nth-child(4) { animation-delay: 0.36s; }

.shot-cover {
  height: 80px;
  margin: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--container));
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.sync-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
}

.sync-wire path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
  animation: flow 0.9s linear infinite;
}

/* ===== Bento ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.bento-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  transition: transform 0.5s var(--ease);
}

.bento-card.b-wide {
  grid-column: span 3;
}

.bento-card.reveal.is-in:hover {
  transform: translateY(-4px);
  transition-delay: 0s;
}

.bento-visual {
  flex: 1;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, var(--paper));
}

.bento-copy {
  padding: 22px 24px 24px;
}

.bento-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.bento-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* 导入导出：左进右出 */
.v-io {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: repeat(4, auto);
  align-content: center;
  gap: 8px 40px;
  padding: 20px 28px;
}

.v-io span {
  justify-self: start;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-soft);
  animation: io-l 3.6s var(--ease) infinite;
}

.v-io span:nth-child(1) { grid-column: 1; grid-row: 1; }
.v-io span:nth-child(2) { grid-column: 1; grid-row: 2; animation-delay: 0.3s; }
.v-io span:nth-child(3) { grid-column: 1; grid-row: 3; animation-delay: 0.6s; }
.v-io span:nth-child(n + 5) { grid-column: 3; justify-self: end; animation-name: io-r; }
.v-io span:nth-child(5) { grid-row: 1; animation-delay: 1.2s; }
.v-io span:nth-child(6) { grid-row: 2; animation-delay: 1.4s; }
.v-io span:nth-child(7) { grid-row: 3; animation-delay: 1.6s; }
.v-io span:nth-child(8) { grid-row: 4; animation-delay: 1.8s; }

.io-core {
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}

.io-core::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: halo 3.6s var(--ease) 0.9s infinite;
}

.io-core img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* 小组件：热力图 */
.v-heat {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  padding: 24px;
  align-content: center;
}

.v-heat i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--container);
  transform: scale(0);
  transition: transform 0.5s var(--spring), background 0.3s;
  transition-delay: calc(var(--k) * 6ms);
}

.v-heat i[data-l="1"] { background: color-mix(in srgb, var(--accent) 25%, var(--container)); }
.v-heat i[data-l="2"] { background: color-mix(in srgb, var(--accent) 50%, var(--container)); }
.v-heat i[data-l="3"] { background: color-mix(in srgb, var(--accent) 78%, var(--container)); }
.v-heat i[data-l="4"] { background: var(--accent); }

.bento-card.is-in .v-heat i {
  transform: scale(1);
}

.v-heat i:hover {
  transform: scale(1.35) !important;
  transition-delay: 0s;
}

/* AI：逐行生成 */
.v-ai {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ai-line {
  display: block;
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--info), var(--accent));
  background-size: 200% 100%;
  transform-origin: 0 50%;
  animation: ai-write 4.2s var(--ease) infinite, shimmer 2.4s linear infinite;
  opacity: 0.85;
}

.ai-line.s2 { width: 82%; animation-delay: 0.35s, 0s; }
.ai-line.s3 { width: 56%; animation-delay: 0.7s, 0s; }

.ai-caret {
  display: block;
  width: 2px;
  height: 16px;
  background: var(--info);
  animation: caret 1s steps(1) infinite;
}

/* 检索 */
.v-search {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 80%);
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--meta);
  font-size: 14px;
}

.sbar span {
  color: var(--ink);
}

.sbar span::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--info);
  animation: caret 1s steps(1) infinite;
}

.avatars {
  display: flex;
}

.avatars i {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: linear-gradient(135deg, var(--accent), var(--info));
}

.avatars i:nth-child(2) { background: linear-gradient(135deg, #c8d5c4, #7fa88a); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, var(--gold), #d9935a); }

.pro {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #17181b;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  vertical-align: 2px;
}

/* ===== 会员对比 ===== */
.compare {
  width: min(840px, 100%);
  margin: 0 auto;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 14px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.compare th {
  font-weight: 600;
  font-size: 13px;
  color: var(--meta);
  letter-spacing: 0.04em;
}

.compare th.is-pro {
  color: var(--accent);
}

.compare td:last-child {
  color: var(--accent);
  font-weight: 500;
}

.compare td:first-child {
  color: var(--ink);
}

.compare th:last-child,
.compare td:last-child {
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.compare tbody tr {
  transition: background 0.25s var(--ease);
}

.compare tbody tr:hover {
  background: var(--surface);
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare .off {
  color: var(--hint) !important;
}

/* ===== 尾部行动区 ===== */
.cta-band {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 900px;
  height: 900px;
  margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-a), transparent 65%);
  pointer-events: none;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cta-band p {
  margin: 0 0 32px;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ===== 页脚 ===== */
.footer {
  padding: 56px 0 28px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--meta);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer .brand {
  color: var(--ink);
  margin-bottom: 10px;
}

.footer p {
  margin: 4px 0;
}

.footer a {
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--ink);
}

.footer h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 7px 0;
}

.legal {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.beian {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.beian-mps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.beian-mps svg {
  display: block;
  flex-shrink: 0;
}

/* ===== 滚动入场 ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ===== 关键帧 ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes char-in {
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes stage-in {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}

@keyframes pane-in {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-180px, 120px) scale(1.2); }
}

@keyframes blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 20px) scale(1.25); }
}


@keyframes sheen {
  0% { transform: translateX(-120%); }
  30%, 100% { transform: translateX(120%); }
}

@keyframes caret {
  50% { opacity: 0; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes flow {
  to { stroke-dashoffset: -20; }
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes lift {
  0%, 100% { transform: none; background: transparent; box-shadow: none; }
  20% { transform: translate(6px, -2px) rotate(-0.6deg); background: var(--paper); box-shadow: 0 10px 30px -8px rgba(23, 24, 27, 0.18); }
  55% { transform: translate(6px, 36px) rotate(-0.6deg); background: var(--paper); box-shadow: 0 10px 30px -8px rgba(23, 24, 27, 0.18); }
  75% { transform: none; background: transparent; box-shadow: none; }
}

@keyframes chip-sync {
  0%, 10% { transform: scaleX(0); }
  35%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0.4; }
}

@keyframes io-l {
  0%, 100% { transform: none; opacity: 1; }
  40% { transform: translateX(12px); opacity: 0.4; }
}

@keyframes io-r {
  0%, 100% { transform: none; opacity: 1; }
  40% { transform: translateX(-12px); opacity: 0.4; }
}

@keyframes halo {
  0% { opacity: 0.7; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.3); }
}

@keyframes ai-write {
  0% { transform: scaleX(0); }
  30%, 80% { transform: scaleX(1); }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ===== QQ_REVIEW_LOGIN overlay（对照电脑端登录页，审核通过后删） ===== */
body.login-open {
  overflow: hidden;
}

.login-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.3s var(--ease);
}

.login-layer[hidden] {
  display: none;
}

.login-card {
  position: relative;
  width: min(400px, 100%);
  padding: 32px 32px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.35);
  outline: none;
  animation: pop 0.45s var(--spring);
}

.login-x {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s;
}

.login-x:hover {
  background: var(--surface);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
}

.login-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.login-wechat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 48px;
  margin-top: 46px;
  border: 0;
  border-radius: 12px;
  background: #2b5aa0; /* 对照电脑端登录页按钮底色 */
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: filter 0.2s;
}

.login-wechat:hover {
  filter: brightness(1.08);
}

.login-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--meta);
  font-size: 12px;
}

.login-split i {
  display: block;
  height: 1px;
  background: var(--line);
}

.login-alts {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 22px;
}

.login-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  transition: transform 0.3s var(--spring);
}

.login-icon:hover {
  transform: scale(1.08);
}

.login-wechat img {
  width: 24px;
  height: 24px;
  display: block;
}

.login-icon img {
  width: 40px;
  height: 40px;
  display: block;
}

.login-error {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.login-agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: left;
}

.login-agree a {
  color: var(--info);
}

.login-check {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}

.login-check.is-on {
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.login-email-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}

.login-back {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 28px;
  line-height: 1;
}

.login-field {
  display: block;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.login-field input {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-email-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.login-gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--scrim);
}

.login-gate[hidden] {
  display: none;
}

.login-gate-card {
  width: min(340px, calc(100% - 32px));
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: center;
  animation: pop 0.4s var(--spring);
}

.login-gate-card h3 {
  margin: 0;
  font-size: 17px;
}

.login-gate-card p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.login-gate-card a {
  color: var(--info);
}

.login-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.login-gate-actions button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.login-gate-actions .is-primary {
  border-color: #2b5aa0;
  background: #2b5aa0;
  color: #fff;
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .feat,
  .feat.is-flip,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feat.is-flip .feat-copy {
    order: 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card.b-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .wrap,
  .nav-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero {
    padding-top: 128px;
  }

  .platforms button {
    padding: 0 11px;
    font-size: 13px;
  }

  .section {
    padding: 88px 0;
  }

  .lead {
    margin-bottom: 52px;
  }

  .feat {
    margin-bottom: 72px;
  }

  .compare th,
  .compare td {
    padding: 11px 12px;
    font-size: 13px;
  }

  .v-io {
    gap: 8px 16px;
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .hero h1 .ch,
  .feat li,
  .node,
  .v-heat i {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .ink-path,
  .hl-path,
  .ink-ring {
    stroke-dashoffset: 0;
  }

  .device-ph .chip {
    transform: none;
  }
}

/* ===== 下载弹窗 ===== */
body.dl-open {
  overflow: hidden;
}

.dl-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade 0.3s var(--ease);
}

.dl-layer[hidden] {
  display: none;
}

.dl-card {
  position: relative;
  width: min(440px, 100%);
  padding: 32px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.4);
  outline: none;
  animation: pop 0.45s var(--spring);
}

.dl-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  transition: background 0.2s;
}

.dl-x:hover {
  background: var(--surface);
}

.dl-head {
  text-align: center;
  margin-bottom: 22px;
}

.dl-head img {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
}

.dl-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
}

.dl-head p {
  margin: 0;
  color: var(--meta);
  font-size: 14px;
}

.dl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-list li + li {
  margin-top: 6px;
}

.dl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  transition: background 0.25s var(--ease);
  animation: rise 0.5s var(--ease) both;
}

.dl-list li:nth-child(2) .dl-row { animation-delay: 0.04s; }
.dl-list li:nth-child(3) .dl-row { animation-delay: 0.08s; }
.dl-list li:nth-child(4) .dl-row { animation-delay: 0.12s; }
.dl-list li:nth-child(5) .dl-row { animation-delay: 0.16s; }

.dl-row:hover {
  background: var(--surface);
}

.dl-row.is-current {
  background: var(--surface);
}

.dl-ic {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.dl-row:hover .dl-ic,
.dl-row.is-current .dl-ic {
  background: var(--paper);
}

.dl-ic svg {
  width: 22px;
  height: 22px;
}

.dl-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}

.dl-txt b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.dl-txt small {
  color: var(--meta);
  font-size: 12.5px;
}

.dl-go {
  flex: none;
  min-width: 60px;
  height: 32px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.3s var(--spring);
}

.dl-row:hover .dl-go {
  transform: scale(1.05);
}

/* 渠道尚未上线 */
.dl-row.is-soon {
  cursor: default;
}

.dl-row.is-soon:hover {
  background: none;
}

.dl-row.is-soon .dl-ic {
  color: var(--meta);
}

.dl-row.is-soon .dl-go {
  background: var(--surface);
  color: var(--meta);
  transform: none;
}
