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

:root {
  --brand: #16b998;
  --brand-hover: #14a689;
  --text: #1f2329;
  --text-soft: #5c6470;
  --text-faint: #969ca6;
  /* 全站统一的分割线／边框色，对标腾讯云的浅冷灰。
     用不透明色而非 rgba 叠加：白底和 --wash 灰底上表现一致，不会因背景变深。 */
  --line: #edeff1;
  --paper: #ffffff;
  --wash: #f7f8fa;
  --max: 1220px;
  /* 跑马灯滚动速度，px/s。轨道长度随视口动态变化，
     main.js 用它反推 animation-duration，保证不同视口下观感一致。 */
  --marquee-speed: 42;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

/* 统一的键盘焦点圈。用 :focus-visible 而非 :focus，
   鼠标点击不会留下描边，只有键盘导航才显示 */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* height: auto 必须和 max-width 成对出现：img 上写了 width/height 属性后，
   宽度被 max-width 压缩而高度仍按属性锁死，图片会被拉变形。 */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

/* ─── 头部 ────────────────────────────────────────────────────────────
   半透明白 + 毛玻璃，未滚动时下边框透明，滚动后浮现描边。
   z-index 保持 30，浮动卡片等元素的叠放次序依赖这个值。 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.nav-in {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  height: 24px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: var(--wash);
}

/* AI 实验室入口：仅新增宽屏导航项，移动端沿用现有精简导航。 */
.nav-links a.nav-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 400;
}

.nav-links a.nav-ai:hover {
  color: var(--brand-hover);
}

.nav-ai-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nav-links .btn {
  margin-left: 8px;
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 按钮内图标统一走这条，尺寸各变体自己覆盖。
   flex-shrink 归零：按钮压窄时先挤文字，图标不变形 */
.btn svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex: 0 0 auto;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-hover);
  border: 1px solid var(--brand);
}

.btn-ghost:hover {
  background: rgba(22, 185, 152, 0.1);
  color: var(--brand-hover);
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* ─── 首屏 ──────────────────────────────────────────────────────────
   白底 + 46px 网格底纹 + 中心品牌光晕，居中排版。
   body 底色是 --wash（浅灰），这里显式给白底，网格底纹才显得出来。
   底纹层级用 0 / 1 而非负值：.hero 没有 isolate，
   负层级子元素会逃逸到祖先栈上下文。 */
.hero {
  position: relative;
  padding: 128px 0 72px;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* 裁切放在 .hero-bg 而不是 .hero 上：
   底纹自己裁住溢出的光晕，视觉与原来一致，
   但 .hero 不再裁子元素，CTA 的二维码卡才能向下浮出首屏。 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 顶部中心的品牌色光晕 */
.hero-bg::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,185,152,0.10), rgba(22,185,152,0.04) 40%, transparent 68%);
}

