/* ============================================================
   landing.css —— 接入页（宣传语炫彩字体 / 更 + 滚动词语 / 连接面板）
   ============================================================ */

.landing {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px;
  height: 62px; padding: 0 clamp(16px, 4vw, 40px);
}
.topbar__inner {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 8px 0 14px;
  border-radius: var(--r-pill);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .5px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, #eef1f8);
  box-shadow: var(--sh-1), inset 0 1px 0 #fff;
  color: var(--ink-800);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__name { font-size: calc(16px * var(--font-scale)); }
.brand__sub {
  font-size: calc(11px * var(--font-scale));
  color: var(--ink-400); letter-spacing: 2px; margin-left: 2px;
}
.topbar__nav { display: flex; gap: 4px; margin-left: auto; }
.topbar__nav a {
  height: 34px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: var(--r-pill); font-size: calc(13px * var(--font-scale));
  color: var(--ink-500); transition: background .2s, color .2s;
}
.topbar__nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink-900); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vh, 72px) clamp(16px, 4vw, 40px) 28px;
  max-width: 1320px; margin: 0 auto;
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
}

.hero__eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* 炫彩宣传语 */
.slogan {
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.slogan__line { display: block; }
/* 炫彩字：彩虹底色 + 掠过字面的白色高光，两层背景同一条动画驱动，
   background-clip:text 保证颜色只落在字形上，不用叠加图层遮文字 */
.slogan__rainbow {
  display: block;
  background-image:
    linear-gradient(104deg,
      rgba(255, 255, 255, 0) 41%, rgba(255, 255, 255, .92) 47.5%, rgba(255, 255, 255, 0) 54%),
    var(--rainbow);
  background-size: 230% 100%, 260% 100%;
  background-repeat: no-repeat, repeat;
  background-position: -90% 0, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: slogan-pan calc(9s / var(--motion)) linear infinite;
}
@keyframes slogan-pan {
  0%   { background-position: -90% 0, 0% 50%; }
  100% { background-position: 240% 0, 260% 50%; }
}
/* 彩虹底下加一层极淡的暗底，避免浅黄/浅绿段在白底上对比不足 */
.slogan {
  text-shadow: 0 1px 0 rgba(16, 19, 26, .04);
}

.hero__desc {
  max-width: 44em; margin: 14px 0 22px;
  color: var(--ink-500);
  font-size: calc(15.5px * var(--font-scale));
}

/* 更 + 滚动词语 */
.more-row { display: flex; align-items: center; gap: 16px; margin: 4px 0 26px; }
.more-char {
  position: relative;
  font-size: clamp(42px, 6.6vw, 74px);
  font-weight: 800; line-height: 1;
  color: var(--ink-900);
  padding-right: 4px;
}
.more-char::after {
  content: "";
  position: absolute; left: 2px; right: 6px; bottom: -7px; height: 6px;
  border-radius: var(--r-pill);
  background-image: var(--rainbow);
  background-size: 260% 100%;
  background-repeat: repeat;
  opacity: .5;
  animation: rainbow-slide calc(9s / var(--motion)) linear infinite;
}
@keyframes rainbow-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}
/* 竖排滚动视窗：一次显示一个词 */
.roller {
  position: relative;
  height: 62px;
  min-width: 232px;
  overflow: hidden;
  -webkit-mask: linear-gradient(180deg, transparent, #000 24% 76%, transparent);
  mask: linear-gradient(180deg, transparent, #000 24% 76%, transparent);
}
.roller__track {
  display: flex; flex-direction: column;
  animation: roll-loop calc(9.6s / var(--motion)) cubic-bezier(.67,0,.27,1) infinite;
}
.roller:hover .roller__track { animation-play-state: paused; }
.roller__item {
  height: 62px; flex: none;
  display: flex; align-items: center; gap: 12px;
}
.roller__ico {
  width: 42px; height: 42px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, #f0f3fa);
  box-shadow: var(--sh-1), inset 0 1px 0 #fff;
  color: var(--ink-800);
}
.roller__ico svg { width: 22px; height: 22px; }
.roller__word {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 750; letter-spacing: 3px; color: var(--ink-900);
}
.roller__tag {
  font-size: calc(12px * var(--font-scale));
  color: var(--ink-400); letter-spacing: 1px;
  border-left: 1px solid var(--ink-200); padding-left: 10px; margin-left: 2px;
}
@keyframes roll-loop {
  0%, 17%   { transform: translateY(0); }
  25%, 42%  { transform: translateY(-62px); }
  50%, 67%  { transform: translateY(-124px); }
  75%, 92%  { transform: translateY(-186px); }
  100%      { transform: translateY(0); }
}
/* 4 项 × 62px = 248px，最后回到 0 前用 100% 帧兜住第 4 项 */
@media (max-width: 560px) {
  .roller { min-width: 0; }
  .roller__tag { display: none; }
}

/* 三张能力卡 */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature {
  padding: 18px 18px 20px;
  border-radius: var(--r-lg);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), --glass-alpha .28s;
}
.feature:hover { transform: translateY(-3px); }
.feature__ico {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 12px;
  background: linear-gradient(160deg, #fff, #eef2fa);
  box-shadow: inset 0 1px 0 #fff, var(--sh-1);
}
.feature__ico svg { width: 21px; height: 21px; color: var(--ink-800); }
.feature h3 { font-size: calc(15px * var(--font-scale)); margin-bottom: 5px; }
.feature p { font-size: calc(12.8px * var(--font-scale)); color: var(--ink-500); line-height: 1.62; }

/* ---------- 右栏：连接面板 ---------- */
.connect { padding: 22px; border-radius: var(--r-2xl); }
.connect__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.connect__title { font-size: calc(17px * var(--font-scale)); }
.connect__grid { display: grid; gap: 12px; }
.connect__row2 { display: grid; grid-template-columns: 1fr 106px; gap: 10px; }
.connect__actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.connect__hint { font-size: calc(12px * var(--font-scale)); color: var(--ink-400); margin-top: 12px; }

.progress {
  position: relative; height: 6px; border-radius: var(--r-pill);
  background: rgba(16, 19, 26, .08); overflow: hidden; margin-top: 14px;
}
.progress__bar {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #2b6cf6, #7b5cf0 60%, #e04fa4);
  transition: width .28s ease;
}
.steps { display: grid; gap: 8px; margin-top: 14px; }
.step {
  display: flex; align-items: center; gap: 9px;
  font-size: calc(12.6px * var(--font-scale)); color: var(--ink-400);
  transition: color .3s;
}
.step__dot {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(16,19,26,.08); color: transparent;
  transition: background .3s, color .3s, transform .3s;
}
.step__dot svg { width: 10px; height: 10px; }
.step.is-done { color: var(--ink-800); }
.step.is-done .step__dot { background: var(--ok); color: #fff; transform: scale(1.06); }
.step.is-active { color: var(--blue-600); }
.step.is-active .step__dot {
  background: rgba(43, 108, 246, .16); color: var(--blue-600);
  animation: step-pulse 1.1s ease-in-out infinite;
}
@keyframes step-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ---------- 刷视频式终端预览 ---------- */
.section {
  padding: clamp(28px, 5vh, 60px) clamp(16px, 4vw, 40px);
  max-width: 1320px; margin: 0 auto;
}
.section__head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section__head h2 { font-size: calc(24px * var(--font-scale)); }
.section__head p { color: var(--ink-500); font-size: calc(13.5px * var(--font-scale)); }

.feed-demo {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}
@media (max-width: 860px) { .feed-demo { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.phone {
  width: 100%; max-width: 300px; aspect-ratio: 9 / 17;
  border-radius: 40px; padding: 10px;
  background: linear-gradient(165deg, #ffffff, #e9edf6);
  box-shadow: var(--sh-3), inset 0 1px 0 #fff;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: #0e1220;
}
.phone__notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 6px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .32); z-index: 5;
}
.feed {
  position: absolute; inset: 0;
  transition: transform .58s cubic-bezier(.22,.9,.24,1);
}
.feed__card {
  position: absolute; left: 0; right: 0; height: 100%;
  padding: 40px 18px 22px;
  display: flex; flex-direction: column; gap: 12px;
  color: #e8ecf7;
}
.feed__card[data-i="0"] { top: 0; }
.feed__card[data-i="1"] { top: 100%; }
.feed__card[data-i="2"] { top: 200%; }
.feed__card[data-i="3"] { top: 300%; }
.feed__card[data-i="4"] { top: 400%; }
.feed__cmd {
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7;
  padding: 12px 13px; border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  word-break: break-all;
}
.feed__cmd .p { color: #6ee7b7; }
.feed__cmd .c { color: #fff; }
.feed__out {
  flex: 1; min-height: 0; overflow: hidden;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75;
  color: #a9b3cc; white-space: pre-wrap;
}
.feed__foot { display: flex; align-items: center; gap: 8px; }
.feed__tip {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; font-size: 11px; color: rgba(255,255,255,.45);
  z-index: 6; letter-spacing: 1px;
}
.feed__swipe {
  position: absolute; top: 46%; left: 50%; transform: translate(-50%, 0);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; z-index: 6;
  border: 1px solid rgba(255,255,255,.24);
  animation: swipe-up 2.2s ease-in-out infinite;
}
.feed__swipe svg { width: 15px; height: 15px; }
@keyframes swipe-up {
  0%, 100% { transform: translate(-50%, 8px); opacity: .35; }
  50%      { transform: translate(-50%, -8px); opacity: 1; }
}

.feed-copy h3 { font-size: calc(21px * var(--font-scale)); margin-bottom: 10px; }
.feed-copy p { color: var(--ink-500); margin-bottom: 16px; font-size: calc(14px * var(--font-scale)); }
.feed-copy ul { display: grid; gap: 9px; }
.feed-copy li { display: flex; align-items: center; gap: 9px; font-size: calc(13.4px * var(--font-scale)); color: var(--ink-600); }
.feed-copy li svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ---------- 关于 / 页脚 ---------- */
.foot {
  padding: 26px clamp(16px, 4vw, 40px) 40px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: calc(12.5px * var(--font-scale)); color: var(--ink-400);
}
.foot__brand { display: flex; align-items: center; gap: 9px; color: var(--ink-600); font-weight: 600; }
.foot__brand svg { width: 17px; height: 17px; }
@media (max-width: 820px) {
  .topbar__nav { display: none; }
  .brand__sub { display: none; }
  .topbar { padding: 0 12px; }
  .topbar__inner { gap: 8px; }
}
.foot__sep { margin-left: auto; }

/* 连接成功浮层 */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  z-index: 80; opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: var(--r-pill);
  font-size: 13px;
  transition: opacity .28s, transform .28s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
