/* ==========================================================================
   机器人APP下载 内页骨架：手机规格表风 · 蓝紫技术风 · 手机视觉 Hero + 双端卡 + 编号步骤 + 规格表
   ========================================================================== */

:root {
  --ap-indigo: #4338ca;
  --ap-indigo-dk: #312e81;
  --ap-violet: #7c3aed;
  --ap-sky: #0ea5e9;
  --ap-ink: #1e1b4b;
  --ap-muted: #5b5880;
  --ap-paper: #f5f5ff;
  --ap-line: #e2e0f5;
}

body.app-page {
  background: var(--ap-paper);
  color: var(--ap-ink);
}

.app-page .brand-mark {
  background: linear-gradient(140deg, var(--ap-indigo), var(--ap-violet));
  color: #eef2ff;
  box-shadow: 0 6px 16px rgba(67, 56, 202, .3);
}
.app-page .brand-text em { color: var(--ap-indigo); }
.app-page .site-nav a.is-active { color: var(--ap-indigo); }
.app-page .site-nav a::after { background: var(--ap-violet); }
.app-page .btn-login {
  background: linear-gradient(135deg, var(--ap-indigo), var(--ap-violet));
  box-shadow: 0 8px 20px rgba(67, 56, 202, .3);
}
.app-page .btn-login:hover { box-shadow: 0 12px 26px rgba(67, 56, 202, .4); }
.app-page .footer-col a:hover { color: var(--ap-violet); }
.app-page .footer-contact a:hover { border-color: var(--ap-violet); background: rgba(124, 58, 237, .08); }

/* ---------------- Hero ---------------- */
.ap-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 92px;
  background:
    radial-gradient(720px 460px at 84% 8%, rgba(124, 58, 237, .18), transparent 64%),
    radial-gradient(560px 400px at 0% 100%, rgba(14, 165, 233, .1), transparent 70%),
    linear-gradient(180deg, #f4f3ff, var(--ap-paper));
}

.ap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(67, 56, 202, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(67, 56, 202, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  pointer-events: none;
}

.ap-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 52px;
  align-items: center;
}

/* 手机视觉 */
.ap-visual { display: flex; justify-content: center; }

.ap-phone {
  position: relative;
  width: 240px;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(160deg, var(--ap-indigo-dk), var(--ap-indigo));
  box-shadow: var(--shadow-m), 0 0 0 8px rgba(67, 56, 202, .08);
  text-align: center;
  color: #fff;
}

.ap-notch {
  width: 88px; height: 12px;
  margin: 0 auto 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .2);
}

.ap-logo {
  width: 84px; height: 84px;
  margin: 18px auto;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--ap-violet), var(--ap-sky));
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 165, 233, .35);
}

.ap-name {
  font-size: 16px;
  font-weight: 800;
  margin: 14px 0 8px;
}

.ap-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .14);
  font-size: 12.5px;
  font-weight: 700;
  color: #c7d2fe;
}

.ap-dl {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 34px;
}

.ap-dl-label {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.ap-hero-text .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: var(--shadow-s);
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-indigo);
}

.ap-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.6px;
}

.ap-hero h1 span {
  background: linear-gradient(100deg, var(--ap-sky), var(--ap-violet) 60%, var(--ap-indigo-dk));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ap-hero .lead {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ap-muted);
  max-width: 480px;
}

.ap-hero .lead strong { color: var(--ap-ink); }

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.app-page .btn-primary {
  background: linear-gradient(135deg, var(--ap-indigo), var(--ap-violet));
  color: #fff;
  box-shadow: 0 10px 26px rgba(67, 56, 202, .32);
}

.app-page .btn-primary:hover { box-shadow: 0 14px 32px rgba(67, 56, 202, .42); }

.app-page .btn-room {
  background: #fff;
  border-color: var(--ap-line);
  color: var(--ap-indigo);
}

/* ---------------- 通用 section ---------------- */
.ap-section { padding: 78px 0 0; }

.ap-head {
  max-width: 560px;
  margin-bottom: 34px;
}

.ap-head .k {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--ap-indigo);
  margin-bottom: 12px;
}

.ap-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.4px; }

.ap-head p { margin-top: 12px; color: var(--ap-muted); font-size: 15.5px; }

