// a-app.jsx — Project Silk · 版本 A · 电影感
// 中文版本

const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{
  "motion": "full",
  "density": "standard",
  "copperGlow": "normal",
  "chineseSignals": true,
  "showWeChatPill": true
}/*EDITMODE-END*/;

const NAV_ITEMS = [
  { label: '运作方式', href: '#how-it-works' },
  { label: '案例研究', href: '#case-study' },
  { label: '关于我们', href: '#about' },
  { label: '合作伙伴就绪度', href: '#affiliate-readiness' },
  { label: '联系我们', href: '#contact' },
];

const PHASES = [
  { num: '01', name: '诊断', verb: '看清现状。', body: '在 10 大能力域和 240+ 项基准上对您的品牌评分。找出哪里在「失血」，哪里能产生复合效应，哪里能解锁定价权。' },
  { num: '02', name: '蓝图规划', verb: '明确优先行动。', body: '优先级行动计划。投资回报率预测、依赖关系映射、按影响排序——不是观点，也不是提案 PPT。' },
  { num: '03', name: '领域执行手册', verb: '完成具体工作。', body: '我们离开后您的团队可立即运行的运营交付物。策略、内容体系、红人项目、效果衡量。' },
  { num: '04', name: '持续导航', verb: '持续改进。', body: '季度重新评分、更新路线图、随市场和业务发展持续提供的顾问服务。' },
];

const DOMAINS = [
  { n: '01', name: '品牌战略与定位', count: '25 项基准' },
  { n: '02', name: '数字与电商', count: '30 项基准' },
  { n: '03', name: '内容与创意', count: '28 项基准' },
  { n: '04', name: '社交与社群', count: '45 项基准' },
  { n: '05', name: '红人与口碑营销', count: '55 项基准' },
  { n: '06', name: '公关与传播', count: '20 项基准' },
  { n: '07', name: '零售就绪度', count: '25 项基准' },
  { n: '08', name: '包装与开箱体验', count: '22 项基准' },
  { n: '09', name: '市场研究与情报', count: '28 项基准' },
  { n: '10', name: '组织就绪度', count: '20 项基准' },
];

const PILLARS = [
  {
    label: '有据可依的方法论',
    body: '不是观点。240+ 项评分基准，对照您所在品类中西方品牌的实际做法。两位评估师、同一品牌、同一分数。',
  },
  {
    label: '一体化桥梁模式',
    body: '一支中国专业服务团队深度嵌入您的运营。一支美国顾问团队做出战略决策。一个运营层，而非两个互相听不懂的供应商。',
  },
  {
    label: '激励一致',
    body: '我们像伙伴一样为您服务，而非为了完成自身 KPI 向您推销服务的代理机构。我们的声誉就是我们的业务——把事情做对，比证明自己正确更重要。',
  },
];

// ─────────────────────────────────────────────────────────────
// Nav
// ─────────────────────────────────────────────────────────────
function Nav() {
  const [scrolled, setScrolled] = React.useState(false);
  React.useEffect(() => {
    const onScroll = () => setScrolled(window.scrollY > 24);
    onScroll();
    window.addEventListener('scroll', onScroll, { passive: true });
    return () => window.removeEventListener('scroll', onScroll);
  }, []);

  return (
    <nav style={{
      position: 'fixed', top: 0, left: 0, right: 0, zIndex: 50,
      transition: 'all .3s ease',
      background: scrolled ? 'rgba(20, 22, 30, 0.78)' : 'transparent',
      backdropFilter: scrolled ? 'blur(18px) saturate(140%)' : 'none',
      WebkitBackdropFilter: scrolled ? 'blur(18px) saturate(140%)' : 'none',
      borderBottom: scrolled ? '1px solid rgba(255,255,255,0.06)' : '1px solid transparent',
    }}>
      <div className="container" style={{
        display: 'flex', alignItems: 'center', justifyContent: 'space-between',
        padding: scrolled ? '14px 48px' : '22px 48px',
        transition: 'padding .3s ease',
      }}>
        <a href="#" style={{
          display: 'flex', alignItems: 'baseline', gap: 4,
          fontFamily: 'var(--font-heading)', fontWeight: 700, fontSize: 19,
          letterSpacing: '-0.01em',
        }}>
          <span style={{ color: 'var(--white)' }}>Project</span>
          <span style={{ color: 'var(--light-blue)' }}>Silk</span>
        </a>
        <div style={{ display: 'flex', alignItems: 'center', gap: 36 }}>
          <ul style={{
            display: 'flex', gap: 28, listStyle: 'none', margin: 0, padding: 0,
            fontSize: 14, fontWeight: 400, color: 'var(--text-secondary)',
            fontFamily: 'var(--font-zh)',
          }}>
            {NAV_ITEMS.map(it => (
              <li key={it.label}>
                <a href={it.href} style={{ transition: 'color .2s' }}
                   onMouseEnter={(e) => e.currentTarget.style.color = 'var(--white)'}
                   onMouseLeave={(e) => e.currentTarget.style.color = ''}>
                  {it.label}
                </a>
              </li>
            ))}
          </ul>
          <a href="#contact" className="btn btn-primary" style={{ padding: '10px 18px', fontSize: 14, fontFamily: 'var(--font-zh)' }}>
            预约诊断
          </a>
        </div>
      </div>
    </nav>
  );
}

