/* ==========================================================================
   落地页专属样式（V1.2.2 第 0 部分 L01）
   只被 pages/landing.php 通过 arr_layout_top(..., ['css' => [...]]) 引入，
   因此下面对 main.wrap 的加宽只影响这一页——不是全站改动。
   深色底与配色一律沿用 style.css 的变量，不重复定义颜色，避免两处不一致。
   ========================================================================== */

main.wrap {
  max-width: 880px;
  padding-top: 8px;
}

html { scroll-behavior: smooth; }

/* ------------------------------------------------------------------ 首屏 */
.landing-hero {
  padding: 54px 0 40px;
  text-align: center;
  /* 入场只动首屏：动画结束停在可见状态，JS 关掉、图片没下来都不会让内容消失 */
  animation: landing-rise .5s ease-out both;
}
.landing-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.landing-hero h1 {
  margin: 0 auto 12px;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 16em;
}
.landing-hero .landing-sub {
  margin: 0 auto;
  max-width: 26em;
  font-size: 16.5px;
  color: var(--muted);
}
.landing-note {
  margin: 14px auto 0;
  font-size: 14px;
  color: var(--accent-2);
}
.landing-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: center;
}
.landing-cta {
  min-height: 52px;
  padding: 14px 30px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 14px;
}
.landing-ghost {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.landing-ghost:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* -------------------------------------------------------------- 三条想法 */
.landing-ideas,
.landing-demo,
.landing-about {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.landing-ideas h2,
.landing-demo h2,
.landing-about h2 { margin-bottom: 6px; }
.landing-ideas .landing-sub { margin: 0 0 22px; color: var(--muted); font-size: 14.5px; }

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.landing-card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  background-image: var(--grad-panel);
  box-shadow: var(--shadow-2);
  transition: transform .18s ease, border-color .18s ease;
}
.landing-card:hover { transform: translateY(-2px); border-color: var(--accent-deep); }
.landing-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--accent-2);
}
.landing-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* -------------------------------------------------------------- 静态示意 */
.landing-mock {
  margin: 22px 0 10px;
  padding: 26px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-2);
}
.mock-input {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 15px;
}
.mock-btn {
  margin-top: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15.5px;
}
.mock-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.landing-caption { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------- 关于 / 合规（L02） */
.landing-about p { color: var(--text); font-size: 15px; }
.landing-body { color: var(--muted) !important; font-size: 14.5px; }
.landing-points {
  margin: 14px 0 26px;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14.5px;
}
.landing-points li { margin: 4px 0; }
.landing-privacy-title { margin: 22px 0 6px; font-size: 15px; color: var(--accent-2); }

.landing-icp {
  margin: 22px 0 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
}
.landing-icp dt { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.landing-icp dd { margin: 0; font-size: 14px; }
.landing-icp-empty { color: var(--warn); }
.landing-privacy-link { margin-top: 14px; font-size: 14px; }

/* ------------------------------------------------------ 返回通道（L03） */
.landing-foot {
  margin-top: 48px;
  padding-bottom: 6px;
  text-align: center;
  font-size: 13px;
}
.landing-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.landing-foot a:hover { color: var(--accent); }

@keyframes landing-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* 系统开了「减少动效」就完全静止——首屏动画的 to 帧是可见态，退化不会丢内容 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing-hero { animation: none; }
  .landing-card { transition: none; }
  .landing-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .landing-hero { padding-top: 38px; }
  .landing-hero h1 { font-size: 27px; }
}
