/* ============================================
   NekoChat 落地首页 · 二次元天空风格 · 移动优先
   遵循 mobile-native 规范：安全区 / 去点击高亮 / 防缩放 / dvh
   ============================================ */

.landing {
  --sky-1: #7fc4ff;
  --sky-2: #4aa3ff;
  --sky-3: #2b7fe0;
  --ink: #123a63;
  --ink-soft: #4a6b8a;

  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;   /* 不劫持父级滚动 */
  background: #eaf4ff;
  color: var(--ink);
  z-index: 30;
  /* 安全区 */
  padding-bottom: env(safe-area-inset-bottom);
}

.landing.hidden { display: none; }

/* 长按不选中按钮文字 */
.landing button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ============ 顶部导航 ============ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: rgba(74, 163, 255, .92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 12px rgba(30, 90, 160, .12);
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
  text-shadow: 0 1px 3px rgba(20, 70, 130, .35);
}

.lp-logo-cat { font-size: 18px; }

.lp-nav-actions { display: flex; gap: 8px; }

.lp-nav-btn {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .45);
  transition: transform .12s ease, background .2s ease;
  min-height: 34px;
}

.lp-nav-btn:active { transform: scale(.96); }

.lp-nav-primary {
  background: #fff;
  color: #2b7fe0;
  border-color: #fff;
}

/* ============ Hero ============ */
.lp-hero {
  position: relative;
  min-height: 78dvh;      /* dvh 规避 100vh bug */
  padding: 34px 20px 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: linear-gradient(175deg, var(--sky-1) 0%, var(--sky-2) 48%, var(--sky-3) 100%);
}

/* 天空装饰 */
.lp-sky-deco { position: absolute; inset: 0; pointer-events: none; }

.lp-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: .85;
  animation: twinkle 3.2s ease-in-out infinite;
}
.lp-star.s1 { width: 3px; height: 3px; top: 14%; left: 12%; animation-delay: 0s; }
.lp-star.s2 { width: 4px; height: 4px; top: 22%; left: 78%; animation-delay: .8s; }
.lp-star.s3 { width: 2px; height: 2px; top: 40%; left: 88%; animation-delay: 1.5s; }
.lp-star.s4 { width: 3px; height: 3px; top: 8%;  left: 55%; animation-delay: 2.1s; }

@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.lp-cloud {
  position: absolute;
  background: rgba(255, 255, 255, .5);
  border-radius: 100px;
  filter: blur(1px);
}
.lp-cloud.c1 { width: 110px; height: 34px; top: 18%; left: -30px; }
.lp-cloud.c2 { width: 78px;  height: 26px; top: 32%; right: -20px; }
.lp-cloud.c3 { width: 130px; height: 38px; bottom: 26%; left: -40px; opacity: .38; }

.lp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.lp-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 16px;
  animation: fadeUp .5s cubic-bezier(.2,.9,.3,1) both;
}

.lp-title {
  font-size: clamp(38px, 12vw, 60px);
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -1px;
  text-shadow: 0 4px 22px rgba(20, 70, 130, .32);
  animation: fadeUp .55s cubic-bezier(.2,.9,.3,1) .05s both;
}

.lp-subtitle {
  font-size: clamp(17px, 5vw, 24px);
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  margin-top: 6px;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(20, 70, 130, .28);
  animation: fadeUp .55s cubic-bezier(.2,.9,.3,1) .1s both;
}

.lp-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .9);
  max-width: 330px;
  text-shadow: 0 1px 8px rgba(20, 70, 130, .25);
  animation: fadeUp .55s cubic-bezier(.2,.9,.3,1) .15s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero 按钮 */
.lp-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  animation: fadeUp .55s cubic-bezier(.2,.9,.3,1) .2s both;
}

.lp-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}

.lp-btn:active { transform: scale(.965); }

.lp-btn-ghost {
  background: rgba(255, 255, 255, .24);
  border: 1.5px solid rgba(255, 255, 255, .6);
  color: #fff;
}

