/* 云梦 · 引流欢迎页骨架
   画风对齐首页「水墨纸感」浅色主题（styles.css 的 --ym-* 变量）：
   米白纸面 + 墨绿主色 + 珊瑚点缀，圆角柔和、阴影轻。 */

:root {
  --ym-ink: #182933;
  --ym-muted: #63747a;
  --ym-line: #ccd9d4;
  --ym-paper: #f8fbf8;
  --ym-paper-2: #eef4f1;
  --ym-canvas: #e6efec;
  --ym-green: #08786d;
  --ym-green-dark: #045e57;
  --ym-coral: #c96750;
  --shadow: 0 18px 50px rgba(24, 41, 51, .10);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ym-ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(8, 120, 109, .08), transparent 60%),
    var(--ym-canvas);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wl-page { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.wl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.wl-btn:hover { transform: translateY(-1px); }
.wl-btn-primary {
  background: linear-gradient(135deg, var(--ym-green), var(--ym-green-dark));
  color: #fff; box-shadow: 0 8px 24px rgba(8, 120, 109, .28);
}
.wl-btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--ym-line); color: var(--ym-ink); }
.wl-btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 14px; }
.wl-link { color: var(--ym-green); font-weight: 600; }
.wl-link:hover { color: var(--ym-green-dark); }

/* ===== 顶部导航 ===== */
.wl-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 4px; margin: 0 -4px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: rgba(230, 239, 236, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(204, 217, 212, .6);
}
.wl-brand { display: flex; align-items: center; gap: 10px; }
.wl-brand-mark { width: 36px; height: 36px; border-radius: 34%; }
.wl-brand-copy strong { font-size: 17px; display: block; line-height: 1.1; }
.wl-brand-copy small { color: var(--ym-muted); font-size: 11px; }
.wl-nav-links { display: flex; gap: 20px; margin-left: auto; color: var(--ym-muted); font-size: 14px; }
.wl-nav-links a:hover { color: var(--ym-ink); }
.wl-nav-actions { display: flex; gap: 10px; }

/* ===== Hero ===== */
.wl-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: 40px; padding: 72px 0 56px;
}
.wl-eyebrow { color: var(--ym-coral); font-weight: 700; font-size: 14px; letter-spacing: .12em; margin: 0 0 14px; }
.wl-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.15; margin: 0 0 18px; letter-spacing: .02em; }
.wl-hero h1 em { font-style: normal; color: var(--ym-green); }
.wl-hero-sub { color: var(--ym-muted); font-size: 17px; max-width: 40ch; margin: 0 0 28px; }
.wl-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.wl-hero-note { color: var(--ym-muted); font-size: 13px; margin-top: 16px; }
.wl-hero-art img { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }

/* ===== Hero 入场动效（首次到访 · 营销页档）=====
   仅 opacity/transform，CSS animation（合成器线程，加载期间不掉帧）。
   曲线：强 ease-out cubic-bezier(0.23,1,0.32,1)；文案 3 段 80ms stagger，海报随后淡入。 */
@keyframes wl-hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wl-hero-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.wl-eyebrow,
.wl-hero h1,
.wl-hero-sub,
.wl-hero-cta,
.wl-hero-note {
  animation: wl-hero-rise .6s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.wl-hero h1      { animation-delay: .08s; }
.wl-hero-sub     { animation-delay: .16s; }
.wl-hero-cta     { animation-delay: .24s; }
.wl-hero-note    { animation-delay: .32s; }
.wl-hero-art img { animation: wl-hero-fade .8s cubic-bezier(0.23, 1, 0.32, 1) .2s both; }

@media (prefers-reduced-motion: reduce) {
  /* 只保留透明度淡入，去掉位移 */
  .wl-eyebrow, .wl-hero h1, .wl-hero-sub, .wl-hero-cta, .wl-hero-note {
    animation: wl-hero-fade .3s ease both;
  }
  .wl-hero-art img { animation: wl-hero-fade .3s ease both; }
  .wl-in .wl-pick, .wl-pick.wl-in, .wl-in .wl-feature-card, .wl-feature-card.wl-in {
    animation: wl-hero-fade .3s ease both;
  }
  .wl-pick, .wl-feature-card { transform: none; }
  .wl-pick:hover { transform: none; }
  .wl-pick-cover img, .wl-pick:hover .wl-pick-cover img { transform: none; transition: none; }
}

/* ===== 区块 ===== */
.wl-section { padding: 56px 0; scroll-margin-top: 84px; }
.wl-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.wl-section-title { font-size: 26px; margin: 0 0 24px; letter-spacing: .04em; }
.wl-section-head .wl-section-title { margin-bottom: 0; }
.wl-section-head { margin-bottom: 24px; }

/* 特色卡 */
.wl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wl-feature-card {
  background: var(--ym-paper); border: 1px solid var(--ym-line);
  border-radius: 18px; padding: 26px 24px; box-shadow: 0 6px 20px rgba(24, 41, 51, .06);
}
.wl-feature-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; background: var(--ym-paper-2); margin-bottom: 14px;
}
.wl-feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.wl-feature-card p { margin: 0; color: var(--ym-muted); font-size: 14.5px; }