// ─────────────────────────────────────────────────────────────
// Hero
// ─────────────────────────────────────────────────────────────
function Hero({ t }) {
  return (
    <section style={{
      position: 'relative',
      minHeight: '100vh',
      display: 'flex',
      alignItems: 'center',
      overflow: 'hidden',
      background: 'var(--rich-black)',
    }}>
      <HeroCanvas intensity={t.motion} />

      <div style={{
        position: 'absolute', bottom: 24, right: 32, zIndex: 3,
        fontFamily: 'var(--font-mono)', fontSize: 10, letterSpacing: '0.15em',
        textTransform: 'uppercase', color: 'rgba(255,255,255,0.32)',
        display: 'flex', alignItems: 'center', gap: 8,
      }}>
        <span style={{
          width: 6, height: 6, borderRadius: '50%',
          background: 'var(--copper-hot)',
          boxShadow: '0 0 8px var(--copper-hot)',
          animation: 'breathe 2.5s ease-in-out infinite',
        }} />
        电影感循环 · AI 视频占位
      </div>

      <div className="container" style={{ position: 'relative', zIndex: 2, paddingTop: 80 }}>
        <div style={{ maxWidth: 1040 }}>
          {t.chineseSignals && (
            <div style={{ display: 'flex', alignItems: 'center', gap: 16, marginBottom: 28 }}>
              <span className="eyebrow-zh" style={{
                fontFamily: 'var(--font-zh)', fontSize: 14,
                color: 'var(--light-blue)', letterSpacing: '0.3em',
              }}>品 牌 出 海 ，实 力 说 话</span>
              <span style={{ width: 1, height: 14, background: 'rgba(96,165,250,0.4)' }} />
              <span className="eyebrow" style={{ padding: 0 }}>Brand going overseas — let your strength speak</span>
            </div>
          )}

          <h1 style={{
            fontFamily: 'var(--font-heading), var(--font-zh)',
            fontSize: 'clamp(40px, 5.4vw, 78px)',
            lineHeight: 1.15,
            fontWeight: 700,
            marginBottom: 32,
            letterSpacing: '-0.015em',
          }}>
            中国品牌是世界级的运营者。
            <br />
            <span style={{
              color: 'var(--light-blue)',
              display: 'inline-block',
              position: 'relative',
            }}>
              我们将其打造成世界级的品牌。
            </span>
          </h1>

          <p style={{
            fontFamily: 'var(--font-zh)',
            fontSize: 'clamp(16px, 1.3vw, 20px)',
            lineHeight: 1.75,
            color: 'var(--text-secondary)',
            maxWidth: 760,
            marginBottom: 48,
            fontWeight: 400,
          }}>
            「美国市场就绪度系统」衡量西方消费者对您品牌的感知——
            并弥合您产品实力与他们愿意支付价格之间的差距。
          </p>

          <div style={{ display: 'flex', gap: 16, alignItems: 'center', flexWrap: 'wrap' }}>
            <a href="#contact" className="btn btn-primary" style={{ fontFamily: 'var(--font-zh)' }}>
              预约诊断
              <span className="arrow">→</span>
            </a>
            <a href="#how-it-works" className="btn btn-ghost" style={{ fontFamily: 'var(--font-zh)' }}>
              了解运作方式
            </a>
          </div>

          <div style={{
            marginTop: 88,
            display: 'flex', gap: 56, flexWrap: 'wrap',
            paddingTop: 28,
            borderTop: '1px solid var(--surface-border)',
          }}>
            <TrustStat n="10" label="能力域" />
            <TrustStat n="240+" label="评分基准" />
            <TrustStat n="82+" label="数据源" />
            <TrustStat n="2014" label="扎根中国" />
          </div>
        </div>
      </div>

      <div style={{
        position: 'absolute', bottom: 32, left: '50%', transform: 'translateX(-50%)',
        display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 8,
        fontFamily: 'var(--font-mono)', fontSize: 10, letterSpacing: '0.22em',
        textTransform: 'uppercase', color: 'rgba(255,255,255,0.4)',
        zIndex: 2,
      }}>
        SCROLL
        <span style={{
          width: 1, height: 36, background: 'rgba(96,165,250,0.5)',
          animation: 'pulse-line 2.5s ease-in-out infinite',
        }} />
      </div>
    </section>
  );
}

