/* 心流 FocusFlow — 中部区块 CSS。集成时由 build/s1.css + s2.css + s3.css 合并生成。 */


/* ===================== s1 ===================== */
/* ================================================================
   S1 · 问题共鸣 + 理念转向 — 专属样式
   前缀：s1-  防冲突
   依赖：../styles.css 的 CSS 变量与通用类
   ================================================================ */

/* ─────────────── EMPATHY section ──────────────────────────────── */

/* section header */
.s1-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.s1-h2 {
  font-size: 44px;
  color: var(--text-primary);
  margin: 0;
}

.s1-lead {
  margin: 0;
  max-width: 540px;
}

/* 4-card grid */
.s1-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* single moment card */
.s1-moment {
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.s1-moment:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* icon container — each card gets its own tint via modifier */
.s1-moment-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.s1-icon-a { background: var(--energy-med-soft); }
.s1-icon-b { background: var(--energy-high-soft); }
.s1-icon-c { background: var(--accent-soft); }
.s1-icon-d { background: var(--energy-low-soft); }

.s1-moment-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}


/* ─────────────── PHILOSOPHY section ───────────────────────────── */

.s1-philosophy {
  padding-top: 96px;
  padding-bottom: 96px;
}

.s1-phil-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* header block */
.s1-phil-header {
  text-align: center;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 60px;
}

.s1-phil-h2 {
  font-size: 46px;
  color: #fff;
  margin: 0;
}

.s1-phil-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 600px;
}

/* line-break control — visible on ≥ 480px */
.s1-br { display: inline; }

/* contrast row */
.s1-contrast {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 820px;
}

.s1-contrast-col {
  flex: 1;
  padding: 28px 28px 30px;
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* "others" side — subtle transparent */
.s1-contrast-others {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* "focusflow" side — highlighted white card */
.s1-contrast-ff {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px -12px rgba(91, 77, 203, 0.35);
}

.s1-contrast-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.s1-contrast-ff .s1-contrast-label {
  color: var(--text-muted);
}

.s1-contrast-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.25;
}

.s1-contrast-ff .s1-contrast-name {
  color: var(--accent-deep);
}

/* highlighted name tag inside ff card */
.s1-ff-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--r-pill);
  padding: 5px 14px 5px 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.s1-ff-tag svg {
  flex-shrink: 0;
}

.s1-contrast-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.s1-contrast-ff .s1-contrast-desc {
  color: var(--text-secondary);
}

/* arrow divider */
.s1-contrast-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ─────────────── RESPONSIVE ────────────────────────────────────── */

/* ≤ 960px — 4-col grid → 2-col */
@media (max-width: 960px) {
  .s1-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .s1-h2 {
    font-size: 36px;
  }

  .s1-phil-h2 {
    font-size: 36px;
  }

  .s1-contrast {
    flex-direction: column;
    gap: 16px;
  }

  .s1-contrast-col {
    width: 100%;
  }

  .s1-contrast-arrow {
    transform: rotate(90deg);
  }
}

/* ≤ 640px — single column, tighter type */
@media (max-width: 640px) {
  .s1-header {
    margin-bottom: 36px;
    gap: 12px;
  }

  .s1-h2 {
    font-size: 28px;
  }

  .s1-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .s1-moment {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px;
  }

  .s1-moment-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
  }

  .s1-moment-text {
    font-size: 15px;
    align-self: center;
  }

  .s1-philosophy {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .s1-phil-h2 {
    font-size: 28px;
  }

  .s1-br { display: none; }

  .s1-phil-body {
    font-size: 16px;
  }

  .s1-phil-header {
    margin-bottom: 40px;
    gap: 14px;
  }

  .s1-contrast-col {
    padding: 22px 20px 24px;
  }

  .s1-contrast-name {
    font-size: 17px;
  }

  .s1-ff-tag {
    font-size: 16px;
  }
}

/* ≤ 390px — 最窄屏微调 */
@media (max-width: 390px) {
  .s1-h2 {
    font-size: 26px;
  }

  .s1-phil-h2 {
    font-size: 25px;
  }

  .s1-contrast-col {
    padding: 18px 16px 20px;
  }
}


/* ===================== s2 ===================== */
/* ============================================================
   Section 2: 它如何运作 + 功能一览 — 专属样式
   前缀: s2-
   复用 styles.css 中所有 CSS 变量与通用类
   ============================================================ */

/* ---------- 共用：居中标题区 ---------- */
.s2-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* ---------- HOW 区块 ---------- */
.s2-how { background: var(--bg-app); }