/* 46px 网格，用径向遮罩让四周淡出。
   这里的 #e7eaef 刻意不跟 --line 统一：网格是装饰底纹而非结构线，
   还叠了 opacity 0.6，用统一后的浅灰会淡到几乎看不见 */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#e7eaef 1px, transparent 1px),
    linear-gradient(90deg, #e7eaef 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 62%);
  opacity: 0.6;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 1px 3px rgba(16,24,40,0.04);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.pill .tag {
  background: rgba(245,127,89,0.1);
  color: #f57f59;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 .accent {
  color: var(--brand);
}

.lead {
  max-width: 640px;
  margin: 24px auto 32px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-soft);
  text-wrap: balance;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* 中等宽屏保留 AI 实验室和登录入口，避免新增导航项挤出视口。 */
@media (min-width: 761px) and (max-width: 1080px) {
  .nav-links > a:not(.nav-ai):not(.btn) {
    display: none;
  }
}

.hero-cta .btn {
  min-width: 190px;
  padding: 0 28px;
}

.btn-md {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(22,185,152,0.28);
}

/* ─── 下载 App 的二维码悬浮卡（向下弹出）────────────────────────────── */
.dl-pop {
  position: relative;
  display: inline-flex;
}

.dl-qr-card {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 5;
  width: 176px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 10px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 16px rgba(31,35,41,0.06), 0 16px 40px rgba(31,35,41,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.2s;
}

/* 透明桥接：补上按钮与卡片之间 12px 的空隙，鼠标移过去不会中断 hover */
.dl-qr-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* 只在真能悬停的设备上弹出。触屏点这个按钮是跳到下载区，
   若不限定，点击触发 :focus-within 会让卡片跟着跳转闪一下 */
@media (hover: hover) and (pointer: fine) {
  .dl-pop:hover .dl-qr-card,
  .dl-pop:focus-within .dl-qr-card {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.dl-qr-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.dl-qr-card span {
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-note {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

section {
  padding: 84px 0;
}

/* 宽屏首屏与第二屏衔接更紧凑，避免首屏结束后出现过长空白。 */
@media (min-width: 761px) {
  #features {
    padding-top: 32px;
  }

  #features > .wrap > .fx:first-child {
    padding-top: 32px;
  }
}

#features,
#download {
  background: var(--paper);
}

/* 全站二级标题统一字号（与「优质星球推荐」一致），.fx-copy > h2 也沿用这一档 */
h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.14;
  letter-spacing: 0;
}

.fx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(48px, 6vw, 80px) 0;
}

.fx.flip .fx-copy {
  order: 2;
}

.fx.flip .fx-media {
  order: 1;
}

.fx-num {
  display: block;
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.fx-copy > h2 {
  margin: 0 0 clamp(30px, 4vw, 48px);
  color: var(--text);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.24;
}

.fx-point {
  position: relative;
  padding: 22px 0 22px 26px;
  /* 这条 2px 轨道刻意不跟 --line 统一：它是状态指示器，
     要衬得住上面盖的品牌色高亮条，太浅就看不出切换了 */
  border-left: 2px solid #e7eaef;
  cursor: pointer;
}

.fx-point + .fx-point {
  margin-top: 10px;
}

.fx-point::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.fx-point h3 {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.fx-point p {
  margin: 0;
  max-width: 460px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.78;
  transition: color 0.25s ease;
}

.fx-point.active::before {
  transform: scaleY(1);
}

.fx-point.active h3 {
  color: var(--text);
}

.fx-point.active p {
  color: var(--text-soft);
}

.fx-media {
  position: sticky;
  top: 108px;
}

.fx-stage {
  display: flex;
  justify-content: center;
  padding: clamp(28px, 3.4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--wash);
}

.fx-frame {
  position: relative;
  width: min(250px, 68%);
  aspect-ratio: 1 / 2;
}

.fx-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 22px 44px rgba(31,35,41,0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.fx-shot.active {
  opacity: 1;
  transform: none;
}

.planets {
  overflow: hidden;
  background: var(--wash);
}

/* 推荐区的留白比其他区块更宽，但只在放得下的屏宽上加。
   用 min-width 而不是直接覆盖 section 的 padding：直接覆盖的话特异性更高，
   窄屏断点里还得把统一值再写一遍，两处数字容易改漏。 */
@media (min-width: 761px) {
  .planets {
    padding: 110px 0;
  }
}

.planets-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.planets-more {
  flex-shrink: 0;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.planets-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.marquee {
  overflow: hidden;
  padding: 32px 0;
  margin: -26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 90s linear infinite;
}

.marquee-rev .marquee-track {
  animation-direction: reverse;
}

/* focus-within 与 hover 并列：键盘 Tab 进卡片时轨道也要停，
   否则焦点所在的卡片会从视口里滑走 */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.planet-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 252px;
  padding: 14px 22px 14px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.planet-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(31,35,41,0.1);
}

.planet-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
}

.planet-card b {
  display: block;
  max-width: 180px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planet-owner {
  display: block;
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 13px;
  white-space: nowrap;
}

/* ─── 常见问题 ────────────────────────────────────────────────────────
   左栏标题与求助入口，右栏问答列表。问答用原生 <details>：
   折叠时答案仍在 HTML 里，搜索引擎不点开也能读到，也不依赖 JS。 */
#faq {
  background: var(--paper);
}

/* 下载区同为白底，两段上下留白叠在一起会空出 200px 以上，收掉下载区的上留白 */
#faq + #download {
  padding-top: 0;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  /* Chromium 78 不支持 clamp()，先给固定值兜底 */
  gap: 64px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 108px;
}

.faq-head p {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

/* 两个链接用 margin 隔开而非 flex gap：Chromium 78 不支持 flex 的 gap */
.faq-head .faq-help {
  margin-top: 24px;
}

.faq-help a {
  display: inline-block;
  margin-right: 24px;
  color: var(--brand);
  font-weight: 600;
}

.faq-help a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.faq-item summary:hover h3 {
  color: var(--brand-hover);
}

/* 加号图标：两条短线叠成十字，展开时竖线转平，变成减号 */
.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 24px;
  border-radius: 50%;
  background: var(--wash);
  transition: background 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--text-soft);
  transition: transform 0.3s ease, background 0.2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon {
  background: rgba(22, 185, 152, 0.1);
}

.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: var(--brand);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  padding: 0 52px 26px 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.faq-item[open] .faq-a {
  animation: faq-in 0.3s ease;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.faq-a p {
  margin: 0;
}

.faq-a p + p {
  margin-top: 10px;
}

.faq-a a {
  color: var(--brand-hover);
  text-decoration: underline;
  text-decoration-color: rgba(22, 185, 152, 0.35);
  text-underline-offset: 3px;
}

.faq-a a:hover {
  text-decoration-color: currentColor;
}

.faq-a .faq-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: none;
}

.faq-a .faq-more:hover {
  text-decoration: underline;
}

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 54px;
  align-items: center;
  padding: 46px 0;
}

.download-panel h2 {
  max-width: 680px;
}

.download-panel p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.84;
}