/* ---------------- 双端下载卡 ---------------- */
.ap-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 70px;
}

.ap-dl-card {
  display: flex;
  gap: 20px;
  padding: 30px 28px;
  border-radius: var(--radius-l);
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: var(--shadow-s);
  transition: transform .24s, box-shadow .24s, border-color .24s;
}

.ap-dl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(67, 56, 202, .16);
  border-color: var(--ap-violet);
}

.ap-dl-os {
  flex: none;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 30px;
  background: linear-gradient(140deg, var(--ap-indigo), var(--ap-violet));
}

.ap-dl-card h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }

.ap-dl-card p { font-size: 14px; line-height: 1.7; color: var(--ap-muted); margin-bottom: 16px; }

.ap-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ap-indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}

.ap-dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(67, 56, 202, .32);
}

/* ---------------- 步骤 + 规格表 ---------------- */
.ap-twocol {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 70px;
}

.ap-twocol .ap-head { margin-bottom: 26px; }

.ap-steps-list {
  display: grid;
  gap: 18px;
}

.ap-steps-list li {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--ap-line);
  box-shadow: var(--shadow-s);
}

.step-no {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--ap-indigo), var(--ap-violet));
  color: #fff;
  font-weight: 900;
  font-size: 17px;
}

.ap-steps-list h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 4px; }

.ap-steps-list p { font-size: 13.5px; line-height: 1.65; color: var(--ap-muted); }
.ap-steps-list strong { color: var(--ap-indigo); }

/* 规格表 */
.ap-spec {
  padding: 28px;
  border-radius: var(--radius-l);
  background: linear-gradient(160deg, #fff, #f4f3ff);
  border: 1px solid var(--ap-line);
  box-shadow: var(--shadow-m);
}

.ap-spec-table {
  display: grid;
  margin: 6px 0 18px;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--ap-line);
  font-size: 14.5px;
}

.spec-row:last-child { border-bottom: 0; }

.spec-row span { color: var(--ap-muted); }

.spec-row b {
  font-weight: 800;
  color: var(--ap-indigo);
  font-family: var(--mono);
}

.ap-spec-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ap-muted);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(67, 56, 202, .06);
}

/* ---------------- 手风琴 ---------------- */
.ap-faq {
  display: grid;
  gap: 12px;
  margin-bottom: 70px;
  max-width: 820px;
}

.acc-item {
  border: 1px solid var(--ap-line);
  border-radius: var(--radius-m);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 0;
  background: #fff;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ap-ink);
  text-align: left;
}

.acc-ico {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ap-paper);
  color: var(--ap-indigo);
  font-size: 20px;
  line-height: 1;
  transition: transform .25s;
}

.acc-item.is-open .acc-ico { transform: rotate(45deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.acc-item.is-open .acc-body { max-height: 320px; }

.acc-body p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ap-muted);
}

.acc-body a { color: var(--ap-indigo); font-weight: 700; }
.acc-body a:hover { text-decoration: underline; }

/* ---------------- 相关 ---------------- */
.ap-related {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 70px;
}

.ap-related a {
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform .22s, box-shadow .22s;
}

.ap-related a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(67, 56, 202, .16);
  border-color: var(--ap-violet);
}

.ap-related strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }

.ap-related span { font-size: 13px; color: var(--ap-muted); }

/* ---------------- CTA ---------------- */
.ap-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 42px;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, var(--ap-indigo-dk), var(--ap-indigo));
  color: #fff;
  box-shadow: var(--shadow-m);
}

.ap-cta h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; }

.ap-cta p { color: rgba(224, 231, 255, .82); margin-top: 8px; font-size: 15px; }

.ap-cta .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ap-cta .btn-primary {
  background: #fff;
  color: var(--ap-indigo-dk);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.ap-cta .btn-room {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #e0e7ff;
}

/* ---------------- 动画 ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .ap-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .ap-visual { order: 2; }
  .ap-twocol { grid-template-columns: 1fr; }
  .ap-dl-grid { grid-template-columns: 1fr; }
  .ap-related { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .ap-hero { padding: 52px 0 60px; }
  .ap-hero h1 { font-size: 32px; }
  .ap-related { grid-template-columns: 1fr; }
  .ap-cta { flex-direction: column; text-align: center; align-items: center; }
}
