/* =========================================================
   链封 LinkWrap · 前台页面
   ========================================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--lw-bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-nav.scrolled {
  border-bottom-color: var(--lw-border);
  background: color-mix(in srgb, var(--lw-bg) 86%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--lw-gradient);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 22px -8px var(--lw-primary), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--lw-muted);
  letter-spacing: 0.18em;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 6px;
}

.nav-links a {
  font-size: 14px;
  color: var(--lw-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--lw-text);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links .mobile-cta {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--lw-border);
  background: transparent;
  color: var(--lw-text);
  cursor: pointer;
  place-items: center;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 74px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-badge {
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(38px, 5.1vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 720;
}

.hero-title span {
  display: block;
}

.hero-sub {
  margin-top: 22px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--lw-muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--lw-muted);
}

.hero-stats {
  display: flex;
  gap: 38px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--lw-border);
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 12.5px;
  color: var(--lw-muted);
}

/* 手机模型 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: 292px;
  height: 590px;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a3145, #0c1018 42%, #1a2030);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: rotateY(-9deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  animation: phone-float 9s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: rotateY(-9deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: rotateY(-6deg) rotateX(2deg) translateY(-12px);
  }
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--lw-primary) 28%, #0a0e1a) 0%, #080b13 58%);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.5px, transparent 0.5px);
  background-size: 14px 14px;
  opacity: 0.25;
  pointer-events: none;
}

.phone-notch {
  width: 100px;
  height: 24px;
  border-radius: 999px;
  background: #05070c;
  margin: 0 auto 4px;
  flex: none;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}

.phone-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: 12px;
}

.phone-icon {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 18px 38px -14px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: var(--lw-soft);
}

.phone-app h4 {
  font-size: 16px;
  font-weight: 650;
  margin-top: 2px;
}

.phone-app p {
  font-size: 11px;
  color: rgba(233, 238, 255, 0.5);
}

.phone-btn {
  width: 100%;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  background: var(--lw-gradient);
  box-shadow: 0 14px 28px -12px var(--lw-primary);
  margin-top: 6px;
}

.phone-rows {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10.5px;
  color: rgba(233, 238, 255, 0.66);
}

.phone-row b {
  color: rgba(233, 238, 255, 0.92);
  font-weight: 600;
}

.phone-row .ok {
  color: #4ade80;
}

.phone-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9.5px;
  color: rgba(233, 238, 255, 0.38);
  margin-top: 2px;
}

.phone-safe .ico {
  width: 12px;
  height: 12px;
}

/* 浮动卡片 */
.float-card {
  position: absolute;
  border-radius: 16px;
  background: color-mix(in srgb, var(--lw-surface) 82%, transparent);
  border: 1px solid var(--lw-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9);
  padding: 13px 15px;
  z-index: 3;
}

.float-qr {
  right: -8px;
  bottom: 62px;
  width: 132px;
  text-align: center;
  animation: float-y 7s ease-in-out infinite;
}

.float-qr img {
  width: 100%;
  border-radius: 9px;
  background: #fff;
  padding: 7px;
}

.float-qr span {
  display: block;
  font-size: 10px;
  color: var(--lw-muted);
  margin-top: 7px;
  letter-spacing: 0.02em;
}

.float-badge {
  left: -26px;
  top: 96px;
  display: flex;
  align-items: center;
  gap: 9px;
  animation: float-y 8s ease-in-out infinite 0.6s;
}

.float-badge .ico {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
}

.float-badge b {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.float-badge small {
  font-size: 10px;
  color: var(--lw-muted);
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------------- 通用 section ---------------- */
.section {
  padding: 84px 0;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin-top: 14px;
}

.section-sub {
  margin-top: 14px;
  color: var(--lw-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* 能力矩阵 */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 26px;
  border-radius: var(--lw-radius-lg);
  background: color-mix(in srgb, var(--lw-surface) 88%, transparent);
  border: 1px solid var(--lw-border);
  overflow: hidden;
  transition: transform 0.35s var(--lw-ease), border-color 0.35s, background 0.35s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--lw-primary) 55%, transparent), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: color-mix(in srgb, var(--lw-surface) 96%, transparent);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--lw-soft);
  border: 1px solid var(--lw-border);
  color: var(--lw-secondary);
  margin-bottom: 18px;
}

.feature-icon .ico {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--lw-muted);
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--lw-radius-lg);
  border: 1px solid var(--lw-border);
  background: color-mix(in srgb, var(--lw-surface) 70%, transparent);
  overflow: hidden;
}

.step-card::after {
  content: "0" counter(step);
  counter-increment: step;
  position: absolute;
  right: 18px;
  top: 4px;
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--lw-primary);
  opacity: 0.09;
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--lw-muted);
  line-height: 1.8;
}

.step-line {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--lw-gradient);
  margin-bottom: 18px;
}

/* 应用库 */
.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--lw-radius);
  background: color-mix(in srgb, var(--lw-surface) 88%, transparent);
  border: 1px solid var(--lw-border);
  transition: transform 0.3s var(--lw-ease), border-color 0.3s, background 0.3s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--lw-primary) 46%, transparent);
  background: color-mix(in srgb, var(--lw-surface) 100%, transparent);
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}

