/* 落地页专用样式 */
.landing header { padding: 14px 40px; }
.top-nav { display: flex; gap: 26px; }
.top-nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: var(--text); }
/* 移动端导航。原来这里只有一句 .top-nav{display:none} —— 菜单被藏起来,
   却从来没有汉堡按钮之类的替代入口,手机上整个导航等于不存在。

   改成"折到第二排"而不是加汉堡:39 个静态页共用这份 landing.css,
   但只有 3 个加载 landing.js,纯 CSS 才能一次覆盖全部,且不用改 39 份 HTML。

   语言选择器同时也是坏的:它靠 :hover / :focus-within 展开,而触发元素是个
   不可聚焦的 <span>,手机上点它没有任何反应。这里直接把三个语种平铺出来。 */
@media (max-width: 720px) {
  .landing header, header { padding: 10px 16px; position: static; }
  header { flex-wrap: wrap; row-gap: 8px; }
  .header-right { flex-wrap: nowrap; gap: 8px; }
  .header-right button { font-size: 13px; padding: 8px 12px; }

  .top-nav { display: flex; order: 3; width: 100%; flex-wrap: wrap;
    gap: 0 16px; align-items: center; padding-top: 2px;
    border-top: 1px solid var(--border); }
  /* 竖向 padding 是给手指的:没有它链接只有 18px 高,点不准 */
  .top-nav a { font-size: 13.5px; padding: 9px 0; }

  /* 必须带 .top-nav 前缀:.lang-sel / .lang-menu 的基础规则写在本文件后面,
     同权重时后者赢 —— 不加前缀这几条会被下面的 display:none 压回去 */
  .top-nav .lang-sel { display: flex; align-items: center; flex-wrap: wrap; gap: 0 14px; }
  .top-nav .lang-sel > span { display: none; }     /* "🌐 简体 ▾" 这个开关移动端不需要 */
  .top-nav .lang-menu { display: block; position: static; padding: 0; }
  .top-nav .lang-menu div { background: none; border: 0; border-radius: 0; box-shadow: none;
    padding: 0; min-width: 0; display: flex; gap: 0 14px; }
  .top-nav .lang-menu a { display: inline-block; padding: 9px 0; font-size: 13.5px; }
  .top-nav .lang-menu a:hover { background: none; }
}

.hero { text-align: center; padding: 74px 20px 60px; max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-block; background: #fff4f0; border: 1px solid #ffd9cd;
  color: var(--accent-dark); font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: 46px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--dim); font-size: 17px; line-height: 1.9; margin: 20px 0 26px; }
@media (max-width: 720px) { .hero h1 { font-size: 32px; } .hero-sub br { display: none; } }

.idea-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.idea-chips span { background: var(--panel); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; color: var(--dim); box-shadow: var(--shadow); }

.cta-row { display: flex; justify-content: center; gap: 14px; }
.cta-note { color: var(--dim); font-size: 13px; margin-top: 14px; }
.scroll-hint { display: inline-block; margin-top: 34px; color: var(--dim);
  text-decoration: none; font-size: 14px; }
.scroll-hint:hover { color: var(--accent-dark); }

.section { max-width: 980px; margin: 0 auto; padding: 70px 24px; text-align: center; }
.section.alt { max-width: none; background: #f7f2ec; }
.section.alt > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.section-eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 800;
  letter-spacing: 3px; margin-bottom: 10px; }
.section h2 { font-size: 32px; font-weight: 800; margin-bottom: 34px; letter-spacing: -.3px; }

.steps-grid, .feature-grid { display: grid; gap: 18px; text-align: left; }
.steps-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lcard { background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; box-shadow: var(--shadow); }
.lcard h3 { font-size: 17px; margin: 0 0 10px; color: var(--text); }
.lcard p { color: var(--dim); font-size: 14px; line-height: 1.9; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px; }

.why-lead { max-width: 680px; margin: -14px auto 30px; color: var(--dim);
  font-size: 15px; line-height: 2; text-align: left; }
.why-lead b { color: var(--accent-dark); }
.why-honest { max-width: 680px; margin: 26px auto 0; font-size: 13.5px; color: var(--dim);
  background: var(--bg); border: 1px dashed var(--border); border-radius: 10px;
  padding: 12px 18px; line-height: 1.9; }