.s2-how-title {
  font-size: 46px;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--text-primary);
  margin: 0;
}

.s2-how-lead {
  max-width: 580px;
}

/* ---------- 步骤列表 ---------- */
.s2-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.s2-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.s2-step:last-child { border-bottom: none; }

/* 奇数：图左文右（默认顺序）*/
.s2-step--odd .s2-step-visual { order: 0; }
.s2-step--odd .s2-step-copy   { order: 1; }

/* 偶数：文左图右（grid 列顺序交换）*/
.s2-step--even .s2-step-copy   { order: 0; }
.s2-step--even .s2-step-visual { order: 1; }

/* 深色 accent band 步骤覆盖 */
.s2-step--accent {
  border-radius: 32px;
  padding: 64px 56px;
  margin: 24px -8px;
  overflow: hidden;
  border-bottom: none;
}
.s2-step--accent + .s2-step { border-top: none; }

/* 步骤视觉区 */
.s2-step-visual {
  display: flex;
  justify-content: center;
}

/* 设备框宽度 */
.s2-device {
  width: 260px;
  flex: none;
}

/* 深色 band 中的设备框（保留原阴影，减去深色背景重复）*/
.s2-device--light {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 40px 80px -28px rgba(0,0,0,0.50);
}

/* 步骤文案区 */
.s2-step-copy {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 序号 */
.s2-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  line-height: 36px;
  text-align: center;
}

.s2-num--light {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* 步骤标题 */
.s2-step-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-primary);
  margin: 0;
}

.s2-step-copy--on-dark .s2-step-title {
  color: #fff;
}

/* 步骤说明 */
.s2-step-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* 步骤标签行 */
.s2-step-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ---------- FEATURES 区块 ---------- */
.s2-features {
  background: var(--surface-alt);
  position: relative;
}

/* 区块背景装饰 */
.s2-features::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 20%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 80%, var(--energy-low-soft) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.s2-features .container { position: relative; }

.s2-feat-title {
  font-size: 42px;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
  margin: 0;
}

.s2-feat-lead {
  max-width: 520px;
}

/* ---------- Bento 网格 ---------- */
.s2-bento {
  display: grid;
  /* 3 列，可伸缩 */
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

/* 六卡统一等宽，3×2 干净铺满（2 宽+4 标准无法整除 3 列会留空格，故取消跨列） */
.s2-feat-card--wide {
  grid-column: auto;
}

/* 功能卡共同样式 */
.s2-feat-card {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: var(--surface);
}

.s2-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* 功能图标容器 */
.s2-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
}

.s2-feat-icon--orange {
  background: var(--energy-high-soft);
  color: var(--energy-high);
}

.s2-feat-icon--purple {
  background: var(--accent-soft);
  color: var(--accent);
}

.s2-feat-icon--green {
  background: var(--energy-low-soft);
  color: var(--energy-low);
}

.s2-feat-icon--yellow {
  background: var(--energy-med-soft);
  color: var(--energy-med);
}

/* 功能标题 */
.s2-feat-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

/* 功能说明 */
.s2-feat-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  flex: 1;
}

/* trait 标签行 */
.s2-feat-trait {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* 「顺应」标签 */
.s2-trait-label {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
  white-space: nowrap;
  flex: none;
}

/* 「解决」标签 */
.s2-trait-label--solve {
  background: var(--energy-high-soft);
  color: var(--energy-high);
}

/* trait 描述文字 */
.s2-trait-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   响应式
   ============================================================ */

/* 1024px 以下：步骤间距收窄 */
@media (max-width: 1024px) {
  .s2-step {
    gap: 48px;
  }

  .s2-step--accent {
    padding: 56px 40px;
  }

  .s2-how-title {
    font-size: 38px;
  }

  .s2-feat-title {
    font-size: 34px;
  }
}

/* 768px 以下：步骤堆叠，bento 变 2 列 */
@media (max-width: 768px) {
  .s2-center {
    margin-bottom: 52px;
    gap: 14px;
  }

  .s2-step {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0;
  }

  /* 窄屏全部：图在上，文在下 */
  .s2-step--odd .s2-step-visual,
  .s2-step--even .s2-step-visual { order: -1; }

  .s2-step--odd .s2-step-copy,
  .s2-step--even .s2-step-copy   { order: 0; }

  .s2-step-copy { max-width: none; }

  .s2-step--accent {
    margin: 16px 0;
    padding: 48px 28px;
    border-radius: 28px;
  }

  .s2-device { width: 220px; }

  .s2-bento {
    grid-template-columns: 1fr 1fr;
  }

  .s2-feat-card--wide {
    grid-column: auto;
  }
}

/* 480px 以下：单列，bento 也单列 */
@media (max-width: 480px) {
  .s2-how-title { font-size: 30px; }
  .s2-feat-title { font-size: 28px; }

  .s2-step-title { font-size: 22px; }

  .s2-step {
    padding: 44px 0;
    gap: 28px;
  }

  .s2-step--accent {
    padding: 40px 22px;
    border-radius: 24px;
  }

  .s2-device { width: 200px; }

  .s2-bento {
    grid-template-columns: 1fr;
  }

  .s2-feat-card--wide {
    grid-column: span 1;
  }

  .s2-feat-card {
    padding: 26px 22px;
  }

  .s2-center {
    gap: 12px;
    margin-bottom: 40px;
  }
}


/* ===================== s3 ===================== */
/* ================================================================
   S3 · 创始故事 + 定价 + 常见问题
   仅本区块特有样式；共享 tokens 来自 styles.css
   新 class 统一加前缀 s3-
   ================================================================ */

/* ─────────────── STORY ─────────────────────────────────────── */

.s3-story { padding: 100px 0; }

.s3-story-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 0;
}

