feat(brand): 首页影像版式与名+号字标上线
- 首页按咨询机构影像版式重排,保留原站文案与“洞察→行业→能力”段序 - 导航/页脚/品牌页换用上下锁定字标,alt 维持法定主体名 - 修复 reduce 下 PageTransition 祖先 opacity 停留导致的白屏 - 4 浏览器 × 9 宽度多端复核,axe 0 violation - 视觉基线 106 张更新并只读复跑 125/125
This commit is contained in:
1 parent
f6e750c318
commit
acb6b67357
153 files changed
+1313
-178
No files matched your search
@@ -1,9 +1,9 @@
|
||||
'use client';
|
||||
|
||||
import Image from 'next/image';
|
||||
import { motion } from 'framer-motion';
|
||||
import { ScrollReveal } from '@/components/ui/scroll-reveal';
|
||||
import { CTAButton } from '@/components/ui/cta-button';
|
||||
import { BrandCalligraphyName } from '@/components/ui/brand-calligraphy-name';
|
||||
import {
|
||||
Target,
|
||||
Eye,
|
||||
@@ -93,10 +93,29 @@ export default function BrandContent() {
|
||||
transition={{ duration: 0.28, delay: 0.2, ease: EASE_OUT }}
|
||||
className="text-4xl sm:text-5xl md:text-6xl lg:text-7xl text-ink leading-[1.05] tracking-tight mb-8 sm:mb-10"
|
||||
>
|
||||
<span className="sr-only">睿新致遠</span>
|
||||
<BrandCalligraphyName
|
||||
className="block h-[0.95em] w-auto text-ink"
|
||||
ariaHidden
|
||||
<span className="sr-only">睿新致遠 NOVALON</span>
|
||||
{/* 2026-10-20 品牌页同步换用完整上下锁定(名 + 号),
|
||||
与导航/页脚同一枚资产,避免「网页上的新 logo 只有中文」。
|
||||
role="presentation" 让标题的文本仍由 sr-only 承担,图片不重复朗读。 */}
|
||||
<Image
|
||||
src="/logo.svg"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
role="presentation"
|
||||
width={1024}
|
||||
height={480}
|
||||
priority
|
||||
className="logo-on-light block h-[1.2em] w-auto"
|
||||
/>
|
||||
<Image
|
||||
src="/logo-white.svg"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
role="presentation"
|
||||
width={1024}
|
||||
height={480}
|
||||
priority
|
||||
className="logo-on-dark block h-[1.2em] w-auto"
|
||||
/>
|
||||
<br />
|
||||
<span className="text-brand-ink font-black">以技术驱动业务增长</span>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Bain :洞察报告轮播 hero → 品牌宣言 → 「Bold steps forward.」客户成果(标题即数字)
|
||||
* → SEE ALL CLIENT RESULTS → 视频 → Our Latest Insights(带分页器)
|
||||
* → What can we help you achieve? → 招聘带
|
||||
* Porsche:video hero → In Focus: News & Trends → Our Industry Expertise(行业网格)
|
||||
* 对标站点:video hero → 编辑内容(In Focus)→ 行业网格
|
||||
* → What Moves Our Clients(4 实践 accordion)→ Empowering Our Clients(8 个案例)
|
||||
* → Spotlight on AI → 招聘带 → Ready for Change?
|
||||
* 收敛律:**以编辑内容或客户成果开场;行业成网格;能力做成 accordion;
|
||||
@@ -26,7 +26,7 @@
|
||||
* 4 客户成果槽 —— ResultsSlot 取代 CasesSection:留形状、写清状态
|
||||
* 5 洞察 —— InsightsSection + NewsSection **合并**(两条本就同轴,
|
||||
* 且各自都指向 /news = 组件层的竞争真源)
|
||||
* 6 行业网格 —— 新增,读 solution 模型 6 行(Porsche 的 Our Industry Expertise)
|
||||
* 6 行业网格 —— 新增,读 solution 模型 6 行(对标站点的行业专长段)
|
||||
* 7 能力 accordion —— ServicesSection 转换(恰好 4 条 service ⇒ 恰好 4 个实践组)
|
||||
* 8 CTA —— 保留
|
||||
* ✕ NarrativeSection 删除:01/02/03 诊断→设计→交付与 /methodology 重复,
|
||||
@@ -36,6 +36,7 @@
|
||||
* 两家都没有。两行 pull-quote 降为第 3 段的正文
|
||||
*/
|
||||
import { useState } from 'react';
|
||||
import Image from 'next/image';
|
||||
import { ScrollReveal, StaggerReveal } from '@/components/ui/scroll-reveal';
|
||||
import { StaticLink } from '@/components/ui/static-link';
|
||||
import { CTAButton } from '@/components/ui/cta-button';
|
||||
@@ -54,14 +55,26 @@ import type { NewsItem } from '@/lib/constants/news';
|
||||
|
||||
type Row = Record<string, unknown>;
|
||||
|
||||
/** 行业网格:6 条 solution 行的 industry + 图标。纯读取,不新增数据源 */
|
||||
/**
|
||||
* 行业网格:6 条 solution 行的 industry + 图标 + 氛围图。
|
||||
*
|
||||
* 图片是 AI 生成的**工业/建筑氛围图**,不是客户现场,也不承担任何事实主张:
|
||||
* 画面里没有人物、没有可读文字、没有客户标识;行业名称与痛点仍只来自 CMS 行。
|
||||
* (DESIGN.md「零编造」禁止的是把假图当证据,不是禁止装饰性视觉。)
|
||||
*/
|
||||
const INDUSTRY_TILES = [
|
||||
{ slug: 'manufacturing', name: '制造业', icon: Factory },
|
||||
{ slug: 'retail', name: '贸易零售', icon: ShoppingBag },
|
||||
{ slug: 'education', name: '教育培训', icon: GraduationCap },
|
||||
{ slug: 'healthcare', name: '医疗健康', icon: HeartPulse },
|
||||
{ slug: 'finance', name: '金融服务', icon: Landmark },
|
||||
{ slug: 'logistics', name: '物流运输', icon: Truck },
|
||||
{ slug: 'manufacturing', name: '制造业', image: '/images/home/industry-manufacturing.webp', icon: Factory },
|
||||
{ slug: 'retail', name: '贸易零售', image: '/images/home/industry-retail.webp', icon: ShoppingBag },
|
||||
{ slug: 'education', name: '教育培训', image: '/images/home/industry-education.webp', icon: GraduationCap },
|
||||
{ slug: 'healthcare', name: '医疗健康', image: '/images/home/industry-healthcare.webp', icon: HeartPulse },
|
||||
{ slug: 'finance', name: '金融服务', image: '/images/home/industry-finance.webp', icon: Landmark },
|
||||
{ slug: 'logistics', name: '物流运输', image: '/images/home/industry-logistics.webp', icon: Truck },
|
||||
] as const;
|
||||
|
||||
/** 首页新闻卡的封面:氛围图与新闻正文解耦,CMS 里的标题/日期/摘要仍是唯一事实源 */
|
||||
const NEWS_COVERS = [
|
||||
'/images/home/insight-founding.webp',
|
||||
'/images/home/insight-digital.webp',
|
||||
] as const;
|
||||
|
||||
/** 共创阶段的可验证事实 —— 不是案例,也不冒充案例 */
|
||||
@@ -85,31 +98,76 @@ function HomeHero({ heroData }: { heroData?: Row | null }) {
|
||||
|
||||
return (
|
||||
<section
|
||||
className="bg-bg-primary border-b border-border-primary"
|
||||
className="relative isolate overflow-hidden bg-[#0B0A08] text-white"
|
||||
data-testid="hero-section"
|
||||
>
|
||||
{/* min-h 90vh → 70vh:对标两家的 hero 高 722–785px 是**图文影片**,
|
||||
我们是一句宣言,用满屏高度撑一句宣言只会读成空 */}
|
||||
<div className="container-x min-h-[70vh] flex items-center py-20">
|
||||
<div className="max-w-4xl">
|
||||
{/* 朱砂条(1× 档)作唯一装饰 —— 无渐变、无圆角、无描边 */}
|
||||
<span className="block w-10 h-[3px] bg-brand mb-7" aria-hidden="true" />
|
||||
<h1 className="text-4xl sm:text-5xl md:text-6xl font-bold text-text-primary leading-tight tracking-tight">
|
||||
{heading}
|
||||
</h1>
|
||||
{subheading && (
|
||||
<p className="mt-6 text-base md:text-lg text-text-secondary leading-relaxed max-w-2xl">
|
||||
{subheading}
|
||||
</p>
|
||||
)}
|
||||
<div className="mt-10 flex flex-wrap items-center gap-4">
|
||||
<CTAButton href={ctaHref} dataTestId="hero-cta">{ctaLabel}</CTAButton>
|
||||
<CTAButton href={secondaryHref} variant="secondary">{secondaryLabel}</CTAButton>
|
||||
{/* 全幅氛围图:画面无人、无可读文字,不承担任何客户/团队事实主张。
|
||||
左侧压暗是为了让黑底内容块与白字 readable,而不是做「暗黑滤镜」。 */}
|
||||
<Image
|
||||
src="/images/home/hero-architecture.webp"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
priority
|
||||
sizes="100vw"
|
||||
className="pointer-events-none absolute inset-0 -z-10 object-cover object-center"
|
||||
/>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="pointer-events-none absolute inset-0 -z-10 bg-gradient-to-r from-[#0B0A08] via-[#0B0A08]/80 to-[#0B0A08]/10"
|
||||
/>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
className="pointer-events-none absolute inset-x-0 bottom-0 -z-10 h-40 bg-gradient-to-t from-[#0B0A08] to-transparent"
|
||||
/>
|
||||
|
||||
{/* 对标咨询机构的 hero 构图:黑底正文块压在照片上,
|
||||
右侧再叠一张工程桌细节图;min-h 78vh 给影像留出呼吸。 */}
|
||||
<div className="container-x flex min-h-[74vh] items-center py-20 md:min-h-[80vh] md:py-28">
|
||||
<div className="grid w-full items-center gap-10 xl:grid-cols-12 xl:gap-12">
|
||||
<div className="xl:col-span-7">
|
||||
<div className="relative border-l-[6px] border-brand bg-[#0B0A08] px-6 py-9 sm:px-10 sm:py-12 lg:px-14 lg:py-16">
|
||||
<h1 className="text-4xl font-bold leading-[1.04] tracking-tight text-white text-balance sm:text-wrap sm:text-5xl md:text-6xl">
|
||||
{heading}
|
||||
</h1>
|
||||
{subheading && (
|
||||
<p className="mt-6 max-w-2xl text-base leading-relaxed text-white/75 md:text-lg">
|
||||
{subheading}
|
||||
</p>
|
||||
)}
|
||||
<div className="mt-9 flex flex-wrap items-center gap-4">
|
||||
<CTAButton href={ctaHref} dataTestId="hero-cta">{ctaLabel}</CTAButton>
|
||||
<CTAButton
|
||||
href={secondaryHref}
|
||||
variant="secondary"
|
||||
className="border-white/40 bg-transparent text-white hover:border-white hover:bg-white/10"
|
||||
>
|
||||
{secondaryLabel}
|
||||
</CTAButton>
|
||||
</div>
|
||||
{/* 承诺句走单一真源,不在此硬写数字 */}
|
||||
<p className="mt-8 text-sm text-white/60">
|
||||
{INQUIRY_RESPONSE_COMMITMENT.text} · {FREE_FIRST_CONSULT.text}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="hidden xl:col-span-5 xl:block">
|
||||
<div className="relative ml-auto w-[88%] border border-white/20 bg-[#141210] p-2 shadow-2xl">
|
||||
<div className="relative aspect-[4/3] overflow-hidden">
|
||||
<Image
|
||||
src="/images/home/hero-blueprint.webp"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="(min-width: 1024px) 40vw, 100vw"
|
||||
className="object-cover"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 bg-gradient-to-t from-black/45 to-transparent" />
|
||||
</div>
|
||||
<span aria-hidden="true" className="mt-2 block h-[3px] w-12 bg-brand" />
|
||||
</div>
|
||||
</div>
|
||||
{/* 承诺句走单一真源,不在此硬写数字 */}
|
||||
<p className="mt-8 text-sm text-text-muted">
|
||||
{INQUIRY_RESPONSE_COMMITMENT.text} · {FREE_FIRST_CONSULT.text}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -169,6 +227,7 @@ function NumberLedger({ stats, trustSignals }: { stats?: Row[]; trustSignals?: R
|
||||
return (
|
||||
<section className="bg-bg-secondary border-b border-border-primary" data-testid="home-ledger">
|
||||
<div className="container-x py-14 md:py-16">
|
||||
<span aria-hidden="true" className="mb-8 block h-[3px] w-10 bg-brand" />
|
||||
{metrics.length > 0 && (
|
||||
/* testid 挂在外层普通 div 上,不挂在 StaggerReveal 上:
|
||||
真实的 StaggerReveal/ScrollReveal 解构固定 prop 列表、**不透传未知属性**,
|
||||
@@ -223,30 +282,35 @@ function NumberLedger({ stats, trustSignals }: { stats?: Row[]; trustSignals?: R
|
||||
|
||||
function InsightsBlock({ news, pageCopy }: { news?: NewsItem[]; pageCopy?: Record<string, unknown> | null }) {
|
||||
const items = (news ?? []).slice(0, 4);
|
||||
const eyebrow = '洞察';
|
||||
const [featured, ...rest] = items;
|
||||
const heading = (pageCopy?.insightsTitle as string) || '我们怎么判断、怎么交付';
|
||||
|
||||
return (
|
||||
<section className="bg-bg-primary border-t border-border-primary" data-testid="home-insights">
|
||||
<div className="container-x py-16 md:py-24">
|
||||
<ScrollReveal>
|
||||
<SectionLabel>{eyebrow}</SectionLabel>
|
||||
<div className="flex flex-wrap items-end justify-between gap-4 mt-4">
|
||||
<h2 className="text-2xl sm:text-3xl md:text-4xl font-bold text-text-primary tracking-tight leading-tight max-w-3xl">
|
||||
{heading}
|
||||
</h2>
|
||||
<div className="flex flex-wrap items-end justify-between gap-6">
|
||||
<div className="max-w-3xl">
|
||||
<SectionLabel>洞察</SectionLabel>
|
||||
<h2 className="mt-4 text-3xl sm:text-4xl md:text-5xl font-bold text-text-primary tracking-tight leading-[1.05]">
|
||||
{heading}
|
||||
</h2>
|
||||
</div>
|
||||
{/* 咨询机构式「方框箭头 + 文字」的轨:红框只在链接上出现一次,不做满屏红 */}
|
||||
<StaticLink
|
||||
href="/insights"
|
||||
className="min-h-6 inline-flex items-center gap-1 text-sm font-medium text-text-primary hover:text-brand-ink transition-colors duration-hover"
|
||||
className="group min-h-6 inline-flex items-center gap-3 text-sm font-medium text-text-primary transition-colors duration-hover hover:text-brand-ink"
|
||||
>
|
||||
<span className="flex h-9 w-9 items-center justify-center border border-brand text-brand transition-colors duration-hover group-hover:bg-brand group-hover:text-white">
|
||||
<ArrowRight className="h-4 w-4" aria-hidden="true" />
|
||||
</span>
|
||||
全部洞察
|
||||
<ArrowRight className="w-4 h-4" aria-hidden="true" />
|
||||
</StaticLink>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
{items.length === 0 ? (
|
||||
<div className="bain-card p-8 mt-10" data-testid="home-insights-empty">
|
||||
<div className="mt-10 border border-border-primary bg-bg-secondary p-8" data-testid="home-insights-empty">
|
||||
<p className="text-sm text-text-secondary leading-relaxed">
|
||||
公开写作还在积累。可以先看{' '}
|
||||
<StaticLink href="/methodology" className="text-brand-ink hover:text-brand-ink-hover underline underline-offset-4">
|
||||
@@ -256,22 +320,83 @@ function InsightsBlock({ news, pageCopy }: { news?: NewsItem[]; pageCopy?: Recor
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<StaggerReveal className="grid gap-4 md:grid-cols-2 mt-10">
|
||||
{items.map((n) => (
|
||||
<div className="mt-10 grid gap-4 lg:grid-cols-12">
|
||||
{featured && (
|
||||
<StaticLink
|
||||
key={n.id}
|
||||
href={`/news/${n.id}`}
|
||||
className="bain-card block p-7 transition-colors duration-hover hover:border-border-rule"
|
||||
href={`/news/${featured.id}`}
|
||||
className="group relative isolate flex min-h-[26rem] flex-col justify-end overflow-hidden bg-[#141210] p-7 md:col-span-7 md:min-h-[34rem] md:p-10"
|
||||
>
|
||||
<div className="flex items-center gap-3 text-xs text-text-muted mb-3">
|
||||
<span className="text-brand-ink font-medium">{n.category}</span>
|
||||
<span className="tabular-nums">{n.date}</span>
|
||||
<Image
|
||||
src={NEWS_COVERS[0]}
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="(min-width: 1024px) 55vw, 100vw"
|
||||
className="pointer-events-none absolute inset-0 -z-10 object-cover opacity-70 transition-transform duration-500 ease-out group-hover:scale-[1.03]"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 -z-10 bg-gradient-to-t from-black via-black/45 to-transparent" />
|
||||
<div className="relative">
|
||||
<div className="flex items-center gap-3 text-xs text-white/60">
|
||||
<span className="h-[2px] w-6 bg-brand" aria-hidden="true" />
|
||||
<span>{featured.category}</span>
|
||||
<span className="tabular-nums text-white/60">{featured.date}</span>
|
||||
</div>
|
||||
<h3 className="mt-4 max-w-2xl text-2xl font-bold leading-snug text-white md:text-3xl">
|
||||
{featured.title}
|
||||
</h3>
|
||||
<p className="mt-3 max-w-xl text-sm leading-relaxed text-white/70">{featured.excerpt}</p>
|
||||
<ArrowRight className="mt-6 h-5 w-5 text-white transition-transform duration-hover group-hover:translate-x-1" aria-hidden="true" />
|
||||
</div>
|
||||
<h3 className="text-lg font-semibold text-text-primary leading-snug">{n.title}</h3>
|
||||
<p className="mt-2 text-sm text-text-secondary leading-relaxed">{n.excerpt}</p>
|
||||
</StaticLink>
|
||||
))}
|
||||
</StaggerReveal>
|
||||
)}
|
||||
|
||||
<div className="flex flex-col gap-4 md:col-span-5">
|
||||
{rest.slice(0, 2).map((n, i) => (
|
||||
<StaticLink
|
||||
key={n.id}
|
||||
href={`/news/${n.id}`}
|
||||
className="group relative isolate flex min-h-[13rem] flex-1 flex-col justify-end overflow-hidden bg-[#141210] p-6"
|
||||
>
|
||||
<Image
|
||||
src={NEWS_COVERS[(i + 1) % NEWS_COVERS.length] ?? NEWS_COVERS[0]}
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="(min-width: 1024px) 40vw, 100vw"
|
||||
className="pointer-events-none absolute inset-0 -z-10 object-cover opacity-60 transition-transform duration-500 ease-out group-hover:scale-[1.03]"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 -z-10 bg-gradient-to-t from-black via-black/50 to-black/10" />
|
||||
<div className="relative">
|
||||
<div className="flex items-center gap-3 text-xs text-white/60">
|
||||
<span>{n.category}</span>
|
||||
<span className="tabular-nums text-white/60">{n.date}</span>
|
||||
</div>
|
||||
<h3 className="mt-3 text-lg font-semibold leading-snug text-white">{n.title}</h3>
|
||||
</div>
|
||||
</StaticLink>
|
||||
))}
|
||||
|
||||
{/* 第三格不是新闻,是方法论入口;用品牌红实底把「编辑内容」与「我们的方法」分开 */}
|
||||
<StaticLink
|
||||
href="/methodology"
|
||||
className="group flex flex-1 flex-col justify-between bg-brand p-6 text-white transition-colors duration-hover hover:bg-brand-hover"
|
||||
>
|
||||
<span className="text-[10px] font-semibold uppercase tracking-[0.3em] text-white">
|
||||
方法论
|
||||
</span>
|
||||
<div className="mt-6">
|
||||
<h3 className="text-xl font-bold leading-snug">四阶段推进数字化转型</h3>
|
||||
<p className="mt-2 text-sm leading-relaxed text-white">
|
||||
诊断评估、战略规划、落地实施、持续优化四阶段模型,确保数字化项目可衡量落地。
|
||||
</p>
|
||||
</div>
|
||||
<span className="mt-6 inline-flex items-center gap-2 text-sm font-medium">
|
||||
查看方法论
|
||||
<ArrowRight className="h-4 w-4 transition-transform duration-hover group-hover:translate-x-1" aria-hidden="true" />
|
||||
</span>
|
||||
</StaticLink>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
@@ -287,13 +412,26 @@ function IndustryGridBlock({ solutions }: { solutions?: Row[] }) {
|
||||
<section className="bg-bg-secondary border-t border-border-primary" data-testid="home-industries">
|
||||
<div className="container-x py-16 md:py-24">
|
||||
<ScrollReveal>
|
||||
<SectionLabel>行业</SectionLabel>
|
||||
<h2 className="text-2xl sm:text-3xl md:text-4xl font-bold text-text-primary tracking-tight leading-tight mt-4 max-w-3xl">
|
||||
按行业的问题空间,不是按我们的产品线
|
||||
</h2>
|
||||
<div className="flex flex-wrap items-end justify-between gap-6">
|
||||
<div className="max-w-3xl">
|
||||
<SectionLabel>行业</SectionLabel>
|
||||
<h2 className="mt-4 text-3xl sm:text-4xl md:text-5xl font-bold text-text-primary tracking-tight leading-[1.05]">
|
||||
按行业的问题空间,不是按我们的产品线
|
||||
</h2>
|
||||
</div>
|
||||
<StaticLink
|
||||
href="/solutions"
|
||||
className="group min-h-6 inline-flex items-center gap-3 text-sm font-medium text-text-primary transition-colors duration-hover hover:text-brand-ink"
|
||||
>
|
||||
<span className="flex h-9 w-9 items-center justify-center border border-brand text-brand transition-colors duration-hover group-hover:bg-brand group-hover:text-white">
|
||||
<ArrowRight className="h-4 w-4" aria-hidden="true" />
|
||||
</span>
|
||||
全部解决方案
|
||||
</StaticLink>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
<StaggerReveal className="grid grid-cols-2 md:grid-cols-3 gap-px mt-10 bg-border-primary">
|
||||
<StaggerReveal className="mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
{INDUSTRY_TILES.map((tile) => {
|
||||
const Icon = tile.icon;
|
||||
const row = bySlug.get(tile.slug);
|
||||
@@ -302,19 +440,37 @@ function IndustryGridBlock({ solutions }: { solutions?: Row[] }) {
|
||||
<StaticLink
|
||||
key={tile.slug}
|
||||
href={`/solutions/${tile.slug}`}
|
||||
className="bg-bg-primary p-6 transition-colors duration-hover hover:bg-bg-tertiary"
|
||||
className="group relative isolate flex min-h-[15rem] flex-col justify-end overflow-hidden bg-[#141210] p-6"
|
||||
>
|
||||
<Icon className="w-5 h-5 text-brand-ink" aria-hidden="true" />
|
||||
<div className="mt-4 text-base font-semibold text-text-primary">{tile.name}</div>
|
||||
{painPoints.length > 0 && (
|
||||
<ul className="mt-2 space-y-1 list-none p-0 m-0">
|
||||
{painPoints.map((p, i) => (
|
||||
<li key={i} className="text-xs text-text-muted leading-relaxed">
|
||||
{String(p)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
<Image
|
||||
src={tile.image}
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="(min-width: 1024px) 33vw, (min-width: 640px) 50vw, 100vw"
|
||||
className="pointer-events-none absolute inset-0 -z-10 object-cover opacity-70 transition-transform duration-500 ease-out group-hover:scale-[1.04]"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 -z-10 bg-gradient-to-t from-black via-black/40 to-transparent" />
|
||||
<div className="relative">
|
||||
<Icon className="absolute right-0 top-0 h-4 w-4 text-white/70" aria-hidden="true" />
|
||||
<div className="flex items-end justify-between gap-4">
|
||||
<div>
|
||||
<h3 className="text-xl font-bold leading-tight text-white">{tile.name}</h3>
|
||||
{painPoints.length > 0 && (
|
||||
<ul className="mt-2 space-y-1 list-none p-0 m-0">
|
||||
{painPoints.map((p, i) => (
|
||||
<li key={i} className="text-xs leading-relaxed text-white/70">
|
||||
{String(p)}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
<span className="flex h-9 w-9 shrink-0 items-center justify-center border border-white/30 text-white transition-colors duration-hover group-hover:border-brand group-hover:bg-brand">
|
||||
<ArrowRight className="h-4 w-4" aria-hidden="true" />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</StaticLink>
|
||||
);
|
||||
})}
|
||||
@@ -337,66 +493,91 @@ function CapabilitiesAccordion({ services }: { services?: CapabilityRow[] }) {
|
||||
return (
|
||||
<section className="bg-bg-primary border-t border-border-primary" data-testid="home-capabilities">
|
||||
<div className="container-x py-16 md:py-24">
|
||||
<ScrollReveal>
|
||||
<SectionLabel>能力</SectionLabel>
|
||||
<h2 className="text-2xl sm:text-3xl md:text-4xl font-bold text-text-primary tracking-tight leading-tight mt-4 max-w-3xl">
|
||||
四种陪跑方式
|
||||
</h2>
|
||||
<p className="mt-4 text-base text-text-secondary leading-relaxed max-w-2xl">
|
||||
对标 Porsche Consulting 的「What Moves Our Clients」:能力用 accordion 承载,
|
||||
而不是四张等宽卡片 —— 卡片把四件事压成同一视觉重量,accordion 允许逐个展开。
|
||||
</p>
|
||||
</ScrollReveal>
|
||||
<div className="grid gap-12 lg:grid-cols-12 lg:gap-16">
|
||||
<div className="lg:col-span-5">
|
||||
<ScrollReveal>
|
||||
<SectionLabel>能力</SectionLabel>
|
||||
<h2 className="mt-4 text-3xl sm:text-4xl md:text-5xl font-bold text-text-primary tracking-tight leading-[1.05]">
|
||||
四种陪跑方式
|
||||
</h2>
|
||||
</ScrollReveal>
|
||||
|
||||
<div className="mt-10 border-t border-border-primary">
|
||||
{rows.map((s, i) => {
|
||||
const id = String(s.id ?? i);
|
||||
const open = openId === id;
|
||||
const title = String(s.title ?? s.name ?? '');
|
||||
const highlights = Array.isArray(s.highlights) ? (s.highlights as unknown[]).map(String) : [];
|
||||
return (
|
||||
<div key={id} className="border-b border-border-primary">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setOpenId(open ? null : id)}
|
||||
aria-expanded={open}
|
||||
aria-controls={`cap-panel-${id}`}
|
||||
className="w-full flex items-center justify-between gap-6 py-6 text-left transition-colors duration-hover hover:text-brand-ink min-h-[64px]"
|
||||
>
|
||||
<span className="flex items-baseline gap-5">
|
||||
<span className="text-sm font-medium tabular-nums text-text-muted" aria-hidden="true">
|
||||
{String(i + 1).padStart(2, '0')}
|
||||
</span>
|
||||
<span className="text-lg md:text-xl font-semibold text-text-primary">{title}</span>
|
||||
</span>
|
||||
<span className={cn('text-2xl leading-none text-text-muted transition-transform duration-hover', open && 'rotate-45')} aria-hidden="true">
|
||||
+
|
||||
</span>
|
||||
</button>
|
||||
{open && (
|
||||
<div id={`cap-panel-${id}`} role="region" aria-label={`${title} 能力详情`} className="pb-8 pl-[3.25rem] pr-2">
|
||||
<p className="text-sm text-text-secondary leading-relaxed max-w-2xl">
|
||||
{String(s.description ?? '')}
|
||||
</p>
|
||||
{highlights.length > 0 && (
|
||||
<ul className="mt-5 flex flex-wrap gap-x-6 gap-y-2 list-none p-0 m-0">
|
||||
{highlights.map((h) => (
|
||||
<li key={h} className="text-sm text-text-secondary">{h}</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
<StaticLink
|
||||
href={`/services/${id}`}
|
||||
className="mt-6 min-h-6 inline-flex items-center gap-1 text-sm font-medium text-brand-ink hover:text-brand-ink-hover transition-colors duration-hover"
|
||||
>
|
||||
了解这一能力
|
||||
<ArrowRight className="w-4 h-4" aria-hidden="true" />
|
||||
</StaticLink>
|
||||
</div>
|
||||
)}
|
||||
<div className="relative mt-10 hidden lg:block">
|
||||
<div className="relative aspect-[4/5] overflow-hidden bg-[#141210]">
|
||||
<Image
|
||||
src="/images/home/capability-workshop.webp"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="(min-width: 1024px) 38vw, 100vw"
|
||||
className="object-cover"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent" />
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<span aria-hidden="true" className="absolute -bottom-4 -right-4 hidden h-10 w-10 bg-brand xl:block" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-7">
|
||||
<ScrollReveal>
|
||||
<div className="border-t border-border-primary">
|
||||
{rows.map((s, i) => {
|
||||
const id = String(s.id ?? i);
|
||||
const open = openId === id;
|
||||
const title = String(s.title ?? s.name ?? '');
|
||||
const highlights = Array.isArray(s.highlights) ? (s.highlights as unknown[]).map(String) : [];
|
||||
return (
|
||||
<div key={id} className="border-b border-border-primary">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setOpenId(open ? null : id)}
|
||||
aria-expanded={open}
|
||||
aria-controls={`cap-panel-${id}`}
|
||||
className="group flex min-h-[76px] w-full items-center justify-between gap-6 py-6 text-left transition-colors duration-hover hover:bg-bg-secondary"
|
||||
>
|
||||
<span className="flex items-baseline gap-5">
|
||||
<span className="text-sm font-medium tabular-nums text-brand-ink" aria-hidden="true">
|
||||
{String(i + 1).padStart(2, '0')}
|
||||
</span>
|
||||
<span className="text-xl font-semibold text-text-primary md:text-2xl">{title}</span>
|
||||
</span>
|
||||
<span
|
||||
className={cn(
|
||||
'flex h-9 w-9 shrink-0 items-center justify-center border border-border-rule text-xl leading-none text-text-muted transition-all duration-hover group-hover:border-brand group-hover:text-brand',
|
||||
open && 'rotate-45 border-brand text-brand'
|
||||
)}
|
||||
aria-hidden="true"
|
||||
>
|
||||
+
|
||||
</span>
|
||||
</button>
|
||||
{open && (
|
||||
<div id={`cap-panel-${id}`} role="region" aria-label={`${title} 能力详情`} className="pb-8 pr-2 md:pl-12">
|
||||
<p className="max-w-2xl text-sm leading-relaxed text-text-secondary">
|
||||
{String(s.description ?? '')}
|
||||
</p>
|
||||
{highlights.length > 0 && (
|
||||
<ul className="mt-5 flex flex-wrap gap-x-6 gap-y-2 list-none p-0 m-0">
|
||||
{highlights.map((h) => (
|
||||
<li key={h} className="text-sm text-text-secondary">{h}</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
<StaticLink
|
||||
href={`/services/${id}`}
|
||||
className="mt-6 min-h-6 inline-flex items-center gap-1 text-sm font-medium text-brand-ink hover:text-brand-ink-hover transition-colors duration-hover"
|
||||
>
|
||||
了解这一能力
|
||||
<ArrowRight className="w-4 h-4" aria-hidden="true" />
|
||||
</StaticLink>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -408,18 +589,34 @@ function CapabilitiesAccordion({ services }: { services?: CapabilityRow[] }) {
|
||||
function HomeCta({ heroData }: { heroData?: Row | null }) {
|
||||
const ctaHref = (heroData?.ctaHref as string) || '/contact';
|
||||
return (
|
||||
<section className="bg-bg-secondary border-t border-border-primary" data-testid="home-cta">
|
||||
<div className="container-x py-20 md:py-28 text-center">
|
||||
<section className="relative isolate overflow-hidden bg-[#0B0A08]" data-testid="home-cta">
|
||||
<Image
|
||||
src="/images/home/cta-architecture.webp"
|
||||
alt=""
|
||||
aria-hidden="true"
|
||||
fill
|
||||
sizes="100vw"
|
||||
className="pointer-events-none absolute inset-0 -z-10 object-cover object-center opacity-80"
|
||||
/>
|
||||
<div aria-hidden="true" className="absolute inset-0 -z-10 bg-[#0B0A08]/60" />
|
||||
<div className="container-x py-20 text-center md:py-28">
|
||||
<ScrollReveal>
|
||||
<h2 className="text-2xl sm:text-3xl md:text-4xl font-bold text-text-primary tracking-tight leading-tight">
|
||||
<span aria-hidden="true" className="mx-auto mb-7 block h-[3px] w-12 bg-brand" />
|
||||
<h2 className="text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl">
|
||||
现在有什么卡住你了?
|
||||
</h2>
|
||||
<p className="mt-4 text-base text-text-secondary max-w-2xl mx-auto leading-relaxed">
|
||||
<p className="mx-auto mt-5 max-w-2xl text-base leading-relaxed text-white/70">
|
||||
{COMPANY_INFO.displayName}的定位是伙伴而非供应商 —— 把问题带来,我们先给判断。
|
||||
</p>
|
||||
<div className="mt-9 flex flex-wrap items-center justify-center gap-4">
|
||||
<CTAButton href={ctaHref} dataTestId="home-cta-button">{CTA_LABELS.consult}</CTAButton>
|
||||
<CTAButton href="/methodology" variant="secondary">看方法论</CTAButton>
|
||||
<CTAButton
|
||||
href="/methodology"
|
||||
variant="secondary"
|
||||
className="border-white/40 bg-transparent text-white hover:border-white hover:bg-white/10"
|
||||
>
|
||||
看方法论
|
||||
</CTAButton>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
</div>
|
||||
@@ -458,20 +655,23 @@ export default function HomeContentV16({
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/* 咨询机构的首页节拍:影像开场 → 编辑内容 → 行业网格 → 能力
|
||||
→ 客户成果 → 信任 → 收尾 CTA。数字账本压成 hero 后的一条窄带,
|
||||
不抢「新闻」这一拍。段序变化只动装配顺序,各段的真源与空态判据不变。 */}
|
||||
<HomeHero heroData={heroData} />
|
||||
<NumberLedger stats={stats} trustSignals={trustSignals} />
|
||||
<InsightsBlock news={news} pageCopy={pageCopy} />
|
||||
<IndustryGridBlock solutions={solutions} />
|
||||
<CapabilitiesAccordion services={services} />
|
||||
|
||||
{/* 3 透明承诺 + 4 客户成果槽:两段合读才成立 —— 先说"我们用什么建立信任",
|
||||
再明说"成果这一格现在是空的、为什么空" */}
|
||||
{/* 客户成果槽与透明承诺:两段合读才成立 —— 先说"成果这一格现在是空的、为什么空",
|
||||
再给四个可验证的信任锚点。 */}
|
||||
<ResultsSlot state={resultsState} />
|
||||
<L3SignalsSlot
|
||||
heading="在数据之外,我们用透明度建立信任"
|
||||
description="客户案例与资质认证需获得授权后才能公开;在那之前,以下四个锚点是我们可验证的承诺。"
|
||||
/>
|
||||
<ResultsSlot state={resultsState} />
|
||||
|
||||
<InsightsBlock news={news} pageCopy={pageCopy} />
|
||||
<IndustryGridBlock solutions={solutions} />
|
||||
<CapabilitiesAccordion services={services} />
|
||||
<HomeCta heroData={heroData} />
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -52,8 +52,8 @@ export function Footer() {
|
||||
src="/logo-white.svg"
|
||||
alt={config.name}
|
||||
width={120}
|
||||
height={45}
|
||||
className="w-auto h-10 md:h-12 transition-transform duration-normal ease-out group-hover:scale-[1.02]"
|
||||
height={56}
|
||||
className="w-auto h-12 md:h-14 transition-transform duration-normal ease-out group-hover:scale-[1.02]"
|
||||
loading="eager"
|
||||
priority
|
||||
/>
|
||||
|
||||
@@ -87,12 +87,15 @@ function HeaderContent() {
|
||||
>
|
||||
{/* Logo 明暗双版:浅色背景用 logo.svg(黑字),深色背景用 logo-white.svg(白字)。
|
||||
按 html[data-theme] 显隐(规则见 globals.css),修复黑字在深色背景被吞的 bug。 */}
|
||||
{/* 上下锁定:书法「睿新致遠」+ 构造字 NOVALON。2026-10-20 甲方改判:
|
||||
导航必须带英文,不再使用 name-alone 横排。声明比与资产 viewBox 一致
|
||||
(255.6 ÷ 119.82 = 2.133),否则图元会被压扁。 */}
|
||||
<Image
|
||||
src="/logo.svg"
|
||||
alt={config.name}
|
||||
width={106}
|
||||
height={40}
|
||||
className="logo-on-light relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-8 md:h-10"
|
||||
width={119}
|
||||
height={56}
|
||||
className="logo-on-light relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-11 md:h-14"
|
||||
loading="eager"
|
||||
priority
|
||||
suppressHydrationWarning
|
||||
@@ -100,9 +103,9 @@ function HeaderContent() {
|
||||
<Image
|
||||
src="/logo-white.svg"
|
||||
alt={config.name}
|
||||
width={106}
|
||||
height={40}
|
||||
className="logo-on-dark relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-8 md:h-10"
|
||||
width={119}
|
||||
height={56}
|
||||
className="logo-on-dark relative transition-all duration-normal ease-out group-hover/logo:scale-[1.02] w-auto h-11 md:h-14"
|
||||
loading="eager"
|
||||
suppressHydrationWarning
|
||||
/>
|
||||
|
||||
@@ -43,16 +43,28 @@ export function PageTransition({ children }: { children: React.ReactNode }) {
|
||||
}, []);
|
||||
|
||||
// SSR 和首次 hydration 阶段直接渲染子内容,避免 framer-motion DOM 差异导致 hydration mismatch
|
||||
if (!mounted || shouldReduceMotion) {
|
||||
if (!mounted) {
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
// 2026-10-20(多端复核):reduce 下**不能**在 mounted 之后切回裸 children。
|
||||
// 原先 `if (!mounted || shouldReduceMotion) return children` 会让已挂载的 motion.div
|
||||
// 在 reduce 状态落地的瞬间被 AnimatePresence 的 exit 链接管,而在 headless/移动仿真里
|
||||
// exit 链没有稳定落点,实测整页祖先停在 opacity 0.15–0.35(桌面 1440 甚至 0)。
|
||||
// 现在无论是否 reduce 都保留同一个 motion.div,只用零时长 + 可见变体把动画「一步到位」。
|
||||
const reducedVariants = {
|
||||
initial: { opacity: 1, y: 0, scale: 1 },
|
||||
animate: { opacity: 1, y: 0, scale: 1, transition: { duration: 0 } },
|
||||
exit: { opacity: 1, transition: { duration: 0 } },
|
||||
};
|
||||
const variants = shouldReduceMotion ? reducedVariants : pageVariants;
|
||||
|
||||
return (
|
||||
<AnimatePresence mode="wait" initial={false}>
|
||||
<motion.div
|
||||
key={pathname}
|
||||
variants={pageVariants}
|
||||
initial="initial"
|
||||
variants={variants}
|
||||
initial={shouldReduceMotion ? false : 'initial'}
|
||||
animate="animate"
|
||||
exit="exit"
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user