.download-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* 下载按钮：透明底 + 品牌色描边胶囊，图标在前。
   尺寸、字重与过渡靠 .btn / .btn-md 基类，这里只覆盖配色。 */
.btn-download {
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--brand);
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

.btn-download:hover {
  background: rgba(22, 185, 152, 0.12);
  border-color: var(--brand);
  color: var(--brand-hover);
  transform: translateY(-1px);
}

.qr {
  width: 170px;
  padding: 14px;
  border-radius: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(31,35,41,0.1);
}

/* 页脚底色与「优质星球推荐」同为 --wash，和白底的 #download 自然分层 */
.footer {
  padding: 100px 0 32px;
  background: var(--wash);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.8;
}

/* 页脚上半部拆成两栏：品牌介绍 | 链接组，两栏之间 140px。
   grid 的 column-gap 对所有列统一生效，做不到只放大某一道，
   所以把三个链接栏嵌套进 .foot-links 子网格单独给 56px。
   这样 DevTools 的 grid 覆盖层里，外层就是一道实打实的 280px。 */
.footer-top {
  display: grid;
  /* 3fr : 4fr —— 扣掉 280px 间距后剩 940px，链接组拿 4/7 = 537.1px，
     正好是原先 2.5fr 那套（671.4px）的 80%，让出的宽度归品牌介绍列。 */
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  column-gap: 280px;
  row-gap: 40px;
}

/* 末列用 auto 而非 1fr：让它按最长文字（用户协议）收紧，
   右边缘和容器齐平，不再拖一块空白。
   腾出的宽度由前两个 fr 列平分——fr 会吃掉所有剩余空间，
   auto 列只按 max-content 取值，不参与瓜分。 */
.foot-links {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 40px 16px;
}

.foot-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.foot-tagline {
  margin: 16px 0 20px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.8;
}

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(31,35,41,0.04);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.foot-badge:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.foot-badge svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex: 0 0 auto;
}

/* 栏目名用 <p> 而非 <h3>：它是导航分组标签，不是内容章节标题。
   语义由所在 <nav> 的 aria-label 承担，读屏不会把同一个词念两遍，
   页面的标题大纲也只保留真正的内容标题。 */
.foot-col-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.foot-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s ease;
}

.foot-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.9;
}

.footer-bottom a {
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--brand);
}

.gongan-icon {
  width: 12px;
  height: 12px;
  margin-right: 2px;
  vertical-align: -1px;
  display: inline;
}

/* ─── 右下角悬浮卡片 ──────────────────────────────────────────────── */
.float-cards {
  position: fixed;
  right: 40px;
  bottom: 60px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.float-cards.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
}