.lp-btn-solid {
  background: #fff;
  color: #2b7fe0;
  box-shadow: 0 8px 22px rgba(15, 60, 120, .22);
}

.lp-btn-wide { width: 100%; margin-top: 12px; flex: none; }

/* 立绘 */
.lp-hero-char {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 58%;
  max-width: 280px;
  z-index: 1;
  pointer-events: none;
  animation: fadeUp .7s cubic-bezier(.2,.9,.3,1) .25s both;
}

.lp-hero-char img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 13px 26px rgba(15, 60, 120, .3));
}

/* ============ 功能卡片 ============ */
.lp-features {
  padding: 52px 20px 40px;
  background: #f4f9ff;
}

.lp-section-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #4aa3ff;
  text-align: center;
  margin-bottom: 8px;
}

.lp-section-title {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  color: var(--ink);
  margin-bottom: 30px;
  letter-spacing: -.4px;
}

.lp-cards { display: flex; flex-direction: column; gap: 16px; }

.lp-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  border: 1px solid #dcecff;
  box-shadow: 0 6px 20px rgba(74, 163, 255, .1);
}

.lp-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 14px;
}
.icon-chat     { background: linear-gradient(135deg, #d6ecff, #a8d5ff); }
.icon-redpacket{ background: linear-gradient(135deg, #ffe0e0, #ffc2c2); }
.icon-cinema   { background: linear-gradient(135deg, #e2dcff, #c9bfff); }

.lp-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.lp-card p {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-soft);
}

.lp-card-list {
  list-style: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2eefb;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-card-list li {
  font-size: 12.5px;
  color: #5b7fa3;
  padding-left: 18px;
  position: relative;
}

.lp-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4aa3ff;
  font-weight: 800;
}

/* ============ 数据条 ============ */
.lp-stats {
  display: flex;
  background: linear-gradient(135deg, #4aa3ff, #2b7fe0);
  padding: 28px 16px;
  justify-content: space-around;
  text-align: center;
}

.lp-stat-num {
  font-size: 25px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.lp-stat-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .82);
  margin-top: 4px;
}

/* ============ 底部 CTA ============ */
.lp-final {
  padding: 48px 24px 40px;
  text-align: center;
  background: #f4f9ff;
}

.lp-final h3 {
  font-size: 23px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

.lp-final p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.lp-final .lp-btn-solid {
  background: linear-gradient(135deg, #4aa3ff, #2b7fe0);
  color: #fff;
  box-shadow: 0 8px 22px rgba(43, 127, 224, .3);
}

.lp-final .lp-btn-ghost {
  background: transparent;
  border: 1.5px solid #b9d9ff;
  color: #2b7fe0;
}

/* ============ 页脚 ============ */
.lp-footer {
  background: #12395f;
  padding: 34px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
}

.lp-footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.lp-footer-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .58);
  max-width: 300px;
  margin: 0 auto 18px;
}

.lp-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.lp-footer-links span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
}

.lp-footer-copy {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .35);
}

/* ============ 回到顶部 ============ */
.lp-back-top {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(43, 127, 224, .92);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 18px rgba(20, 70, 130, .35);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .12s ease;
}

.lp-back-top.show { opacity: 1; pointer-events: auto; }
.lp-back-top:active { transform: scale(.9); }

/* ============ 桌面端增强 ============ */
@media (min-width: 720px) {
  .lp-hero { min-height: 70dvh; padding: 60px 56px 0; }
  .lp-hero-char { width: 40%; right: 4%; bottom: -20px; }
  .lp-desc { font-size: 15.5px; }
  .lp-cards { flex-direction: row; }
  .lp-card { flex: 1; }
  .lp-features { padding: 72px 56px; }
  .lp-final { padding: 64px 56px 56px; }
  .lp-final .lp-btn { max-width: 320px; margin-left: auto; margin-right: auto; display: block; }
  .lp-nav { padding: 14px 56px; }
  .lp-stats { padding: 36px 56px; }
  .lp-stat-num { font-size: 32px; }
}

/* 尊重「减少动态效果」偏好 */
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