/* 角色精选 = 四条官方内容线（数据来自 official_accounts + 作者作品接口） */
.wl-section-sub { color: var(--ym-muted); font-size: 14.5px; margin: -14px 0 24px; max-width: 46ch; text-wrap: pretty; }

/* 2026-11-03：「云梦AI 是什么」正文段。
   这一节是给搜索引擎 / AI 问答引擎读的实体描述（原来整页正文只有 ~840 字符）。
   排版跟 .wl-faq 同宽，正文用主墨色、行高放宽 —— 大段文字挤在一起，
   移动端会糊成一整块，读不下去。 */
.wl-prose { max-width: 720px; }
.wl-prose p { margin: 0 0 16px; color: var(--ym-ink); font-size: 15.5px; line-height: 1.85; text-wrap: pretty; }
.wl-prose p:last-child { margin-bottom: 0; }
.wl-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wl-pick {
  display: block; color: inherit; background: var(--ym-paper);
  border: 1px solid var(--ym-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(24, 41, 51, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wl-pick:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(24, 41, 51, .14); }
.wl-pick.is-soon { cursor: default; }
.wl-pick-cover {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  display: grid; place-items: center; background: var(--ym-paper-2);
}
/* 封面一律用原图（约 1024px），不用 320px 缩略图，否则放大后发糊 */
.wl-pick-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(0.23, 1, 0.32, 1);
}
.wl-pick:hover .wl-pick-cover img { transform: scale(1.035); }
.wl-pick-cover.is-empty { background: linear-gradient(160deg, #e8f0ea, #cfe0d6); }
.wl-pick-glyph { font-size: 46px; font-weight: 600; color: rgba(8, 120, 109, .32); }
.wl-pick-type {
  position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff;
  background: rgba(8, 120, 109, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wl-pick-count, .wl-pick-soon {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ym-ink);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.wl-pick-soon { color: var(--ym-green-dark); }
.wl-pick-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.wl-pick-ava {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(24, 41, 51, .18);
}
.wl-pick-ava.is-initials {
  display: grid; place-items: center; border: 1px solid var(--ym-line);
  background: var(--ym-paper-2); color: var(--ym-green); font-weight: 700; font-size: 16px;
  box-shadow: none;
}
.wl-pick-names { min-width: 0; display: block; }
.wl-pick-names strong { display: block; font-size: 14.5px; line-height: 1.3; }
.wl-pick-names small {
  display: block; color: var(--ym-muted); font-size: 12px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (hover: none) {
  .wl-pick:hover { transform: none; box-shadow: 0 6px 20px rgba(24, 41, 51, .06); }
  .wl-pick:hover .wl-pick-cover img { transform: none; }
}

/* 卡片入场 stagger（与 hero 同曲线，滚动到视口后由 IntersectionObserver 加 .wl-in）
   初始隐藏只在 <html class="js"> 时生效，避免脚本失效时内容永久不可见。 */
.js .wl-pick, .js .wl-feature-card { opacity: 0; transform: translateY(16px); }
.wl-in .wl-pick, .wl-pick.wl-in, .wl-in .wl-feature-card, .wl-feature-card.wl-in {
  animation: wl-hero-rise .6s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.wl-in .wl-pick:nth-child(2), .wl-in .wl-feature-card:nth-child(2) { animation-delay: .08s; }
.wl-in .wl-pick:nth-child(3), .wl-in .wl-feature-card:nth-child(3) { animation-delay: .16s; }
.wl-in .wl-pick:nth-child(4) { animation-delay: .24s; }

/* FAQ */
.wl-faq { max-width: 720px; display: grid; gap: 12px; }
.wl-faq details {
  background: var(--ym-paper); border: 1px solid var(--ym-line);
  border-radius: 14px; padding: 14px 18px;
}
.wl-faq summary { font-weight: 600; cursor: pointer; }
.wl-faq p { color: var(--ym-muted); margin: 10px 0 0; font-size: 14.5px; }

/* CTA 带 */
.wl-cta-band {
  text-align: center; padding: 56px 24px; margin: 24px 0;
  background: linear-gradient(135deg, var(--ym-green), var(--ym-green-dark));
  border-radius: 22px; color: #fff; box-shadow: var(--shadow);
}
.wl-cta-band h2 { margin: 0 0 20px; font-size: 28px; letter-spacing: .04em; }
.wl-cta-band .wl-btn-primary { background: #fff; color: var(--ym-green-dark); box-shadow: none; }

/* 页脚 */
.wl-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px 0 40px; color: var(--ym-muted); font-size: 13px;
  border-top: 1px solid var(--ym-line);
}
.wl-footer-links { display: flex; gap: 18px; }
.wl-footer-links a:hover { color: var(--ym-ink); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .wl-hero { grid-template-columns: 1fr; padding: 48px 0 40px; }
  .wl-features { grid-template-columns: 1fr; }
  .wl-picks { grid-template-columns: repeat(2, 1fr); }
  .wl-nav-links { display: none; }
}

@media (max-width: 360px) {
  .wl-picks { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-btn { transition: none; }
}
