/* ==========================================================================
   Easy Post Landing Page
   Notion 风格设计系统：柔和米白背景、克制的强调色块、清晰的排版层级
   ========================================================================== */

:root {
  /* Notion-like neutral palette */
  --bg: #ffffff;
  --bg-tinted: #f7f6f3;
  --bg-dark: #191919;
  --text: #191919;
  --text-secondary: #6b6b6b;
  --text-tertiary: #9b9a97;
  --border: #e9e8e4;
  --border-strong: #dcdad5;

  /* Notion accent colors */
  --yellow: #fdecc8;
  --yellow-strong: #e8a13a;
  --blue: #d3e5ef;
  --blue-strong: #337ea9;
  --pink: #f5e0e9;
  --pink-strong: #c14c8a;
  --purple: #e8deee;
  --purple-strong: #9065b0;
  --green: #dbeddb;
  --green-strong: #4b8a5a;

  --accent: #337ea9;
  --accent-dark: #1f2937;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 15, 15, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 15, 15, 0.12);

  --container-w: 1140px;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

.hl { color: var(--blue-strong); position: relative; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-strong);
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.eyebrow--light { background: rgba(255,255,255,0.1); color: #cfe6f2; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg-tinted); }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--text); box-shadow: var(--shadow-sm); }
.btn--outline-light { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,0.08); }
.btn--lg { padding: 13px 24px; font-size: 15px; border-radius: var(--radius-sm); }

.text-link {
  font-weight: 600;
  color: var(--blue-strong);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}
.text-link:hover { border-color: var(--blue-strong); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-color: var(--border); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.nav__logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue-strong), var(--purple-strong));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 8px; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
}
.nav__burger span { width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--border);
}
.nav__mobile a { padding: 10px 4px; font-size: 15px; font-weight: 500; }
.nav__mobile.is-open { display: flex; }

/* ---------------- Hero ---------------- */
.hero { padding: 88px 0 40px; position: relative; }
.hero__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 24px;
  background: #fff;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green-strong); box-shadow: 0 0 0 3px var(--green); }

.hero__title { font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 20px; }
.hero__subtitle { font-size: 18px; color: var(--text-secondary); max-width: 620px; margin: 0 auto 32px; }
.hero__actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero__meta { font-size: 13px; color: var(--text-tertiary); }
.hero__meta .sep { margin: 0 8px; }

.hero__visual { margin-top: 56px; position: relative; }
.browser-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-frame__bar {
  display: flex; gap: 7px;
  padding: 12px 16px;
  background: var(--bg-tinted);
  border-bottom: 1px solid var(--border);
}
.browser-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.browser-frame img { width: 100%; }

.hero__float {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.hero__float--card { width: 190px; left: -4%; bottom: -8%; transform: rotate(-6deg); }
.hero__float--theme { width: 220px; right: -5%; top: -6%; transform: rotate(5deg); }

/* ---------------- Strip ---------------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; margin-top: 72px; background: var(--bg-tinted); }
.strip__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; text-align: center; }
.strip__item { flex: 1; min-width: 140px; }
.strip__item strong { display: block; font-size: 30px; font-weight: 800; color: var(--text); }
.strip__item span { font-size: 13px; color: var(--text-secondary); }

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; }
.section--tinted { background: var(--bg-tinted); }
.section__head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section__head p { color: var(--text-secondary); font-size: 16px; }

/* ---------------- Feature grid ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.feature-card__icon--yellow { background: var(--yellow); }
.feature-card__icon--blue { background: var(--blue); }
.feature-card__icon--pink { background: var(--pink); }
.feature-card__icon--purple { background: var(--purple); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 14.5px; margin-bottom: 14px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 13.5px; color: var(--text-secondary); padding-left: 18px; position: relative; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green-strong); font-weight: 700; font-size: 12px;
}

/* ---------------- Showcase rows ---------------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.showcase:last-child { margin-bottom: 0; }
.showcase--reverse .showcase__text { order: 2; }
.showcase--reverse .showcase__visual { order: 1; }

.showcase__tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 700;
  color: var(--pink-strong);
  background: var(--pink);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.showcase__text h3 { font-size: 26px; margin-bottom: 16px; }
.showcase__text p { color: var(--text-secondary); font-size: 15px; margin-bottom: 14px; }

.browser-frame--small { box-shadow: var(--shadow-md); }

/* ---------------- Engine grid ---------------- */
.engine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.engine-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-tinted);
}
.engine-card__icon { font-size: 24px; margin-bottom: 16px; }
.engine-card h4 { font-size: 16px; margin-bottom: 8px; }
.engine-card p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------------- Dark theme showcase ---------------- */
.section--dark-showcase { background: var(--bg-dark); color: #fff; padding: 96px 0; }
.theme-showcase { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.theme-showcase__text h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.theme-showcase__text p { color: #b7b7b7; font-size: 15.5px; }
.browser-frame--dark { border-color: #2c2c2c; }
.browser-frame--dark .browser-frame__bar { background: #1f1f1f; border-color: #2c2c2c; }

/* ---------------- FAQ ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-tertiary); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 12px; color: var(--text-secondary); font-size: 14.5px; }
.faq-item code {
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: "SF Mono", Consolas, monospace;
}

/* ---------------- CTA ---------------- */
.cta {
  background: linear-gradient(135deg, #1f2937, #191919);
  color: #fff;
  padding: 96px 0;
}
.cta__inner { text-align: center; max-width: 600px; margin: 0 auto; }
.cta__inner h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.cta__inner p { color: #b7b7b7; font-size: 16px; margin-bottom: 32px; }
.cta__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.cta__version { font-size: 13px; color: #8a8a87; margin: -16px 0 20px; }
.cta__code {
  font-size: 13.5px; color: #9b9a97;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cta__code code {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: "SF Mono", Consolas, monospace;
  color: #e6e6e6;
}

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-tinted); border-top: 1px solid var(--border); padding: 56px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; max-width: 260px; }
.footer__brand p { font-size: 13.5px; color: var(--text-secondary); }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h5 { font-size: 13px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--text-secondary); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 20px; font-size: 13px; color: var(--text-tertiary); }

/* ---------------- Back to top ---------------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------- Fade-up animation ---------------- */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Image scroll fade + hover zoom ---------------- */
/* 容器保持原有尺寸/位置/旋转不变，仅用 opacity 控制滚入滚出的淡入淡出 */
.img-fade {
  overflow: hidden;
  opacity: 0;
  transition: opacity .6s ease;
}
.img-fade.is-visible { opacity: 1; }
/* 悬停时容器内图片响应式放大，被容器 overflow:hidden 裁切，容器本身尺寸不变 */
.img-fade img {
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}
.img-fade:hover img {
  transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .img-fade { transition: none; opacity: 1; }
  .img-fade img { transition: none; }
}

.noise-overlay { display: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase--reverse .showcase__text,
  .showcase--reverse .showcase__visual { order: initial; }
  .theme-showcase { grid-template-columns: 1fr; text-align: center; }
  .hero__float { display: none; }
  .strip__inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 24px; }
  .section { padding: 64px 0; }
  .engine-grid { grid-template-columns: 1fr; }
  .cta__actions { flex-direction: column; }
  .footer__inner { flex-direction: column; }
}