.app-body {
  flex: 1;
  min-width: 0;
}

.app-body h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-body p {
  font-size: 12px;
  color: var(--lw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--lw-muted);
}

.app-tag {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.app-go {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.1);
  color: var(--lw-text);
  flex: none;
  transition: background 0.25s, transform 0.25s;
}

.app-card:hover .app-go {
  background: var(--lw-gradient);
  color: #fff;
  transform: translateX(2px);
}

.apps-empty {
  padding: 40px;
  text-align: center;
  border: 1px dashed var(--lw-border);
  border-radius: var(--lw-radius);
  color: var(--lw-muted);
  font-size: 14px;
}

.apps-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* 平台 */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  position: relative;
  padding: 28px;
  border-radius: var(--lw-radius-lg);
  border: 1px solid var(--lw-border);
  background: linear-gradient(170deg, color-mix(in srgb, var(--lw-surface) 96%, transparent), color-mix(in srgb, var(--lw-surface) 60%, transparent));
  overflow: hidden;
}

.platform-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: var(--lw-soft);
  filter: blur(10px);
  pointer-events: none;
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.platform-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lw-soft);
  border: 1px solid var(--lw-border);
  color: var(--lw-text);
}

.platform-tag {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--lw-secondary);
  border: 1px solid color-mix(in srgb, var(--lw-secondary) 34%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
}

.platform-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.platform-card > p {
  font-size: 13px;
  color: var(--lw-muted);
  margin-top: 4px;
}

.platform-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: color-mix(in srgb, var(--lw-text) 82%, transparent);
}

.platform-list .ico {
  width: 15px;
  height: 15px;
  color: var(--lw-success);
  stroke-width: 2.4;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--lw-border);
  border-radius: var(--lw-radius);
  background: color-mix(in srgb, var(--lw-surface) 72%, transparent);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 14.5px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: color 0.2s;
}

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

.faq-item summary .plus {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--lw-border);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.3s var(--lw-ease), background 0.3s;
}

.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--lw-ease), opacity 0.3s;
}

.faq-item summary .plus::before {
  width: 11px;
  height: 1.6px;
}

.faq-item summary .plus::after {
  width: 1.6px;
  height: 11px;
}

.faq-item[open] summary .plus {
  transform: rotate(90deg);
  background: var(--lw-soft);
}

.faq-item[open] summary .plus::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--lw-muted);
  max-width: 92%;
}

/* CTA */
.cta-section {
  padding: 40px 0 100px;
}

.cta-panel {
  position: relative;
  padding: 66px 40px;
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lw-primary) 26%, transparent);
  background: radial-gradient(120% 140% at 50% -10%, color-mix(in srgb, var(--lw-primary) 30%, transparent) 0%, transparent 58%),
    color-mix(in srgb, var(--lw-surface) 80%, transparent);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 700;
  position: relative;
}

.cta-panel p {
  color: var(--lw-muted);
  margin: 14px auto 30px;
  max-width: 460px;
  font-size: 14.5px;
  position: relative;
}

.cta-panel .btn {
  position: relative;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--lw-border);
  padding: 46px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 13px;
  color: var(--lw-muted);
  max-width: 320px;
  margin-top: 12px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lw-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: color-mix(in srgb, var(--lw-text) 78%, transparent);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--lw-primary);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--lw-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--lw-muted);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 40px;
  }
  .float-QR,
  .float-qr {
    right: -2px;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .site-nav.open .nav-links {
    display: flex;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px;
    border-radius: var(--lw-radius);
    background: color-mix(in srgb, var(--lw-surface) 96%, transparent);
    border: 1px solid var(--lw-border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
  .site-nav.open .nav-links a {
    padding: 9px 6px;
    font-size: 15px;
    width: 100%;
  }
  .site-nav.open .nav-links .mobile-cta {
    display: block;
    color: var(--lw-primary);
    font-weight: 600;
    margin-top: 4px;
    border-top: 1px solid var(--lw-border);
    padding-top: 12px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-visual {
    margin-top: 6px;
  }
  .features,
  .steps,
  .apps,
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 66px 0;
  }
}

@media (max-width: 640px) {
  .lw-container {
    padding: 0 20px;
  }
  .hero {
    padding: 46px 0 70px;
  }
  .hero-title {
    font-size: clamp(34px, 10vw, 46px);
  }
  .hero-sub {
    font-size: 15px;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat b {
    font-size: 20px;
  }
  .phone {
    width: 268px;
    height: 542px;
    border-radius: 42px;
  }
  .float-qr {
    width: 108px;
    right: -4px;
    bottom: 30px;
  }
  .float-badge {
    left: -6px;
    top: 40px;
    padding: 10px 12px;
  }
  .features,
  .steps,
  .apps,
  .platforms {
    grid-template-columns: 1fr;
  }
  .section-head {
    margin-bottom: 34px;
  }
  .section-title {
    font-size: 27px;
  }
  .cta-panel {
    padding: 44px 22px;
    border-radius: 24px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links {
    gap: 34px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