.float-card {
  position: relative;
  display: block;
  width: 240px;
  height: 106px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.float-card:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.float-appeal {
  background-image: url(../img/appeal_bg.png);
}

.float-group {
  background-image: url(../img/create_group_bg.png);
}

.float-qr {
  position: absolute;
  right: calc(100% + 16px);
  bottom: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 70px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.float-qr.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.float-qr::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 33px;
  width: 8px;
  height: 16px;
  background: url(../img/triangle.png) center/100% 100%;
}

.float-qr img {
  width: 132px;
  height: 132px;
  display: block;
}

.float-qr .qr-text {
  margin-top: 13px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(22,185,152,0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .float-cards {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 1080px) {
  /* 中屏只需收紧首屏的上下留白 */
  .hero {
    padding: 88px 0 72px;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  /* 中屏问答改为上下堆叠，标题不再吸顶 */
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-head {
    position: static;
  }

  .fx {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 48px 0;
  }

  .fx-media,
  .fx.flip .fx-media {
    position: static;
    order: -1;
  }

  .fx.flip .fx-copy {
    order: 0;
  }

  /* 中屏放不下 140px 的分栏间距，改为上下堆叠：
     品牌介绍占一行，三个链接栏在下面一行仍是三列 */
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .float-cards {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(var(--max), calc(100% - 80px));
  }

  .nav-in {
    height: auto;
    padding: 14px 0;
  }

  /* 窄屏隐藏中间导航项，只留 logo 与登录按钮 */
  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn {
    margin-left: 0;
    padding: 0 16px;
  }

  /* 下限 30px 而非 26px：全局 h2 的 clamp 下限就是 26px，
     若 h1 也收到 26px，窄屏上主标题与小节标题同号，层级就没了 */
  h1 {
    font-size: clamp(30px, 8.2vw, 40px);
  }

  /* 窄屏放不下 <br> 前的整句，硬换行会和 text-wrap: balance 冲突：
     balance 只在每段内部平衡，结果是前段两行窄、后段一行宽。
     这里撤掉硬换行，整句交给 balance 统一分配行长。 */
  .lead br {
    display: none;
  }

  /* 窄屏：网格底纹收密一点，正文与 CTA 收敛 */
  .hero {
    padding: 56px 0 48px;
  }

  .hero-bg::after {
    background-size: 34px 34px;
  }

  .lead {
    margin: 18px auto 26px;
    font-size: 15px;
  }

  /* 窄屏按钮拉满：宽度给到 .dl-pop，按钮再撑满它，
     否则 inline-flex 包裹层宽度由内容决定，按钮的 100% 无从解析 */
  .hero-cta .dl-pop {
    width: min(240px, 100%);
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-note {
    gap: 14px;
    font-size: 12.5px;
  }

  section {
    padding: 72px 0;
  }

  .fx-stage {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .fx-frame {
    width: min(210px, 62%);
  }

  .planets-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
  }

  .faq-item summary {
    padding: 20px 0;
  }

  .faq-item h3 {
    font-size: 16px;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    margin-left: 16px;
  }

  .faq-a {
    padding-right: 0;
    font-size: 14px;
  }

  /* 窄屏：外层仍是单列堆叠，只把链接组收成两列 */
  .footer-top {
    row-gap: 28px;
  }

  .foot-links {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── 减弱动效 ────────────────────────────────────────────────────────
   系统开启「减少动态效果」时，关掉持续滚动与位移类动画。
   淡入淡出与配色过渡保留：它们不引发前庭不适，
   却承担着「哪一项处于激活状态」的状态反馈。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 跑马灯停在起点，改为可横向手动滚动查看 */
  .marquee-track {
    animation: none;
  }

  .marquee {
    overflow-x: auto;
  }

  /* 悬停位移一律取消，描边与底色变化保留 */
  .btn-ghost:hover,
  .btn-brand:hover,
  .btn-download:hover,
  .planet-card:hover,
  .foot-badge:hover,
  .float-card:hover {
    transform: none;
  }

  /* 配图切换只留淡入，去掉上浮与缩放 */
  .fx-shot {
    transform: none;
    transition: opacity 0.4s ease;
  }

  /* 高亮条直接出现，不再从上往下生长 */
  .fx-point::before {
    transition: none;
  }

  /* 问答展开不再下滑，加减号直接切换 */
  .faq-item[open] .faq-a {
    animation: none;
  }

  .faq-icon::before,
  .faq-icon::after {
    transition: none;
  }

  /* transform 里负责水平居中的那半必须留着，只把 Y 方向归零 */
  .dl-qr-card {
    transform: translate(-50%, 0);
    transition: opacity 0.2s ease, visibility 0.2s;
  }

  .float-cards.hide {
    transform: none;
  }

  .float-cards {
    transition: opacity 0.4s ease, visibility 0.4s;
  }

  .float-qr {
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
}

/* ─── 移动设备（iOS / Android）─────────────────────────────────────────
   .is-app 由 <head> 里的内联脚本按 UA 打上，首帧即生效。
   这几个模块在手机上没有使用场景：登录网页版是桌面动作、
   扫码下载对着自己的屏幕扫不了、页脚三列导航在小屏只是长长一条、
   星球推荐的跑马灯在触屏上是移动靶（没有 hover 可暂停，卡片追着点）。
   首屏 CTA 的跳转目标由 head 内联脚本换成对应商店，与这里的隐藏共用同一个信号，
   不会出现「下载区被隐藏、按钮却还指向它」的死链。
   main.js 的 initMarquees 也读这里的渲染结果，隐藏时不再铺卡片。 */
.is-app .nav-links,
.is-app #recommend,
.is-app #download,
.is-app .foot-badges,
.is-app .foot-links {
  display: none;
}

/* 二维码悬浮卡已被 hover 媒体查询挡住，这里再关一道，
   兜住少数谎报 hover 能力的触屏设备 */
.is-app .dl-qr-card {
  display: none;
}

/* 首屏 CTA 的图标随设备切换。四个图标都在 HTML 里，这里挑一个显示：
   桌面／未识别设备点按钮是滚到扫码区，用下载箭头；
   手机上按钮直接跳商店，换成对应平台的图标，和落地页对得上。
   第一条是基础态（三个平台图标默认藏起来），下面两条按设备类名放行；
   走 CSS 而不是 JS 替换，图标首帧就定型，不会先画箭头再闪一下。 */
.hero-cta .ico-ios,
.hero-cta .ico-android,
.hero-cta .ico-harmony {
  display: none;
}

.is-app .hero-cta .ico-dl {
  display: none;
}

.is-ios .hero-cta .ico-ios,
.is-android .hero-cta .ico-android,
.is-harmony .hero-cta .ico-harmony {
  display: block;
}

/* 手机端顶栏 logo 与页脚 logo 同高。两处用的是同一个 logo.svg（131×24），
   只是渲染高度差 2px：顶栏 24px、页脚 22px，小屏上并排看很容易露馅。
   这里跟页脚对齐到 22px；宽度由 .brand-logo 的 width: auto 按比例走，
   HTML 上的 width/height 属性保留原始比例，不影响首屏占位。 */
.is-app .brand-logo {
  height: 22px;
}

/* 系统版本要求提示只在移动端显示，桌面扫码下载时已在落地页看到了 */
.hero-note {
  display: none;
}

.is-app .hero-note {
  display: flex;
}

/* 手机端顶栏只剩一个 logo，行高不必再由 64px 撑着，改用上下 padding 定间距。
   上 32px、下 24px 刻意不对称：顶栏吸顶时上边紧邻系统状态栏和地址栏，
   需要更多缓冲；下边接的是首屏自己的留白，等值反而显得下方更松。
   height 必须一并放开 —— 全局 border-box 下 64px 是含 padding 的总高，
   留着会把 32+22+24 压回去。 */
.is-app .nav-in {
  height: auto;
  padding: 32px 0 24px;
}

/* 页脚「服务条款 / 隐私政策」文字链，只在手机端出现，
   补上被隐藏的「法律」栏，也把 .foot-badges 让出的空白填掉。
   min-height 44px 是触摸目标下限：纯文字链按行高算只有 25px，手机上按不准。 */
.foot-legal {
  display: none;
}

.is-app .foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.foot-legal a:hover {
  color: var(--brand);
}

/* 页脚只剩品牌、法律链接与备案信息，上下留白跟着收。
   .foot-links 整块隐藏后 .footer-top 只剩一个子项，48px 的上边距是按
   「三栏导航之后」定的，这里收到 28px，法律链接与分割线之间才不留空洞。 */
.is-app .footer {
  padding-top: 56px;
}

.is-app .footer-bottom {
  margin-top: 28px;
}