.s3-story-header { max-width: 680px; }

.s3-story-h2 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 20px;
}

.s3-story-body {
  max-width: 680px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.s3-story-body p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

/* chips */
.s3-chips {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.s3-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* signature */
.s3-sig {
  margin-top: 36px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.01em;
}


/* ─────────────── PRICING ─────────────────────────────────────── */

.s3-pricing { background: var(--bg-app); }

.s3-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.s3-h2 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 18px;
}

.s3-lead {
  margin-top: 14px;
}

/* plan cards */
.s3-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.s3-plan {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* free plan accent border */
.s3-plan-free {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-card);
  position: relative;
}

.s3-plan-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.s3-plan-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.s3-plan-tag-free {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  letter-spacing: 0.01em;
}

.s3-plan-tag-pro {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

.s3-plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}

.s3-price-main {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.s3-price-coming {
  font-size: 22px;
  color: var(--text-muted);
}

.s3-price-note {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* feature list */
.s3-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 32px;
}

.s3-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.s3-features-pro li {
  color: var(--text-secondary);
}

.s3-check { flex: none; }

.s3-coming-inline {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-left: 4px;
  vertical-align: middle;
}

/* pro placeholder */
.s3-pro-placeholder {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: auto;
}

/* app store CTA override within plan */
.s3-cta-store {
  margin-top: auto;
  align-self: flex-start;
}

/* reassurance bar */
.s3-reassure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.s3-reassure span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}


/* ─────────────── FAQ ─────────────────────────────────────── */

.s3-faq { background: var(--surface); }

.s3-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--border-soft);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.s3-faq-item {
  background: var(--surface);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.s3-faq-item:hover {
  background: var(--surface-alt);
  transition: background 0.18s ease;
}

.s3-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.s3-faq-a {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* closing line */
.s3-faq-footer {
  text-align: center;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.s3-faq-footer p {
  font-size: 16px;
  color: var(--text-secondary);
}

.s3-faq-email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-deep);
  border-bottom: 1.5px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.s3-faq-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ─────────────── RESPONSIVE ─────────────────────────────────── */

@media (max-width: 760px) {
  /* story */
  .s3-story-h2 { font-size: 34px; }
  .s3-story-body p { font-size: 16px; }

  /* pricing */
  .s3-plans {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .s3-h2 { font-size: 32px; }

  /* faq */
  .s3-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  /* story —— h2 缩到 24px 留足边距，窄屏(360/375)不再裁切、超窄屏自然换行；正文留白收紧 */
  .s3-story { padding: 72px 0; }
  .s3-story-h2 { font-size: 24px; line-height: 1.3; }
  .s3-story-body { margin-top: 24px; gap: 16px; }
  .s3-story-body p { font-size: 15px; }
  .s3-chips { gap: 8px; }
  .s3-chip { font-size: 13px; padding: 8px 14px; }

  /* pricing */
  .s3-plan { padding: 28px 22px 24px; }
  .s3-price-main { font-size: 34px; }
  .s3-reassure { gap: 16px; }

  /* faq */
  .s3-faq-item { padding: 24px 22px; }
  .s3-section-header { margin-bottom: 40px; }
}
