refactor(detail): 详情五页旧语法清账(P4-B2)+ R16 补内联通道
范围:products / solutions / services 详情、cases/[slug]、news 详情五页。
B1 之后棘轮剩下的存量基本都在这里。
清掉的(棘轮读数 → 实况)
- R13 67→48:rounded-2xl/xl/3xl 共 19 处 → 直角
- R14 17→13:hover:-translate-y 4 处
- R15 16→13:hover:shadow-lg 3 处
- R16 22→8:bg-brand-soft 彩砖 14 处 → bg-bg-secondary;剩余 8 处为类名通道存量
- R17 43→39:font-black 4 处 → font-bold
- R19 11→7:font-extrabold 4 处 → font-bold
- transition-all → transition-colors(去掉位移/阴影后不该再接 all)
- delay 1.2s → 0.15s;时间轴圆点 rounded-full → 直角
**R16 补上内联通道**(本批最重要的判据修复)
B2 抓到一处类名通道完全看不见的违反:`case-detail-page.tsx` 把整整一个 `<section>`
刷成 `style={{ background: "var(--color-brand)" }}` —— 类名零命中、闸全绿、而那是
「饱和红从不用作面」最严重的一种。现在 R16 同时看两条通道:
`bg-brand-(soft|section)` 类名 + `background(Color): "var(--color-brand*)"` 内联。
selftest 的 dirty 夹具已补内联样本,两条通道各自可失败。
该页顺带修掉三处
- 满幅红面 → ink 底(`bg-[#0B0A08]`,走 class 而不是内联 style)
- 两枚 `rounded-full ... blur-[120px]` 白色光晕球删除(玻璃拟态/彩色光晕在禁止清单里)
- 两处内联 `--color-brand-soft` 徽章改用 DESIGN 许可的双通道写法
`--color-brand-bg`(blush) + `--color-brand-ink`(红做底 / 红做字必须分通道)
- 指标数字的 `group-hover:scale-110` 删除(hover 只改线/色)
验证
- check:grammar --selftest 全通过;check:grammar 19/19 EXIT=0(R16 实测 8 = 类名 8 + 内联 0)
- check:accents / check:a11y / check:motion 全 EXIT=0
- type-check EXIT=0;eslint 0 error;jest 157 套件 / 1849 例全通过
- e2e(prod) @smoke|@critical chromium+chromium-mobile:39 passed / 3 skipped
- 视觉 --workers=2 只读:**130 passed / 0 failed**
一条纪律被自己的顺序打脸(写进 docs/acceptance/)
- 本轮先 build 再跑 @smoke(含写库用例)再跑视觉 ⇒ /news 又在 5 个 project 一致判红。
这次库里是干净的,脏的是**产物**:ISR 在测试数据存在期间重生成了 /news 并写回 dist
(grep 产物 = 2 命中)。根因与「build 时脏」同源,触发点从构建期换到运行期。
⇒ 视觉认证轮不与写库型 E2E 同轮:先 E2E、后 build、再只跑视觉;跑前先 grep 产物为 0。
This commit is contained in:
1 parent
88638054ae
commit
09b78369eb
7 files changed
+113
-76
No files matched your search
@@ -20,7 +20,7 @@ function RelatedNewsCard({ news, index }: { news: NewsItem; index: number }) {
|
||||
>
|
||||
<a
|
||||
href={`/news/${news.id}`}
|
||||
className="group relative block border border-border-primary hover:border-brand/30 bg-bg-elevated transition-all duration-150 hover:-translate-y-2 overflow-hidden h-full"
|
||||
className="group relative block border border-border-primary hover:border-brand/30 bg-bg-elevated transition-colors duration-hover overflow-hidden h-full"
|
||||
>
|
||||
<div className="absolute top-0 left-0 bottom-0 w-1 bg-brand scale-y-0 group-hover:scale-y-100 transition-transform duration-150 origin-top" />
|
||||
|
||||
@@ -150,7 +150,7 @@ export default function NewsDetailContentV3({ news, relatedNews = [] }: NewsDeta
|
||||
<div className="mt-16 sm:mt-20 flex flex-col sm:flex-row justify-center gap-4">
|
||||
<StaticLink
|
||||
href="/news"
|
||||
className="inline-flex items-center justify-center gap-2 px-8 py-4 font-medium text-base text-ink border border-border-primary rounded-full hover:border-border-secondary hover:bg-bg-secondary transition-all duration-normal"
|
||||
className="inline-flex items-center justify-center gap-2 px-8 py-4 font-medium text-base text-ink border border-border-primary rounded-cta hover:border-border-secondary hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<ArrowLeft className="w-4 h-4" />
|
||||
返回新闻列表
|
||||
|
||||
@@ -36,11 +36,11 @@ function DetailHero({ product }: DetailHeroProps) {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="flex items-center gap-4 mb-8"
|
||||
>
|
||||
<div className="w-16 h-16 rounded-2xl bg-brand-soft flex items-center justify-center text-brand-ink">
|
||||
<div className="w-16 h-16 bg-bg-secondary flex items-center justify-center text-brand-ink">
|
||||
{productIcon}
|
||||
</div>
|
||||
<div>
|
||||
<span className="px-3 py-1.5 text-xs font-bold text-brand-ink bg-brand-soft/50">
|
||||
<span className="px-3 py-1.5 text-xs font-bold text-brand-ink bg-bg-secondary">
|
||||
{product.category}
|
||||
</span>
|
||||
<div className="flex items-center gap-3 mt-2">
|
||||
@@ -137,10 +137,10 @@ function FeaturesSection({ features }: FeaturesSectionProps) {
|
||||
{features.map((feature, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative p-8 bg-bg-primary hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative p-8 bg-bg-primary hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="flex items-center gap-5">
|
||||
<div className="w-10 h-10 rounded-xl bg-brand-soft flex items-center justify-center text-brand-ink shrink-0">
|
||||
<div className="w-10 h-10 bg-bg-secondary flex items-center justify-center text-brand-ink shrink-0">
|
||||
<Check className="w-5 h-5" />
|
||||
</div>
|
||||
<p className="text-lg text-ink font-medium leading-relaxed">{feature}</p>
|
||||
@@ -180,10 +180,10 @@ function BenefitsSection({ benefits }: BenefitsSectionProps) {
|
||||
{benefits.map((benefit, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative p-8 bg-bg-primary hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative p-8 bg-bg-primary hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="flex items-center gap-6">
|
||||
<div className="w-12 h-12 rounded-2xl bg-brand-soft/50 flex items-center justify-center text-brand-ink shrink-0">
|
||||
<div className="w-12 h-12 bg-bg-secondary flex items-center justify-center text-brand-ink shrink-0">
|
||||
<TrendingUp className="w-6 h-6" />
|
||||
</div>
|
||||
<p className="text-xl text-ink font-semibold leading-relaxed">{benefit}</p>
|
||||
@@ -233,9 +233,9 @@ function ProcessSection({ process }: ProcessSectionProps) {
|
||||
{process.map((step, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative text-center p-8 bg-bg-primary hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative text-center p-8 bg-bg-primary hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="relative z-10 w-20 h-20 rounded-3xl bg-bg-secondary border border-border-primary group-hover:border-brand/50 flex items-center justify-center mx-auto mb-8 transition-all duration-150">
|
||||
<div className="relative z-10 w-20 h-20 bg-bg-secondary border border-border-primary group-hover:border-brand/50 flex items-center justify-center mx-auto mb-8 transition-colors duration-hover">
|
||||
<span className="text-3xl font-bold text-brand-ink">{idx + 1}</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -40,19 +40,19 @@ function DetailHero({ service }: { service: Service }) {
|
||||
initial={{ opacity: 0, y: 40 }}
|
||||
animate={{ opacity: 1, y: 0 }}
|
||||
transition={{ duration: 0.28, delay: 0.2, ease: EASE_OUT }}
|
||||
className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-black text-ink leading-[0.95] tracking-tighter mb-6 sm:mb-8"
|
||||
className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-ink leading-[0.95] tracking-tighter mb-6 sm:mb-8"
|
||||
>
|
||||
<div className="block">{service.title}</div>
|
||||
<div className={firstBenefit ? "block mt-4 sm:mt-6" : "hidden"}>
|
||||
<span className="relative inline-block">
|
||||
<span className="relative text-brand-ink font-black">
|
||||
<span className="relative text-brand-ink font-bold">
|
||||
{firstBenefit}
|
||||
<motion.span
|
||||
className="absolute -bottom-2 left-0 w-full h-[3px] bg-brand"
|
||||
style={{ transformOrigin: "left" }}
|
||||
initial={{ scaleX: 0 }}
|
||||
animate={{ scaleX: 1 }}
|
||||
transition={{ duration: 0.28, delay: 1.2, ease: EASE_OUT }}
|
||||
transition={{ duration: 0.28, delay: 0.15, ease: EASE_OUT }}
|
||||
/>
|
||||
</span>
|
||||
</span>
|
||||
@@ -110,7 +110,7 @@ function OverviewSection({ service }: { service: Service }) {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="lg:col-span-5"
|
||||
>
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-ink tracking-tight leading-[0.95]">
|
||||
解决什么问题
|
||||
</h2>
|
||||
</motion.div>
|
||||
@@ -154,7 +154,7 @@ function FeaturesSection({ service }: { service: Service }) {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
|
||||
>
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-ink tracking-tight leading-[0.95]">
|
||||
核心能力
|
||||
</h2>
|
||||
<p className="mt-6 text-lg text-text-secondary leading-relaxed">
|
||||
@@ -178,7 +178,7 @@ function FeaturesSection({ service }: { service: Service }) {
|
||||
delay: index * 0.06,
|
||||
ease: EASE_OUT,
|
||||
}}
|
||||
className="group relative p-8 sm:p-10 transition-all duration-150 hover:bg-bg-secondary hover:shadow-lg hover:-translate-y-1 bg-bg-primary"
|
||||
className="group relative p-8 sm:p-10 transition-colors duration-hover hover:bg-bg-secondary bg-bg-primary"
|
||||
>
|
||||
<div className="relative z-10">
|
||||
<Icon className="w-8 h-8 mb-6 text-brand-ink" />
|
||||
@@ -214,7 +214,7 @@ function ProcessSection({ service }: { service: Service }) {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="max-w-3xl mb-16 sm:mb-20 md:mb-24"
|
||||
>
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95]">
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-ink tracking-tight leading-[0.95]">
|
||||
服务流程
|
||||
</h2>
|
||||
<p className="mt-6 text-lg text-text-secondary leading-relaxed">
|
||||
@@ -236,10 +236,10 @@ function ProcessSection({ service }: { service: Service }) {
|
||||
delay: index * 0.06,
|
||||
ease: EASE_OUT,
|
||||
}}
|
||||
className="relative group p-6 sm:p-8 bg-bg-primary hover:bg-bg-secondary hover:shadow-lg hover:-translate-y-1 transition-all duration-150"
|
||||
className="relative group p-6 sm:p-8 bg-bg-primary hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div
|
||||
className="w-2 h-2 rounded-full mb-6"
|
||||
className="w-2 h-2 rounded-cta mb-6"
|
||||
style={{
|
||||
backgroundColor:
|
||||
index === 0 ? "#C41E3A" : "var(--color-border-primary)",
|
||||
@@ -277,7 +277,7 @@ function CTASection() {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="max-w-3xl"
|
||||
>
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-extrabold text-ink tracking-tight leading-[0.95] mb-8">
|
||||
<h2 className="text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold text-ink tracking-tight leading-[0.95] mb-8">
|
||||
准备好开始了吗?
|
||||
</h2>
|
||||
<p className="text-lg text-text-secondary leading-relaxed mb-10">
|
||||
|
||||
@@ -64,11 +64,11 @@ function DetailHero({ solution }: DetailHeroProps) {
|
||||
transition={{ duration: 0.28, ease: EASE_OUT }}
|
||||
className="flex items-center gap-4 mb-8"
|
||||
>
|
||||
<div className="w-16 h-16 rounded-2xl bg-brand-soft flex items-center justify-center text-brand-ink">
|
||||
<div className="w-16 h-16 bg-bg-secondary flex items-center justify-center text-brand-ink">
|
||||
{industryIcon}
|
||||
</div>
|
||||
<div>
|
||||
<span className="px-3 py-1.5 text-xs font-bold text-brand-ink bg-brand-soft/50">
|
||||
<span className="px-3 py-1.5 text-xs font-bold text-brand-ink bg-bg-secondary">
|
||||
{solution.industry}
|
||||
</span>
|
||||
<div className="text-text-muted text-sm mt-2">{solution.subtitle}</div>
|
||||
@@ -138,11 +138,11 @@ function ChallengesSection({ challenges }: ChallengesSectionProps) {
|
||||
{challenges.map((challenge, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative p-8 bg-bg-elevated hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative p-8 bg-bg-elevated hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1 bg-brand scale-y-0 group-hover:scale-y-100 transition-transform duration-150 origin-top" />
|
||||
<div className="flex items-start gap-6">
|
||||
<div className="w-10 h-10 rounded-xl bg-brand-soft/50 flex items-center justify-center text-brand-ink shrink-0 mt-0.5">
|
||||
<div className="w-10 h-10 bg-bg-secondary flex items-center justify-center text-brand-ink shrink-0 mt-0.5">
|
||||
<span className="text-lg font-bold">{idx + 1}</span>
|
||||
</div>
|
||||
<p className="text-lg text-ink leading-relaxed">{challenge}</p>
|
||||
@@ -187,12 +187,12 @@ function SolutionsSection({ solutions }: SolutionsSectionProps) {
|
||||
{solutions.map((solution, idx) => (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative p-10 bg-bg-elevated hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative p-10 bg-bg-elevated hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="absolute top-0 left-0 right-0 h-1 bg-brand scale-x-0 group-hover:scale-x-100 transition-transform duration-150 origin-left" />
|
||||
|
||||
<div className="flex items-start gap-6">
|
||||
<div className="w-14 h-14 rounded-2xl bg-brand-soft flex items-center justify-center text-brand-ink shrink-0">
|
||||
<div className="w-14 h-14 bg-bg-secondary flex items-center justify-center text-brand-ink shrink-0">
|
||||
<Lightbulb className="w-7 h-7" />
|
||||
</div>
|
||||
<div>
|
||||
@@ -244,11 +244,11 @@ function ValuePropositionSection({ valueProposition }: ValuePropositionProps) {
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="group relative p-10 text-center bg-bg-elevated hover:bg-bg-secondary transition-all duration-150"
|
||||
className="group relative p-10 text-center bg-bg-elevated hover:bg-bg-secondary transition-colors duration-hover"
|
||||
>
|
||||
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-1/3 h-1 bg-brand scale-x-0 group-hover:scale-x-100 transition-transform duration-150 origin-center" />
|
||||
|
||||
<div className="w-20 h-20 rounded-3xl bg-brand-soft flex items-center justify-center text-brand-ink mx-auto mb-8">
|
||||
<div className="w-20 h-20 bg-bg-secondary flex items-center justify-center text-brand-ink mx-auto mb-8">
|
||||
{icon}
|
||||
</div>
|
||||
|
||||
@@ -297,11 +297,11 @@ function SuiteCombinationSection({ suiteCombination, products }: SuiteCombinatio
|
||||
{primaryProducts.map((product) => product && (
|
||||
<div
|
||||
key={product.id}
|
||||
className="group relative p-8 bg-bg-elevated hover:bg-bg-secondary transition-all duration-150 text-center lg:col-span-2"
|
||||
className="group relative p-8 bg-bg-elevated hover:bg-bg-secondary transition-colors duration-hover text-center lg:col-span-2"
|
||||
>
|
||||
<div className="absolute top-0 left-0 right-0 h-1 bg-brand scale-x-0 group-hover:scale-x-100 transition-transform duration-150 origin-left" />
|
||||
|
||||
<div className="w-16 h-16 rounded-2xl bg-brand-soft flex items-center justify-center text-brand-ink mx-auto mb-6">
|
||||
<div className="w-16 h-16 bg-bg-secondary flex items-center justify-center text-brand-ink mx-auto mb-6">
|
||||
<Package className="w-8 h-8" />
|
||||
</div>
|
||||
|
||||
@@ -315,16 +315,16 @@ function SuiteCombinationSection({ suiteCombination, products }: SuiteCombinatio
|
||||
</StaggerReveal>
|
||||
|
||||
<ScrollReveal delay={0.2} className="flex items-center justify-center lg:col-span-1 bg-bg-elevated">
|
||||
{/* 装饰圆改方角牌:rounded-full 只留给功能性的圆(头像/开关钮/滑块),
|
||||
{/* 装饰圆改方角牌:rounded-cta 只留给功能性的圆(头像/开关钮/滑块),
|
||||
这是套件组合图的中心节点装饰,两家对标实测都没有装饰性圆形 */}
|
||||
<div className="w-20 h-20 rounded-cta bg-brand-soft border border-border-rule flex items-center justify-center text-brand-ink font-bold text-xl">
|
||||
<div className="w-20 h-20 rounded-cta bg-bg-secondary border border-border-rule flex items-center justify-center text-brand-ink font-bold text-xl">
|
||||
+
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
<ScrollReveal delay={0.3} className="lg:col-span-2">
|
||||
<div className="group relative p-8 bg-brand-soft/10 hover:bg-bg-secondary transition-all duration-150 text-center h-full flex flex-col justify-center">
|
||||
<div className="w-16 h-16 rounded-2xl bg-brand-soft flex items-center justify-center text-brand-ink mx-auto mb-6">
|
||||
<div className="group relative p-8 bg-bg-secondary hover:bg-bg-secondary transition-colors duration-hover text-center h-full flex flex-col justify-center">
|
||||
<div className="w-16 h-16 bg-bg-secondary flex items-center justify-center text-brand-ink mx-auto mb-6">
|
||||
<Users className="w-8 h-8" />
|
||||
</div>
|
||||
|
||||
|
||||
@@ -74,10 +74,10 @@ function CaseDetailHero({ data }: CaseDetailHeroProps) {
|
||||
transition={{ duration: 0.28, ease: EASE }}
|
||||
>
|
||||
<span
|
||||
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-medium"
|
||||
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-cta text-xs font-medium"
|
||||
style={{
|
||||
backgroundColor: "var(--color-brand-soft)",
|
||||
color: "var(--color-brand)",
|
||||
backgroundColor: "var(--color-brand-bg)",
|
||||
color: "var(--color-brand-ink)",
|
||||
}}
|
||||
>
|
||||
<Building2 className="w-3.5 h-3.5" />
|
||||
@@ -99,7 +99,7 @@ function CaseDetailHero({ data }: CaseDetailHeroProps) {
|
||||
transition={{ duration: 0.28, delay: 0.1, ease: EASE }}
|
||||
>
|
||||
<div
|
||||
className="font-sans text-[clamp(56px,12vw,120px)] font-black leading-none tracking-[-2px] mb-2"
|
||||
className="font-sans text-[clamp(56px,12vw,120px)] font-bold leading-none tracking-[-2px] mb-2"
|
||||
style={{ color: "var(--color-brand)" }}
|
||||
>
|
||||
{data.metrics[0]?.value}
|
||||
@@ -344,10 +344,10 @@ function SolutionSection({ data }: { data: CaseDetailData }) {
|
||||
{data.timeline.map((t, i) => (
|
||||
<div key={i} className="flex gap-4">
|
||||
<div
|
||||
className="shrink-0 w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold"
|
||||
className="shrink-0 w-8 h-8 rounded-cta flex items-center justify-center text-xs font-bold"
|
||||
style={{
|
||||
backgroundColor: "var(--color-brand-soft)",
|
||||
color: "var(--color-brand)",
|
||||
backgroundColor: "var(--color-brand-bg)",
|
||||
color: "var(--color-brand-ink)",
|
||||
}}
|
||||
>
|
||||
{i + 1}
|
||||
@@ -421,31 +421,8 @@ function ResultsSection({ data }: { data: CaseDetailData }) {
|
||||
return (
|
||||
<section
|
||||
ref={resultsRef}
|
||||
className="relative py-20 sm:py-28 md:py-36 lg:py-44 overflow-hidden"
|
||||
style={{ background: "var(--color-brand)" }}
|
||||
className="relative bg-[#0B0A08] py-20 sm:py-28 md:py-36 lg:py-44 overflow-hidden"
|
||||
>
|
||||
{/* Background decoration */}
|
||||
<div className="absolute inset-0 pointer-events-none">
|
||||
<div
|
||||
className="absolute w-[600px] h-[600px] rounded-full opacity-[0.15] blur-[120px]"
|
||||
style={{
|
||||
background:
|
||||
"radial-gradient(circle, rgba(255,255,255,0.8), transparent 70%)",
|
||||
top: "-30%",
|
||||
right: "-10%",
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
className="absolute w-[400px] h-[400px] rounded-full opacity-[0.1] blur-[100px]"
|
||||
style={{
|
||||
background:
|
||||
"radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%)",
|
||||
bottom: "-20%",
|
||||
left: "10%",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="max-w-[1280px] mx-auto px-5 sm:px-8 lg:px-16 relative z-10">
|
||||
<ScrollReveal className="mb-16 sm:mb-20 text-center max-w-3xl mx-auto">
|
||||
<div
|
||||
@@ -474,15 +451,14 @@ function ResultsSection({ data }: { data: CaseDetailData }) {
|
||||
return (
|
||||
<div
|
||||
key={i}
|
||||
className="p-10 sm:p-12 text-center transition-all duration-150 hover:bg-white/[0.05] group relative overflow-hidden"
|
||||
style={{ backgroundColor: "var(--color-brand)" }}
|
||||
className="relative overflow-hidden border-t border-white/15 p-10 text-center transition-colors duration-hover hover:bg-white/[0.05] group sm:p-12"
|
||||
>
|
||||
{m.highlight && (
|
||||
<div className="absolute top-4 right-4 px-2 py-1 text-[10px] font-bold text-brand bg-white rounded-full">
|
||||
<div className="absolute top-4 right-4 px-2 py-1 text-[10px] font-bold text-brand bg-white rounded-cta">
|
||||
核心指标
|
||||
</div>
|
||||
)}
|
||||
<div className="font-sans tabular-nums text-[clamp(40px,8vw,64px)] font-black leading-none mb-3 text-white transition-transform duration-150 group-hover:scale-110">
|
||||
<div className="font-sans tabular-nums text-[clamp(40px,8vw,64px)] font-bold leading-none mb-3 text-white">
|
||||
{isNumeric && inView && !shouldReduceMotion ? (
|
||||
<AnimatedCounter
|
||||
value={num}
|
||||
@@ -519,7 +495,7 @@ function ResultsSection({ data }: { data: CaseDetailData }) {
|
||||
“{data.testimonial.quote}”
|
||||
</blockquote>
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="w-12 h-12 rounded-full bg-white/10 flex items-center justify-center">
|
||||
<div className="w-12 h-12 rounded-cta bg-white/10 flex items-center justify-center">
|
||||
<Building2 className="w-5 h-5 text-white/60" />
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user