function TrustStat({ n, label }) {
  return (
    <div>
      <div style={{
        fontFamily: 'var(--font-heading)',
        fontSize: 28, fontWeight: 700,
        color: 'var(--white)',
        letterSpacing: '-0.02em',
        lineHeight: 1,
        marginBottom: 6,
      }}>{n}</div>
      <div style={{
        fontFamily: 'var(--font-zh)',
        fontSize: 12, letterSpacing: '0.04em',
        color: 'var(--text-tertiary)',
      }}>{label}</div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// Problem
// ─────────────────────────────────────────────────────────────
function Problem() {
  return (
    <section className="section section--black" id="problem" style={{ position: 'relative' }}>
      <div className="glow-orb glow-copper" style={{
        width: 600, height: 600, right: -200, top: '40%',
        opacity: 0.55,
      }} />

      <div className="container" style={{ position: 'relative', zIndex: 1 }}>
        <div className="eyebrow" style={{ marginBottom: 32 }}>定价权差距</div>

        <h2 style={{
          fontFamily: 'var(--font-heading), var(--font-zh)',
          fontSize: 'clamp(32px, 4.2vw, 60px)',
          lineHeight: 1.2,
          maxWidth: 1100,
          marginBottom: 56,
          letterSpacing: '-0.01em',
        }}>
          您的产品可与世界顶尖竞争。
          <br />
          <span style={{ color: 'var(--text-secondary)' }}>但您的价格却不能。</span>
        </h2>

        <div style={{
          display: 'grid',
          gridTemplateColumns: '1.05fr 0.95fr',
          gap: 96,
          alignItems: 'start',
        }}>
          <div style={{ fontFamily: 'var(--font-zh)' }}>
            <p style={{ fontSize: 18, lineHeight: 1.85, color: 'var(--white)', marginBottom: 24 }}>
              中国制造商在美国市场销售同等——甚至更优——的产品时，
              <strong style={{ color: 'var(--light-blue)' }}>比西方竞争对手少赚 30–60%</strong>。
            </p>
            <p style={{ fontSize: 16, lineHeight: 1.85, color: 'var(--text-secondary)', marginBottom: 24 }}>
              差距不在质量。不在物流。而在其他所有方面：
              品牌认知、内容策略、红人营销、零售定位，
              以及西方品牌数十年积累的数十项能力。
            </p>
            <p style={{ fontSize: 16, lineHeight: 1.85, color: 'var(--text-secondary)' }}>
              这一差距是可衡量的，是具体的，并且是可以弥补的。
            </p>
          </div>

          <PricingGapVisual />
        </div>
      </div>
    </section>
  );
}

function PricingGapVisual() {
  return (
    <div style={{
      position: 'relative',
      padding: '36px 32px',
      border: '1px solid var(--surface-border)',
      borderRadius: 6,
      background: 'linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0))',
    }}>
      <div style={{
        position: 'absolute', top: 16, right: 20,
        fontFamily: 'var(--font-mono)', fontSize: 10, letterSpacing: '0.18em',
        textTransform: 'uppercase', color: 'var(--text-tertiary)',
      }}>
        示意 · 同品类 SKU
      </div>

      <div style={{ marginTop: 20 }}>
        <BarRow label="中国品牌 · 平均货架价" pct={42} color="var(--light-blue)" amount="$24" />
        <BarRow label="西方竞品 · 平均货架价" pct={100} color="var(--white)" amount="$58" highlight />
      </div>

      <div style={{
        marginTop: 28,
        paddingTop: 20,
        borderTop: '1px dashed var(--surface-border-strong)',
        display: 'flex', alignItems: 'center', gap: 12,
      }}>
        <span style={{
          fontFamily: 'var(--font-heading)',
          fontSize: 40, fontWeight: 700, color: 'var(--copper-hot)',
          letterSpacing: '-0.02em', lineHeight: 1,
        }}>
          –58%
        </span>
        <span style={{ fontSize: 14, color: 'var(--text-secondary)', lineHeight: 1.5, fontFamily: 'var(--font-zh)' }}>
          每单位定价权<br />
          未被兑现
        </span>
      </div>
    </div>
  );
}

function BarRow({ label, pct, color, amount, highlight }) {
  return (
    <div style={{ marginBottom: 22 }}>
      <div style={{
        display: 'flex', justifyContent: 'space-between',
        fontSize: 13, marginBottom: 8,
        color: highlight ? 'var(--white)' : 'var(--text-secondary)',
        fontFamily: 'var(--font-zh)',
      }}>
        <span>{label}</span>
        <span style={{ fontFamily: 'var(--font-mono)', color: highlight ? 'var(--white)' : 'var(--text-secondary)' }}>{amount}</span>
      </div>
      <div style={{ height: 8, background: 'rgba(255,255,255,0.04)', borderRadius: 4, overflow: 'hidden' }}>
        <div style={{
          width: `${pct}%`,
          height: '100%',
          background: highlight
            ? 'linear-gradient(90deg, var(--white) 0%, var(--light-blue) 100%)'
            : color,
          opacity: highlight ? 1 : 0.6,
          borderRadius: 4,
          transition: 'width 1s ease',
        }} />
      </div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// OS / Methodology
// ─────────────────────────────────────────────────────────────
function OSTeaser() {
  return (
    <section className="section section--navy" id="how-it-works" style={{ position: 'relative', overflow: 'hidden' }}>
      <div className="glow-orb glow-blue" style={{ width: 700, height: 700, left: -300, top: '10%', opacity: 0.45 }} />

      <div className="container" style={{ position: 'relative', zIndex: 1 }}>
        <div style={{
          display: 'grid', gridTemplateColumns: '1fr 1fr',
          gap: 56, alignItems: 'end',
          marginBottom: 80,
        }}>
          <div>
            <div className="eyebrow" style={{ marginBottom: 24 }}>运作方式</div>
            <h2 style={{
              fontFamily: 'var(--font-heading), var(--font-zh)',
              fontSize: 'clamp(30px, 3.6vw, 52px)',
              lineHeight: 1.2,
              marginBottom: 24,
              letterSpacing: '-0.01em',
            }}>
              <span style={{ color: 'var(--light-blue)' }}>美国市场就绪度系统。</span>
            </h2>
            <p style={{ fontFamily: 'var(--font-zh)', fontSize: 17, lineHeight: 1.8, color: 'var(--text-secondary)', maxWidth: 560 }}>
              一套结构化方法论，用于衡量、对标并弥合那些导致您品牌
              在美国市场损失定价权的具体能力差距。
            </p>
          </div>
          <div style={{ paddingBottom: 8 }}>
            <a href="#how-it-works" className="btn btn-ghost" style={{ fontFamily: 'var(--font-zh)' }}>
              深入方法论
              <span className="arrow">→</span>
            </a>
          </div>
        </div>

        <div style={{
          display: 'grid',
          gridTemplateColumns: 'repeat(4, 1fr)',
          gap: 24,
          marginBottom: 96,
          position: 'relative',
        }}>
          <div style={{
            position: 'absolute',
            top: 26, left: '6%', right: '6%',
            height: 1,
            background: 'linear-gradient(90deg, rgba(96,165,250,0.4) 0%, rgba(96,165,250,0.2) 100%)',
            overflow: 'hidden',
          }}>
            <div className="traveler-dot" style={{
              position: 'absolute', top: -2, left: 0,
              width: 60, height: 5, borderRadius: 4,
              background: 'linear-gradient(90deg, transparent, var(--light-blue), transparent)',
              filter: 'blur(2px)',
              animation: 'traveler 7s linear infinite',
            }} />
          </div>

          {PHASES.map((p, i) => (
            <PhaseCard key={p.num} {...p} delay={i * 0.3} />
          ))}
        </div>

        <div>
          <div style={{
            display: 'flex', alignItems: 'baseline', justifyContent: 'space-between',
            marginBottom: 28, flexWrap: 'wrap', gap: 16,
          }}>
            <h3 style={{ fontFamily: 'var(--font-heading), var(--font-zh)', fontSize: 24, fontWeight: 600, letterSpacing: '-0.005em' }}>
              映射至 <span style={{ color: 'var(--light-blue)' }}>10 大能力域</span>。
            </h3>
            <span style={{ fontFamily: 'var(--font-mono)', fontSize: 12, color: 'var(--text-secondary)', letterSpacing: '0.1em' }}>
              298 项评分基准 · 5 级成熟度模型
            </span>
          </div>

          <div style={{
            display: 'grid',
            gridTemplateColumns: 'repeat(5, 1fr)',
            gap: 1,
            background: 'var(--surface-border)',
            border: '1px solid var(--surface-border)',
            borderRadius: 6,
            overflow: 'hidden',
          }}>
            {DOMAINS.map(d => <DomainCell key={d.n} {...d} />)}
          </div>
        </div>
      </div>
    </section>
  );
}

function PhaseCard({ num, name, verb, body }) {
  return (
    <div style={{ position: 'relative', paddingTop: 60 }}>
      <div style={{
        position: 'absolute', top: 12, left: 0,
        width: 32, height: 32,
        borderRadius: '50%',
        background: 'var(--deep-navy-2)',
        border: '1px solid var(--light-blue)',
        display: 'flex', alignItems: 'center', justifyContent: 'center',
        fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--light-blue)',
        boxShadow: '0 0 0 6px var(--deep-navy-2), 0 0 24px var(--glow-blue)',
      }}>{num}</div>

      <h4 style={{ fontFamily: 'var(--font-heading), var(--font-zh)', fontSize: 21, fontWeight: 600, marginBottom: 6, letterSpacing: '-0.005em' }}>{name}</h4>
      <div style={{ fontFamily: 'var(--font-zh)', fontSize: 14, color: 'var(--light-blue)', marginBottom: 14, fontWeight: 500 }}>{verb}</div>
      <p style={{ fontFamily: 'var(--font-zh)', fontSize: 14, lineHeight: 1.8, color: 'var(--text-secondary)', margin: 0 }}>
        {body}
      </p>
    </div>
  );
}

function DomainCell({ n, name, count }) {
  return (
    <div style={{
      background: 'var(--deep-navy-2)',
      padding: '28px 22px',
      display: 'flex', flexDirection: 'column', gap: 6,
      minHeight: 140,
      transition: 'background .3s ease',
      cursor: 'default',
    }}
      onMouseEnter={(e) => e.currentTarget.style.background = '#1A2F4F'}
      onMouseLeave={(e) => e.currentTarget.style.background = ''}
    >
      <div style={{ fontFamily: 'var(--font-mono)', fontSize: 11, color: 'var(--light-blue)', letterSpacing: '0.12em' }}>{n}</div>
      <div style={{ fontFamily: 'var(--font-zh)', fontSize: 14, lineHeight: 1.5, fontWeight: 500, color: 'var(--white)', flex: 1 }}>{name}</div>
      <div style={{ fontSize: 11, fontFamily: 'var(--font-mono)', color: 'var(--text-tertiary)', letterSpacing: '0.06em' }}>{count}</div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// Proof / Case Study
// ─────────────────────────────────────────────────────────────
function ProofSnapshot() {
  return (
    <section className="section section--black" id="case-study">
      <div className="container">
        <div style={{
          display: 'grid', gridTemplateColumns: '1.05fr 0.95fr',
          gap: 80, alignItems: 'center',
        }}>
          <div>
            <div className="eyebrow" style={{ marginBottom: 24 }}>近期合作</div>
            <h2 style={{
              fontFamily: 'var(--font-heading), var(--font-zh)',
              fontSize: 'clamp(28px, 3.2vw, 44px)',
              lineHeight: 1.2,
              marginBottom: 28,
              letterSpacing: '-0.01em',
            }}>
              一家领先的中国婴童用品品牌。
              <br />
              <span style={{ color: 'var(--text-secondary)' }}>已诊断。已蓝图。已预测。</span>
            </h2>
            <p style={{ fontFamily: 'var(--font-zh)', fontSize: 16, color: 'var(--text-secondary)', lineHeight: 1.85, marginBottom: 32, maxWidth: 560 }}>
              亚马逊销量强劲。无品牌溢价。我们诊断了五大能力域的差距，
              制定了分三波干预的阶段性蓝图，并规划了从第一年投资回报率到第三年的发展路径。
            </p>
            <ul style={{
              listStyle: 'none', padding: 0, margin: '0 0 36px 0',
              display: 'flex', flexDirection: 'column', gap: 14,
              fontSize: 14.5, color: 'var(--white)',
              fontFamily: 'var(--font-zh)',
              lineHeight: 1.7,
            }}>
              {[
                '在品牌、内容、红人、零售、组织五大能力域进行成熟度评分',
                '按干预措施进行投资回报率预测，按现金流排序',
                '在诊断第 2 周即识别出快速见效机会',
                '完整匿名白皮书备索',
              ].map((b, i) => (
                <li key={i} style={{ display: 'flex', gap: 14, alignItems: 'flex-start' }}>
                  <span style={{
                    marginTop: 9, width: 6, height: 6, borderRadius: '50%',
                    background: 'var(--light-blue)', flexShrink: 0,
                  }} />
                  <span>{b}</span>
                </li>
              ))}
            </ul>
            <div style={{ display: 'flex', gap: 14, flexWrap: 'wrap' }}>
              <a href="#case-study" className="btn btn-ghost" style={{ fontFamily: 'var(--font-zh)' }}>
                阅读案例研究
                <span className="arrow">→</span>
              </a>
              <a href="#case-study" className="btn btn-ghost" style={{ borderColor: 'transparent', color: 'var(--text-secondary)', fontFamily: 'var(--font-zh)' }}>
                下载 PDF
              </a>
            </div>
          </div>

          <div>
            <ROIVisual />
          </div>
        </div>
      </div>
    </section>
  );
}

function ROIVisual() {
  return (
    <div style={{
      position: 'relative',
      padding: '40px 36px',
      border: '1px solid var(--surface-border-strong)',
      borderRadius: 8,
      background: 'linear-gradient(180deg, rgba(96,165,250,0.04) 0%, rgba(255,255,255,0) 100%)',
      overflow: 'hidden',
    }}>
      <div className="glow-orb glow-blue" style={{
        width: 320, height: 320, top: -100, right: -100, opacity: 0.5,
      }} />

      <div style={{ position: 'relative', zIndex: 1 }}>
        <div style={{
          fontFamily: 'var(--font-mono)', fontSize: 11, letterSpacing: '0.18em',
          textTransform: 'uppercase', color: 'var(--text-tertiary)', marginBottom: 24,
        }}>
          预期投资回报率
        </div>

        <div style={{ display: 'flex', alignItems: 'baseline', gap: 36, marginBottom: 32 }}>
          <div>
            <div style={{
              fontFamily: 'var(--font-heading)', fontSize: 72, fontWeight: 700,
              color: 'var(--white)', lineHeight: 1, letterSpacing: '-0.04em',
            }}>
              3.19<span style={{ fontSize: 36, color: 'var(--light-blue)' }}>×</span>
            </div>
            <div style={{ fontFamily: 'var(--font-zh)', fontSize: 13, color: 'var(--text-secondary)', marginTop: 8 }}>第一年 ROI</div>
          </div>
          <div style={{ width: 1, height: 80, background: 'var(--surface-border)' }} />
          <div>
            <div style={{
              fontFamily: 'var(--font-heading)', fontSize: 72, fontWeight: 700,
              color: 'var(--copper-hot)', lineHeight: 1, letterSpacing: '-0.04em',
            }}>
              8.0<span style={{ fontSize: 36, opacity: 0.8 }}>×+</span>
            </div>
            <div style={{ fontFamily: 'var(--font-zh)', fontSize: 13, color: 'var(--text-secondary)', marginTop: 8 }}>第三年预期</div>
          </div>
        </div>

        <div style={{ display: 'flex', alignItems: 'flex-end', gap: 8, height: 64, marginBottom: 14 }}>
          {[18, 28, 42, 55, 68, 78, 84, 90, 100].map((h, i) => (
            <div key={i} style={{
              flex: 1, height: `${h}%`,
              background: `linear-gradient(180deg, var(--light-blue) 0%, rgba(96,165,250,0.25) 100%)`,
              opacity: 0.3 + (h / 100) * 0.7,
              borderRadius: '2px 2px 0 0',
              transition: 'opacity .3s ease',
            }} />
          ))}
        </div>
        <div style={{
          display: 'flex', justifyContent: 'space-between',
          fontFamily: 'var(--font-mono)', fontSize: 10, color: 'var(--text-tertiary)',
          letterSpacing: '0.1em',
        }}>
          <span>Q1 Y1</span>
          <span>Q4 Y3</span>
        </div>

        <div style={{
          marginTop: 28, paddingTop: 24,
          borderTop: '1px dashed var(--surface-border)',
          fontFamily: 'var(--font-zh)',
          fontSize: 13, color: 'var(--text-secondary)', lineHeight: 1.7,
        }}>
          投资回报率源于跨 5 大能力域的协同干预——
          而非单一渠道提升。
        </div>
      </div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// Silk Difference
// ─────────────────────────────────────────────────────────────
function SilkDifference() {
  return (
    <section className="section section--navy" id="about" style={{ position: 'relative', overflow: 'hidden' }}>
      <div className="glow-orb glow-copper" style={{ width: 500, height: 500, right: '20%', bottom: -150, opacity: 0.4 }} />

      <div className="container" style={{ position: 'relative', zIndex: 1 }}>
        <div style={{ maxWidth: 920, marginBottom: 72 }}>
          <div className="eyebrow" style={{ marginBottom: 24 }}>Silk 的独特之处</div>
          <h2 style={{
            fontFamily: 'var(--font-heading), var(--font-zh)',
            fontSize: 'clamp(28px, 3.4vw, 46px)',
            lineHeight: 1.2,
            marginBottom: 28,
            letterSpacing: '-0.01em',
          }}>
            我们不是一家代理机构。
            <br />
            <span style={{ color: 'var(--light-blue)' }}>我们是围绕您商业现实构建的顾问服务。</span>
          </h2>
          <p style={{ fontFamily: 'var(--font-zh)', fontSize: 17, lineHeight: 1.8, color: 'var(--text-secondary)' }}>
            代理机构单方面为您工作。咨询顾问给出建议后便消失。
            Silk 是让跨境两端作为同一团队协同运作的「运营层」——
            我们采用的方法论衡量的是基于评分基准的差距，而非主观意见。
          </p>
        </div>

        <div style={{
          display: 'grid',
          gridTemplateColumns: 'repeat(3, 1fr)',
          gap: 32,
        }}>
          {PILLARS.map((p, i) => (
            <PillarCard key={i} {...p} index={i + 1} />
          ))}
        </div>

        <div style={{
          marginTop: 80,
          paddingTop: 48,
          borderTop: '1px solid var(--surface-border)',
          display: 'grid',
          gridTemplateColumns: '0.4fr 1fr',
          gap: 48,
          alignItems: 'center',
        }}>
          <div style={{
            width: '100%',
            aspectRatio: '1/1',
            maxWidth: 200,
            borderRadius: '50%',
            background: 'linear-gradient(135deg, rgba(96,165,250,0.15) 0%, rgba(180,83,9,0.1) 100%)',
            border: '1px solid var(--surface-border-strong)',
            display: 'flex', alignItems: 'center', justifyContent: 'center',
            fontFamily: 'var(--font-mono)', fontSize: 10, letterSpacing: '0.18em',
            color: 'var(--text-tertiary)', textAlign: 'center',
            textTransform: 'uppercase',
          }}>
            Tim Jordan<br />photo
          </div>
          <div>
            <p style={{ fontSize: 21, lineHeight: 1.65, color: 'var(--white)', fontFamily: 'var(--font-heading), var(--font-zh)', fontWeight: 500, marginBottom: 16, letterSpacing: '-0.005em' }}>
              「我们花了十年时间学习什么真正有效。
              我们打造的这套系统，正是 2014 年时我们希望有人能交给我们的东西。」
            </p>
            <div style={{ fontFamily: 'var(--font-zh)', fontSize: 13, color: 'var(--text-secondary)' }}>
              Tim Jordan · 创始人 · 自 2014 年起常驻中国
            </div>
            <a href="#about" style={{
              display: 'inline-flex', alignItems: 'center', gap: 8,
              marginTop: 20, fontFamily: 'var(--font-zh)', fontSize: 14, color: 'var(--light-blue)',
            }}>
              关于团队、顾问与合作伙伴
              <span className="arrow">→</span>
            </a>
          </div>
        </div>
      </div>
    </section>
  );
}

function PillarCard({ label, body, index }) {
  return (
    <div className="card" style={{ minHeight: 260 }}>
      <div style={{
        fontFamily: 'var(--font-mono)', fontSize: 11, letterSpacing: '0.18em',
        color: 'var(--copper-hot)', marginBottom: 20,
      }}>
        0{index}
      </div>
      <h4 style={{
        fontFamily: 'var(--font-heading), var(--font-zh)',
        fontSize: 21, fontWeight: 600, marginBottom: 14, lineHeight: 1.3,
        letterSpacing: '-0.005em',
      }}>{label}</h4>
      <p style={{ fontFamily: 'var(--font-zh)', fontSize: 14.5, lineHeight: 1.85, color: 'var(--text-secondary)', margin: 0 }}>{body}</p>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// CTA Band
// ─────────────────────────────────────────────────────────────
function CTABand() {
  return (
    <section className="section section--black" id="contact" style={{ paddingBlock: 'min(160px, 14vw)', position: 'relative', overflow: 'hidden' }}>
      <div className="glow-orb glow-copper" style={{
        width: 800, height: 800,
        left: '50%', top: '50%', transform: 'translate(-50%, -50%)',
        opacity: 0.35,
      }} />

      <div className="container" style={{ position: 'relative', zIndex: 1 }}>
        <div style={{ textAlign: 'center', maxWidth: 920, marginInline: 'auto' }}>
          <div className="eyebrow" style={{ marginBottom: 28, justifyContent: 'center' }}>两种开始方式</div>

          <h2 style={{
            fontFamily: 'var(--font-heading), var(--font-zh)',
            fontSize: 'clamp(32px, 4.4vw, 58px)',
            lineHeight: 1.2,
            marginBottom: 36,
            letterSpacing: '-0.01em',
          }}>
            在做出任何承诺之前——
            <br />
            <span style={{ color: 'var(--light-blue)' }}>先看清您品牌的现状。</span>
          </h2>
        </div>

        <div style={{
          display: 'grid',
          gridTemplateColumns: 'repeat(2, 1fr)',
          gap: 24,
          maxWidth: 1080, marginInline: 'auto', marginTop: 56,
        }}>
          <CTAOption
            label="预约诊断"
            sub="一次关于您品牌、您的差距以及本系统将揭示内容的直接对话。"
            note="适合：已准备好合作的品牌"
            primary
            href="#contact"
            cta="开始对话"
          />
          <CTAOption
            label="合作伙伴就绪度检查"
            sub="提交 10 个字段。获得一份结构化的就绪度快照。无需承诺，完全匿名。"
            note="适合：尚不确定的品牌"
            href="#affiliate-readiness"
            cta="开始检查"
          />
        </div>
      </div>
    </section>
  );
}

function CTAOption({ label, sub, note, primary, href, cta }) {
  return (
    <a href={href} className="card" style={{
      padding: '36px 32px',
      display: 'flex', flexDirection: 'column', gap: 16,
      cursor: 'pointer',
      background: primary
        ? 'linear-gradient(180deg, rgba(180,83,9,0.10) 0%, rgba(180,83,9,0.02) 100%)'
        : undefined,
      borderColor: primary ? 'rgba(217, 119, 6, 0.4)' : undefined,
    }}>
      <div style={{
        fontFamily: 'var(--font-mono)', fontSize: 11, letterSpacing: '0.14em',
        color: primary ? 'var(--copper-hot)' : 'var(--light-blue)',
      }}>
        {note}
      </div>
      <h3 style={{ fontFamily: 'var(--font-heading), var(--font-zh)', fontSize: 26, fontWeight: 600, letterSpacing: '-0.005em', lineHeight: 1.3 }}>
        {label}
      </h3>
      <p style={{ fontFamily: 'var(--font-zh)', fontSize: 14.5, color: 'var(--text-secondary)', lineHeight: 1.8, margin: 0 }}>{sub}</p>
      <div style={{
        marginTop: 'auto', paddingTop: 16,
        display: 'inline-flex', alignItems: 'center', gap: 10,
        color: primary ? 'var(--copper-hot)' : 'var(--light-blue)',
        fontFamily: 'var(--font-zh)', fontSize: 14, fontWeight: 500,
      }}>
        {cta}
        <span className="arrow">→</span>
      </div>
    </a>
  );
}

// ─────────────────────────────────────────────────────────────
// Footer
// ─────────────────────────────────────────────────────────────
function Footer({ t }) {
  return (
    <footer style={{
      background: 'var(--rich-black)',
      borderTop: '1px solid var(--surface-border)',
      paddingBlock: 80,
    }}>
      <div className="container">
        <div style={{
          display: 'grid',
          gridTemplateColumns: '1.5fr 1fr 1fr 1.2fr',
          gap: 56,
          marginBottom: 64,
        }}>
          <div>
            <a href="#" style={{
              display: 'inline-flex', alignItems: 'baseline', gap: 4,
              fontFamily: 'var(--font-heading)', fontWeight: 700, fontSize: 24,
              marginBottom: 18,
            }}>
              <span style={{ color: 'var(--white)' }}>Project</span>
              <span style={{ color: 'var(--light-blue)' }}>Silk</span>
            </a>
            <p style={{ fontFamily: 'var(--font-zh)', fontSize: 14, color: 'var(--text-secondary)', lineHeight: 1.8, maxWidth: 360, margin: 0 }}>
              为中国品牌打造的美国市场就绪度系统。
              为中国企业构建的西式战略。
            </p>
            {t.chineseSignals && (
              <div style={{ marginTop: 18, fontFamily: 'var(--font-zh)', fontSize: 14, color: 'var(--light-blue)', letterSpacing: '0.18em' }}>
                品牌出海，实力说话
              </div>
            )}
          </div>

          <FooterCol title="网站" links={[
            '运作方式',
            '案例研究',
            '关于我们',
            '合作伙伴就绪度',
            '联系我们',
          ]} />

          <FooterCol title="联系我们" links={[
            'hello@project-silk.com',
            'LinkedIn',
            'Foundry Studio',
          ]} />

          <WeChatBlock />
        </div>

        <div style={{
          paddingTop: 32,
          borderTop: '1px solid var(--surface-border)',
          display: 'flex', justifyContent: 'space-between', flexWrap: 'wrap', gap: 16,
          fontSize: 12, color: 'var(--text-tertiary)',
          fontFamily: 'var(--font-zh)',
        }}>
          <div>© 2026 Project Silk · A Foundry Studio venture</div>
          <div style={{ display: 'flex', gap: 24 }}>
            <a href="#">隐私政策</a>
            <a href="#">服务条款</a>
          </div>
        </div>
      </div>
    </footer>
  );
}

function FooterCol({ title, links }) {
  return (
    <div>
      <div style={{
        fontFamily: 'var(--font-mono)', fontSize: 11, letterSpacing: '0.18em',
        color: 'var(--text-tertiary)', textTransform: 'uppercase', marginBottom: 18,
      }}>{title}</div>
      <ul style={{ listStyle: 'none', padding: 0, margin: 0, display: 'flex', flexDirection: 'column', gap: 10 }}>
        {links.map((l) => (
          <li key={l}>
            <a href="#" style={{ fontFamily: 'var(--font-zh)', fontSize: 14, color: 'var(--text-secondary)', transition: 'color .2s' }}
               onMouseEnter={(e) => e.currentTarget.style.color = 'var(--white)'}
               onMouseLeave={(e) => e.currentTarget.style.color = ''}>
              {l}
            </a>
          </li>
        ))}
      </ul>
    </div>
  );
}

function WeChatBlock() {
  return (
    <div>
      <div style={{
        fontFamily: 'var(--font-mono)', fontSize: 11, letterSpacing: '0.18em',
        color: 'var(--text-tertiary)', textTransform: 'uppercase', marginBottom: 18,
      }}>
        企业微信 · WeCom
      </div>
      <div style={{
        display: 'flex', gap: 16, alignItems: 'flex-start',
      }}>
        <div style={{
          width: 86, height: 86,
          background: 'var(--deep-navy-2)',
          border: '1px solid var(--surface-border-strong)',
          borderRadius: 4,
          display: 'grid',
          gridTemplateColumns: 'repeat(8, 1fr)',
          gridTemplateRows: 'repeat(8, 1fr)',
          padding: 6,
          gap: 1.5,
        }}>
          {Array.from({ length: 64 }).map((_, i) => (
            <div key={i} style={{
              background: (i * 17 + Math.floor(i / 8) * 3) % 4 === 0 ? 'var(--white)' : 'transparent',
              borderRadius: 1,
            }} />
          ))}
        </div>
        <div>
          <div style={{ fontFamily: 'var(--font-zh)', fontSize: 13, color: 'var(--white)', marginBottom: 4 }}>
            Project Silk · 项目丝路
          </div>
          <div style={{ fontFamily: 'var(--font-zh)', fontSize: 12, color: 'var(--text-secondary)', lineHeight: 1.6 }}>
            扫码添加我们的<br />官方企业微信账号
          </div>
        </div>
      </div>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// WeChat Pill
// ─────────────────────────────────────────────────────────────
function WeChatPill({ show }) {
  const [open, setOpen] = React.useState(false);
  if (!show) return null;
  return (
    <div style={{
      position: 'fixed', left: 24, bottom: 24, zIndex: 40,
    }}>
      {open && (
        <div style={{
          position: 'absolute', bottom: 60, left: 0,
          background: 'rgba(20, 22, 30, 0.92)',
          border: '1px solid var(--surface-border-strong)',
          backdropFilter: 'blur(20px) saturate(140%)',
          WebkitBackdropFilter: 'blur(20px) saturate(140%)',
          borderRadius: 8,
          padding: 16,
          width: 220,
          boxShadow: '0 24px 60px rgba(0,0,0,0.6)',
        }}>
          <div style={{ fontFamily: 'var(--font-mono)', fontSize: 10, letterSpacing: '0.18em', color: 'var(--text-tertiary)', textTransform: 'uppercase', marginBottom: 12 }}>
            企业微信 · WeCom
          </div>
          <div style={{
            width: '100%', aspectRatio: '1/1',
            background: 'var(--deep-navy-2)',
            border: '1px solid var(--surface-border-strong)',
            borderRadius: 4,
            display: 'grid',
            gridTemplateColumns: 'repeat(10, 1fr)',
            gridTemplateRows: 'repeat(10, 1fr)',
            padding: 8, gap: 1.5,
            marginBottom: 10,
          }}>
            {Array.from({ length: 100 }).map((_, i) => (
              <div key={i} style={{
                background: (i * 13 + Math.floor(i / 10) * 5) % 4 === 0 ? 'var(--white)' : 'transparent',
                borderRadius: 1,
              }} />
            ))}
          </div>
          <div style={{ fontFamily: 'var(--font-zh)', fontSize: 12, color: 'var(--text-secondary)', lineHeight: 1.6 }}>
            扫码添加 Project Silk<br />官方企业微信账号
          </div>
        </div>
      )}
      <button onClick={() => setOpen(o => !o)} style={{
        background: open ? 'var(--light-blue)' : 'rgba(20, 22, 30, 0.92)',
        color: open ? 'var(--rich-black)' : 'var(--white)',
        border: '1px solid ' + (open ? 'var(--light-blue)' : 'var(--surface-border-strong)'),
        borderRadius: 999,
        padding: '12px 18px',
        display: 'flex', alignItems: 'center', gap: 10,
        fontFamily: 'var(--font-zh)', fontSize: 13, fontWeight: 500,
        cursor: 'pointer',
        backdropFilter: 'blur(18px) saturate(140%)',
        WebkitBackdropFilter: 'blur(18px) saturate(140%)',
        boxShadow: open ? '0 8px 32px var(--glow-blue-high)' : '0 8px 24px rgba(0,0,0,0.4)',
        transition: 'all .25s ease',
      }}>
        <span style={{
          width: 8, height: 8, borderRadius: '50%',
          background: open ? 'var(--rich-black)' : 'var(--copper-hot)',
          boxShadow: open ? 'none' : '0 0 8px var(--copper-hot)',
        }} />
        微信 · WeChat
      </button>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// App
// ─────────────────────────────────────────────────────────────
function App() {
  const [t, setTweak] = useTweaks(TWEAK_DEFAULTS);

  return (
    <div data-motion={t.motion} data-density={t.density} data-copper={t.copperGlow} style={{ fontFamily: 'var(--font-zh)' }}>
      <Nav />
      <Hero t={t} />
      <Problem />
      <OSTeaser />
      <ProofSnapshot />
      <SilkDifference />
      <CTABand />
      <Footer t={t} />
      <WeChatPill show={t.showWeChatPill} />

      <TweaksPanel>
        <TweakSection label="Motion" />
        <TweakRadio label="Hero ambient"
          value={t.motion}
          options={['off', 'subtle', 'full']}
          onChange={(v) => setTweak('motion', v)} />

        <TweakSection label="Density" />
        <TweakRadio label="Section rhythm"
          value={t.density}
          options={['compact', 'standard', 'spacious']}
          onChange={(v) => setTweak('density', v)} />

        <TweakSection label="Accent" />
        <TweakRadio label="Copper glow"
          value={t.copperGlow}
          options={['low', 'normal', 'high']}
          onChange={(v) => setTweak('copperGlow', v)} />

        <TweakSection label="Localization" />
        <TweakToggle label="Show Chinese signals"
          value={t.chineseSignals}
          onChange={(v) => setTweak('chineseSignals', v)} />
        <TweakToggle label="WeChat pill (bottom-left)"
          value={t.showWeChatPill}
          onChange={(v) => setTweak('showWeChatPill', v)} />
      </TweaksPanel>
    </div>
  );
}

ReactDOM.createRoot(document.getElementById('root')).render(<App />);