.why-honest b { color: var(--accent-dark); }

.trust-list { max-width: 640px; margin: 0 auto; text-align: left; }
.trust-list p { font-size: 15px; line-height: 2; margin-bottom: 12px; color: var(--text); }
.trust-list b { color: var(--accent-dark); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 720px; margin: 0 auto; text-align: left; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .badge { position: absolute; top: -12px; left: 24px; background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 999px; }
.price-card .price { font-size: 34px; font-weight: 800; margin: 8px 0 14px; }
.price-card .price small { font-size: 14px; color: var(--dim); font-weight: 400; }
.price-card ul { list-style: none; margin: 0 0 20px; flex: 1; }
.price-card li { font-size: 14px; color: var(--dim); padding: 5px 0 5px 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-card button { width: 100%; }

.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 22px; margin: 0 auto 12px; max-width: 720px; text-align: left;
  box-shadow: var(--shadow); }
.faq-item summary { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.faq-item p { color: var(--dim); font-size: 14px; line-height: 1.9; margin-top: 10px; }

.final-cta { text-align: center; padding: 80px 24px; background: #f7f2ec; }
.final-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.final-cta p { color: var(--dim); margin-bottom: 26px; }

.site-footer { text-align: center; padding: 36px 24px 46px; color: var(--dim); font-size: 13px; }
.site-footer p { max-width: 640px; margin: 12px auto 0; line-height: 1.8; font-size: 12px; }
.site-footer a { color: var(--dim); }
.site-footer a:hover { color: var(--accent-dark); }
.faq-item a { color: var(--accent-dark); }

/* 成品展示区 */
.showcase-note { color: var(--dim); margin: -22px 0 28px; font-size: 14px; }
.showcase-note b { color: var(--accent-dark); }
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; text-align: left; }
.show-card { display: flex; flex-direction: column; gap: 12px; }
.show-tag { font-weight: 800; color: var(--accent-dark); font-size: 14px; }
.mini-flow { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mf-node { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 14px; font-size: 13px; width: 100%; text-align: center; line-height: 1.7;
  word-break: break-word; }
.mf-node span { display: block; font-size: 10px; letter-spacing: 2px; color: var(--accent-dark); font-weight: 700; }
.mf-node em { font-style: normal; color: var(--accent-dark); font-weight: 800;
  border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; background: #fff; }
.mf-arrow { color: #ddd2c8; font-size: 10px; }
.mini-chart { position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; }
.mini-chart svg { width: 100%; height: 130px; display: block; }
.oos-label { position: absolute; top: 10px; right: 10px; font-size: 11px; color: var(--amber); }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.mm { background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; font-size: 11px; color: var(--dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mm b { font-size: 14px; color: var(--text); }
.mm b.pos { color: var(--green); }
.mm-grade { background: #eaf2fc; border-color: var(--blue); color: var(--blue);
  font-weight: 800; font-size: 18px; padding: 6px 14px; }
.file-stack { display: flex; flex-direction: column; gap: 6px; }
.fs-row { display: flex; align-items: center; gap: 4px 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px;
  flex-wrap: wrap; min-width: 0; word-break: break-word; }
.fs-row b { margin-left: auto; font-size: 11px; color: var(--green); font-weight: 700;
  text-align: right; }
.mini-code { background: #faf7f4; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 11px; line-height: 1.7; color: #7a6a5e;
  font-family: Consolas, monospace; overflow-x: auto; }
.show-cap { color: var(--dim); font-size: 12.5px; margin-top: auto; }

/* 登录弹窗 */
#auth-overlay { position: fixed; inset: 0; background: rgba(60, 48, 42, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.auth-card { background: var(--panel); border-radius: 22px; padding: 34px;
  width: 100%; max-width: 400px; position: relative; box-shadow: 0 20px 60px rgba(60,48,42,.25); }
.auth-x { position: absolute; top: 14px; right: 18px; background: none; font-size: 26px;
  color: var(--dim); padding: 0; line-height: 1; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.auth-tab { flex: 1; padding: 10px; border-radius: 999px; background: var(--bg);
  border: 1.5px solid var(--border); color: var(--dim); font-weight: 700; }
.auth-tab.active { background: #fff4f0; border-color: var(--accent); color: var(--accent-dark); }
.auth-card input { width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 8px 0;
  font-family: inherit; color: var(--text); }
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-card .primary { width: 100%; margin-top: 12px; }
.auth-msg { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.google-btn { width: 100%; display: flex; align-items: center; justify-content: center;
  gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: 999px;
  padding: 11px; font-size: 15px; font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.google-btn:hover { border-color: var(--dim); }
.or-div { display: flex; align-items: center; gap: 12px; color: var(--dim);
  font-size: 12px; margin: 12px 0 4px; }
.or-div::before, .or-div::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* 语言下拉选择器(导航右端,占一格) */
.lang-sel { position: relative; display: inline-block; }
.lang-sel > span { cursor: pointer; white-space: nowrap; }
.lang-menu { display: none; position: absolute; right: 0; top: 100%; padding-top: 8px; z-index: 60; }
.lang-sel:hover .lang-menu, .lang-sel:focus-within .lang-menu { display: block; }
.lang-menu div { background: #fff; border: 1px solid #efe7e0; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(60,48,42,.12); padding: 6px 0; min-width: 132px; }
.lang-menu a { display: block; padding: 8px 18px; font-size: 14px; color: #3C302A;
  text-decoration: none; white-space: nowrap; }
.lang-menu a:hover { background: #faf5f0; }
.lang-menu a.on { color: #FF6B4A; font-weight: 700; }

/* ===== 动画层(getebook 风格:克制、有序) ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes chipBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
/* Hero 入场:逐行错峰 */
.hero .eyebrow { animation: fadeUp .55s .05s both; }
.hero h1 { animation: fadeUp .6s .15s both; }
.hero .hero-sub { animation: fadeUp .6s .3s both; }
.hero .idea-chips { animation: fadeUp .6s .45s both; }
.hero .cta-row { animation: fadeUp .6s .6s both; }
.hero .cta-note, .hero .scroll-hint { animation: fadeUp .6s .75s both; }
.idea-chips span { animation: chipBob 3.6s ease-in-out infinite; }
.idea-chips span:nth-child(2) { animation-delay: .6s; }
.idea-chips span:nth-child(3) { animation-delay: 1.2s; }
/* 滚动渐入:JS 打 .anim,入视口加 .in */
.anim { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.anim.in { opacity: 1; transform: none; }
/* 展示区净值曲线:入视口自绘制 */
.mini-chart polyline { transition: stroke-dashoffset 1.6s ease-out .2s; }
.mini-chart polygon { opacity: 0; transition: opacity .8s ease 1.4s; }
.mini-chart.drawn polygon { opacity: 1; }
/* CTA 悬停提亮上浮(全站按钮已有过渡则叠加) */
button.primary.big { transition: transform .18s ease, box-shadow .18s ease; }
button.primary.big:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,107,74,.35); }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .hero-sub, .hero .idea-chips, .hero .cta-row,
  .hero .cta-note, .hero .scroll-hint, .idea-chips span { animation: none; }
  .anim { opacity: 1; transform: none; transition: none; }
  .mini-chart polyline, .mini-chart polygon { transition: none; }
}

/* 首屏打字输入框(替代静态示例气泡,由 landing.js 注入) */
.type-box { display: flex; align-items: center; gap: 10px; max-width: 580px;
  margin: 0 auto 30px; background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 13px 14px 13px 18px; text-align: left;
  box-shadow: 0 10px 30px rgba(60,48,42,.09); cursor: pointer;
  animation: fadeUp .6s .45s both; transition: border-color .2s ease, box-shadow .2s ease; }
.type-box:hover { border-color: var(--accent); box-shadow: 0 12px 34px rgba(255,107,74,.16); }
.tb-icon { flex-shrink: 0; }
.tb-text { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; min-height: 1.5em; }
.tb-caret { width: 2px; height: 20px; background: var(--accent); flex-shrink: 0;
  animation: caretBlink 1.1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.tb-go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .type-box { animation: none; } .tb-caret { animation: none; } }
