/* 首页比其它页宽：style.css 里 main 是 720px，这里覆盖掉（只影响加载本文件的页面） */
main { max-width: 1040px; }

/* landing.css —— 首页专用（其它页仍用 style.css）
   目标：把"文字堆"变成"有她的头像、有画面、有节奏"的一页。
   只依赖 style.css 里的 :root 变量。 */

.lp { max-width: 1040px; margin: 0 auto; padding: 0 18px 60px; }
.lp section { margin: 0 0 12px; }
.lp h2 { font-size: 1.5rem; margin: 0 0 6px; }
.lp .sub { color: var(--muted); font-size: 0.95rem; margin: 0 0 22px; }
.lp .block { padding: 44px 0 8px; }

/* ---------- 顶部主视觉 ---------- */
.lp-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px;
  align-items: center; padding: 30px 0 10px;
}
.lp-hero h1 { font-size: 2.55rem; line-height: 1.22; margin: 0 0 16px; }
.lp-hero .lead { font-size: 1.05rem; color: #4E5568; margin: 0 0 22px; max-width: 30em; }
.lp-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-hero .note { color: var(--muted); font-size: 0.85rem; margin: 14px 0 0; }
.lp-art {
  position: relative; border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(58, 84, 214, 0.45);
  aspect-ratio: 1 / 1; background: #E8EEFF;
}
.lp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 10%, rgba(255,255,255,0.28), transparent 60%);
}

/* ---------- 聊天气泡卡 ---------- */
.lp-chat {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; max-width: 620px; margin: 0 auto;
  box-shadow: 0 20px 40px -30px rgba(26, 29, 41, 0.35);
}
.lp-chat header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lp-chat header img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.lp-chat header b { font-size: 0.95rem; }
.lp-chat header span { color: var(--muted); font-size: 0.8rem; }
.lp-msg { display: flex; margin: 12px 0 0; }
.lp-msg p {
  margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 0.95rem; max-width: 78%;
  background: #F1F4FF; color: #232A3D;
}
.lp-msg.me { justify-content: flex-end; }
.lp-msg.me p { background: var(--accent); color: #fff; }
.lp-msg.soft p { background: #FFF3D6; color: #6B4E12; }

/* ---------- 主视觉右侧：她什么时候先开口 ---------- */
.lp-trust {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lp-trust li {
  font-size: 0.82rem; color: #3E4761; background: #EEF2FF;
  border: 1px solid #DCE3FF; border-radius: 999px; padding: 6px 12px;
}
.lp-now {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 20px 22px; box-shadow: 0 24px 50px -34px rgba(26, 29, 41, 0.4);
}
.lp-now-head { display: flex; align-items: center; gap: 12px; }
.lp-now-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.lp-now-head b { display: block; font-size: 1rem; }
.lp-now-head span { color: var(--muted); font-size: 0.8rem; }
.lp-now-cap { color: var(--muted); font-size: 0.86rem; margin: 14px 0 8px; }
.lp-now ul { list-style: none; margin: 0; padding: 0; }
.lp-now li {
  font-size: 0.9rem; color: #3E4761; line-height: 1.6;
  padding: 9px 0; border-top: 1px dashed var(--line);
}
.lp-now li:first-child { border-top: 0; }
.lp-now li b {
  display: block; color: var(--accent-dark);
  font-size: 0.84rem; margin: 0 0 2px;
}
.lp-now-foot { color: var(--muted); font-size: 0.82rem; margin: 12px 0 0; }

/* ---------- 她的小本本（右列卡片） ---------- */
.lp-book {
  background: #FFFDF6; border: 1px solid #F0E3BF; border-radius: 22px;
  padding: 20px 22px; box-shadow: 0 22px 46px -34px rgba(120, 96, 22, 0.45);
}
.lp-book h3 { margin: 0 0 12px; font-size: 1rem; color: #6B4E12; }
.lp-book-row { padding: 10px 0; border-top: 1px dashed #EBDBB0; }
.lp-book-row:first-of-type { border-top: 0; padding-top: 0; }
.lp-book-row b { display: block; font-size: 0.98rem; color: #232A3D; margin-bottom: 2px; }
.lp-book-row span { color: #7A6432; font-size: 0.86rem; line-height: 1.55; }
.lp-book-foot { color: #8A7442; font-size: 0.8rem; margin: 12px 0 0; }

/* ---------- 功能分组 ---------- */
.lp-group {
  font-size: 0.86rem; font-weight: 700; letter-spacing: .04em;
  color: #6B7590; margin: 26px 0 10px; text-transform: none;
}
.lp-group:first-of-type { margin-top: 8px; }

/* ---------- 功能卡 ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start;
}
.lp-card .ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  background: #EEF2FF; display: flex; align-items: center; justify-content: center;
}
.lp-card .ico svg { width: 20px; height: 20px; stroke: var(--accent-dark); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-card h3 { font-size: 1rem; margin: 2px 0 4px; }
.lp-card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- 图文块 ---------- */
.lp-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: center; }
.lp-split img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; border-radius: 22px; display: block;
  box-shadow: 0 24px 50px -34px rgba(26,29,41,.55); }
.lp-split ul { margin: 0; padding-left: 18px; color: #4E5568; }
.lp-split li { margin: 6px 0; }

/* ---------- 三步 ---------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.lp-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.lp-step::before {
  counter-increment: s; content: counter(s);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 8px;
}
.lp-step b { display: block; margin-bottom: 2px; }
.lp-step span { color: var(--muted); font-size: 0.88rem; }

/* ---------- FAQ ---------- */
.lp-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 0 0 10px;
}
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 0.97rem; }
.lp-faq details p { color: var(--muted); font-size: 0.92rem; margin: 8px 0 0; }

/* ---------- 底部 CTA ---------- */
.lp-cta {
  margin-top: 40px; padding: 34px 24px; border-radius: 24px; text-align: center;
  background: linear-gradient(135deg, #4D6BFE 0%, #7A5CF0 100%);
  color: #fff; box-shadow: 0 30px 60px -34px rgba(77,107,254,.7);
}
.lp-cta h2 { color: #fff; margin-bottom: 6px; }
.lp-cta p { color: rgba(255,255,255,.82); margin: 0 0 18px; font-size: 0.95rem; }
.lp-cta .btn { background: #fff; color: var(--accent-dark); }

/* ---------- 她会做的事：分页 + 可滑动小窗口 ---------- */
.fx-head { display: flex; align-items: center; gap: 12px; }
.fx-head h2 { margin: 0; }
.fx-arrows { display: none; gap: 8px; margin-left: auto; }
.fx-arrows[hidden] { display: none !important; }
.fx-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--accent-dark); cursor: pointer;
  transition: background-color .2s, transform .12s;
}
.fx-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fx-arrow:hover:not(:disabled) { background: #EEF2FF; }
.fx-arrow:active:not(:disabled) { transform: scale(.94); }
.fx-arrow:disabled { opacity: .35; cursor: default; }

.fx-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: 16px;
  background: #EEF2FF; border: 1px solid var(--line); margin: 2px 0 14px;
  overflow-x: auto; scrollbar-width: none;
}
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tab {
  flex: 1 0 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: none;
  color: var(--muted); font-size: .84rem; font-weight: 650; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.fx-tab[aria-selected="true"] {
  background: #fff; color: var(--accent-dark);
  box-shadow: 0 1px 3px rgba(58, 84, 214, .18);
}
.fx-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.fx-panel[hidden] { display: none; }
.fx-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.fx-rail::-webkit-scrollbar { display: none; }
.fx-rail:focus-visible { outline: 2px solid rgba(77, 107, 254, .35); outline-offset: 2px; border-radius: 20px; }

.fx-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(26, 29, 41, .04), 0 12px 24px -20px rgba(58, 84, 214, .45);
  cursor: pointer; transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s;
}
.fx-card:active { transform: scale(.98); }
.fx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.fx-win {
  display: flex; flex-direction: column; gap: 8px; height: 190px; padding: 12px;
  border-radius: 14px; background: #F4F7FF; border: 1px solid #E6ECFC; overflow: hidden;
}
.fx-title { margin: 12px 0 3px; font-size: 1rem; }
.fx-line { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.fx-more {
  display: none; align-items: center; gap: 2px; align-self: flex-start;
  margin: auto 0 0 -8px; padding: 6px 8px; border: 0; border-radius: 10px;
  background: none; color: var(--accent-dark); font-size: .86rem; font-weight: 650;
  font-family: inherit; cursor: pointer;
}
.lp-feats.js .fx-more { display: inline-flex; }
.fx-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-more:hover { background: #EEF2FF; }
.fx-detail { display: none; }

.fx-dots { display: none; justify-content: center; gap: 2px; margin-top: 6px; }
.lp-feats.js .fx-dots { display: flex; }
.fx-dots button { position: relative; width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.fx-dots button::before {
  content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 4px; border-radius: 2px;
  background: #CBD5F0; transition: width .3s, left .3s, background-color .3s;
}
.fx-dots button.is-now::before { left: 2px; width: 16px; background: var(--accent); }

/* 小窗口里的内容 */
.fx-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.fx-row { display: flex; align-items: flex-end; gap: 6px; }
.fx-row.me { justify-content: flex-end; }
.fx-b {
  margin: 0; padding: 7px 10px; border-radius: 12px; max-width: 84%;
  background: #fff; border: 1px solid #E6ECFC; color: #2A3350;
  font-size: .79rem; line-height: 1.5; word-break: break-word;
}
.fx-b.me { align-self: flex-end; background: var(--accent); border-color: transparent; color: #fff; }
.fx-b.soft { background: #FFF6E0; border-color: #F3E3B8; color: #7A5A12; }
.fx-ava { flex: none; width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #E8EEFF; }
.fx-when { margin: 0; text-align: center; font-size: .72rem; color: var(--muted); }
.fx-hint { margin: 0; text-align: center; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.fx-link { display: block; margin-top: 2px; font-size: .74rem; color: var(--accent-dark); }
.fx-big { margin: 0; text-align: center; font-size: 1.35rem; font-weight: 800; color: var(--accent-dark); }
.fx-big span { font-size: .8rem; font-weight: 500; color: var(--muted); }

.fx-voice {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 12px; background: #fff; border: 1px solid #E6ECFC; color: var(--accent-dark);
  font-size: .78rem;
}
.fx-voice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.fx-stickers { display: flex; align-items: center; justify-content: center; gap: 8px; }
.fx-stickers img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid #E6ECFC; }

.fx-li {
  display: flex; align-items: baseline; gap: 8px; padding: 7px 10px;
  border-radius: 10px; background: #fff; border: 1px solid #E6ECFC; font-size: .78rem; line-height: 1.45;
}
.fx-li b { font-weight: 650; color: #2A3350; }
.fx-li span { margin-left: auto; color: var(--muted); font-size: .72rem; text-align: right; }

.fx-diary {
  height: 100%; padding: 10px 12px; border-radius: 12px;
  background: #FFFDF4; border: 1px solid #F0E3BF; box-shadow: inset 4px 0 0 #F2C94C;
}
.fx-diary-head {
  display: flex; justify-content: space-between; padding-bottom: 6px;
  border-bottom: 1px dashed #EBDBB0; font-size: .74rem; color: #9A7B32;
}
.fx-diary p { margin: 8px 0 0; font-size: .8rem; line-height: 1.6; color: #4E431F; }
.fx-diary-foot { display: flex; gap: 6px; margin-top: 8px; }

.fx-photo { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: #E8EEFF; }
.fx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-photo b {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #2A3350; font-size: .72rem; font-weight: 600;
}

.fx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fx-chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: #fff; border: 1px solid #DCE4FA; color: #3A54D6; font-size: .74rem;
}
.fx-chip.on { background: var(--accent); border-color: transparent; color: #fff; }

.fx-progress { height: 8px; border-radius: 999px; background: #E1E8FA; overflow: hidden; }
.fx-progress span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4D6BFE, #7A5CF0); }

.fx-tl { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fx-tl-i { display: flex; align-items: flex-start; gap: 10px; }
.fx-tl-i i { flex: none; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.fx-tl-i b { display: block; font-size: .76rem; color: var(--muted); font-weight: 500; }
.fx-tl-i span { font-size: .82rem; color: #2A3350; }

.fx-ta {
  flex: 1; min-height: 0; padding: 10px; border-radius: 12px; background: #fff;
  border: 1px solid #DCE4FA; color: #4E5568; font-size: .8rem; line-height: 1.65; overflow: hidden;
}

.fx-bars { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.fx-bar { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: #2A3350; }
.fx-bar span { flex: none; width: 30px; color: var(--muted); }
.fx-bar i { flex: 1; height: 7px; border-radius: 999px; background: #E1E8FA; overflow: hidden; }
.fx-bar i b { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.fx-bar em { flex: none; width: 44px; text-align: right; font-style: normal; color: var(--accent-dark); font-weight: 650; }

.fx-slider { position: relative; height: 6px; margin: 6px 4px; border-radius: 999px; background: #E1E8FA; }
.fx-slider i { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: var(--accent); }
.fx-slider b { position: absolute; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }

.fx-qr { align-self: center; width: 96px; height: 96px; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid #DCE4FA; }
.fx-qr svg { display: block; width: 100%; height: 100%; }

.fx-swap { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fx-swap span { padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid #DCE4FA; font-size: .8rem; color: #2A3350; }
.fx-swap svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 细节弹层 */
.fx-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.fx-sheet[hidden] { display: none; }
.fx-back { position: absolute; inset: 0; background: rgba(26, 29, 41, .44); }
.fx-sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0; background: #fff;
  box-shadow: 0 -20px 50px -24px rgba(26, 29, 41, .5);
  animation: fx-rise .24s ease-out;
}
@keyframes fx-rise { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fx-sheet-panel { animation: none; } }
.fx-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.fx-sheet-title { margin: 0; font-size: 1.08rem; }
.fx-close {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: 50%; background: #EEF2FF; color: var(--accent-dark); cursor: pointer;
}
.fx-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fx-sheet-body p { margin: 0; color: #4E5568; font-size: .95rem; line-height: 1.75; }

@media (max-width: 420px) {
  .fx-tab { font-size: .79rem; min-height: 38px; }
}
@media (min-width: 820px) {
  .fx-arrows.on { display: flex; }
  .fx-rail { grid-auto-columns: minmax(250px, 1fr); gap: 14px; }
  .fx-card { padding: 16px; }
  .fx-win { height: 200px; }
  .lp-feats.js .fx-dots { display: none; }
  .fx-sheet { align-items: center; }
  .fx-sheet-panel { border-radius: 22px; max-height: 80vh; }
}
@media (hover: hover) {
  .fx-card:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 1px 2px rgba(26, 29, 41, .05), 0 22px 30px -20px rgba(58, 84, 214, .55);
  }
}

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
  .lp-hero { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .lp-hero h1 { font-size: 2rem; }
  .lp-art { aspect-ratio: 4 / 3; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-split { grid-template-columns: 1fr; }
  .lp-split img { aspect-ratio: 4 / 3; }
  .lp-steps { grid-template-columns: 1fr; }
}
