Files

702 lines
20 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { coordinationServicesBundle } from '~/data/coordination-content'
import { faqContentBundle } from '~/data/faq-content'
import { medicalCentersByCityBundle } from '~/data/cities-content'
import { homeContentBundle } from '~/data/home-content'
import { infrastructureBundle } from '~/data/infrastructure-content'
import { newsContentBundle } from '~/data/news-content'
const home = useLocalized(homeContentBundle)
const newsContent = useLocalized(newsContentBundle)
const { mediaItems } = useMediaCenter()
const featuredHomeMedia = computed(() => {
const article = mediaItems.value.find((item) => item.mediaType === 'article')
const video = mediaItems.value.find((item) => item.mediaType === 'video')
if (!article && !video) return []
if (!article) return video ? [video] : []
if (!video) return [article]
const articleIndex = mediaItems.value.indexOf(article)
const videoIndex = mediaItems.value.indexOf(video)
return articleIndex < videoIndex ? [article, video] : [video, article]
})
const coordinationServices = useLocalized(coordinationServicesBundle)
const infrastructure = useLocalized(infrastructureBundle)
const medicalCentersByCity = useLocalized(medicalCentersByCityBundle)
const faqContent = useLocalized(faqContentBundle)
const featuredFaqItems = computed(() => faqContent.value.faqItems.slice(0, 4))
function getFaqPreview(item: (typeof faqContent.value.faqItems)[number]) {
const firstBlock = item.blocks[0]
if (!firstBlock || firstBlock.type !== 'paragraph') return ''
return firstBlock.parts
.map((part) => (part.kind === 'text' ? part.value : part.label))
.join('')
}
usePageSeo({
title: () => home.value.seo.title,
description: () => home.value.seo.description,
keywords: () => home.value.seo.keywords,
ogTitle: () => home.value.seo.ogTitle,
ogDescription: () => home.value.seo.ogDescription,
ogImage: '/images/hero.jpg'
})
const showAssessmentModal = ref(false)
</script>
<template>
<div>
<!-- ===== 宣传横幅(导航下方,不铺满以免低清图被拉伸发糊) ===== -->
<section class="promo-banner" aria-label="Promo banner">
<div class="container promo-banner__inner">
<img
class="promo-banner__img"
src="/images/home-promo-banner.jpg"
:alt="home.promoBanner.imageAlt"
width="3300"
height="1200"
decoding="async"
/>
</div>
</section>
<!-- ===== Hero ===== -->
<section id="top" class="hero">
<div class="container hero__grid">
<div class="hero__text">
<p class="hero__welcome">{{ home.hero.welcome }}</p>
<h1 class="hero__title">{{ home.hero.title }}</h1>
<p class="hero__sub">{{ home.hero.sub }}</p>
<div class="hero__cta">
<NuxtLink to="/cases" class="btn">{{ home.hero.ctaStories }}</NuxtLink>
<NuxtLink :to="{ path: '/', hash: '#process' }" class="btn btn--ghost">
{{ home.hero.ctaProcess }}
</NuxtLink>
</div>
<p class="hero__note">{{ home.hero.note }}</p>
</div>
<div class="hero__media">
<img src="/images/hero.jpg" :alt="home.hero.imageAlt" />
</div>
</div>
</section>
<!-- ===== Company intro + Free assessment ===== -->
<section id="assessment" class="section section--soft">
<div class="container intro__grid">
<div class="intro__about">
<p v-for="(para, i) in home.intro.paragraphs" :key="i" class="intro__p">{{ para }}</p>
</div>
<aside class="assess">
<h2 class="assess__h">{{ home.intro.assessmentTitle }}</h2>
<ul class="assess__list">
<li v-for="(item, i) in home.intro.assessmentItems" :key="i">{{ item }}</li>
</ul>
<button
type="button"
class="btn assess__btn"
@click="showAssessmentModal = true"
>
{{ home.intro.assessmentCta }}
</button>
</aside>
</div>
</section>
<!-- ===== Remote Case Evaluation / Second Opinion ===== -->
<section id="services" class="section">
<div class="container">
<h2 class="section__title">{{ home.secondOpinion.title }}</h2>
<p class="section__desc">{{ home.secondOpinion.desc }}</p>
<div class="opinion-pillars">
<article v-for="item in home.secondOpinion.pillars" :key="item.title" class="opinion-pillar">
<img :src="item.icon" :alt="item.title" class="opinion-pillar__icon" width="80" height="80" />
<h3 class="opinion-pillar__title">{{ item.title }}</h3>
<p class="opinion-pillar__text">{{ item.text }}</p>
</article>
</div>
</div>
</section>
<!-- ===== Cross-Border Coordination ===== -->
<section class="section section--soft">
<div class="container">
<h2 class="section__title">{{ home.coordination.title }}</h2>
<p class="section__desc">{{ home.coordination.desc }}</p>
<div class="coord-services">
<div class="coord-services__col">
<article
v-for="item in coordinationServices.left"
:key="item.title"
class="coord-item"
>
<img :src="item.icon" :alt="item.title" class="coord-item__icon" width="48" height="48" />
<div class="coord-item__body">
<h3 class="coord-item__title">{{ item.title }}</h3>
<p class="coord-item__text">{{ item.text }}</p>
</div>
</article>
</div>
<div class="coord-services__col">
<article
v-for="item in coordinationServices.right"
:key="item.title"
class="coord-item"
>
<img :src="item.icon" :alt="item.title" class="coord-item__icon" width="48" height="48" />
<div class="coord-item__body">
<h3 class="coord-item__title">{{ item.title }}</h3>
<p class="coord-item__text">{{ item.text }}</p>
</div>
</article>
</div>
</div>
</div>
</section>
<!-- ===== Executive Health Screening ===== -->
<section id="screening" class="section">
<div class="container">
<h2 class="section__title">{{ home.screening.title }}</h2>
<p class="section__desc">{{ home.screening.desc }}</p>
<div class="split">
<div class="split__media">
<img src="/images/screening.jpg" :alt="home.screening.imageAlt" />
</div>
<div class="split__text">
<p class="split__lead">{{ home.screening.lead }}</p>
<h3 class="split__sub">{{ home.screening.featuresTitle }}</h3>
<ul class="feature-list">
<li v-for="([t, d]) in home.screening.features" :key="t">
<strong>{{ t }}</strong> {{ d }}
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- ===== Real Patient Journeys ===== -->
<section id="stories" class="section section--soft">
<div class="container">
<h2 class="section__title">{{ home.caseStudy.title }}</h2>
<p class="section__desc">{{ home.caseStudy.desc }}</p>
<div class="split">
<div class="split__media">
<img
src="/images/cases/case-6.png"
:alt="home.caseStudy.imageAlt"
/>
</div>
<div class="split__text case-text">
<h3 class="case__h">{{ home.caseStudy.backgroundTitle }}</h3>
<p>{{ home.caseStudy.content.background }}</p>
<h3 class="case__h">{{ home.caseStudy.procedureTitle }}</h3>
<p>{{ home.caseStudy.content.procedure }}</p>
<h3 class="case__h">{{ home.caseStudy.outcomeTitle }}</h3>
<p>{{ home.caseStudy.content.outcome }}</p>
<NuxtLink to="/cases" class="case__more">{{ home.caseStudy.moreLink }}</NuxtLink>
</div>
</div>
</div>
</section>
<!-- ===== Specialized Clinical Infrastructure ===== -->
<section id="infrastructure" class="section">
<div class="container">
<h2 class="section__title">{{ home.infrastructure.title }}</h2>
<p class="section__desc">{{ home.infrastructure.desc }}</p>
<div class="infra-grid">
<div class="infra-row infra-row--3">
<article v-for="item in infrastructure.top" :key="item.title" class="infra-card">
<img :src="item.icon" :alt="item.title" class="infra-card__icon" width="56" height="56" />
<h3 class="infra-card__title">{{ item.title }}</h3>
<p class="infra-card__text">{{ item.text }}</p>
</article>
</div>
<div class="infra-row infra-row--2">
<article v-for="item in infrastructure.bottom" :key="item.title" class="infra-card">
<img :src="item.icon" :alt="item.title" class="infra-card__icon" width="56" height="56" />
<h3 class="infra-card__title">{{ item.title }}</h3>
<p class="infra-card__text">{{ item.text }}</p>
<ul v-if="'bullets' in item && item.bullets" class="infra-card__list">
<li v-for="b in item.bullets" :key="b">{{ b }}</li>
</ul>
</article>
</div>
</div>
</div>
</section>
<!-- ===== Regional Medical Centers by City ===== -->
<section class="section section--soft">
<div class="container">
<h2 class="section__title">{{ home.cities.title }}</h2>
<p class="section__desc">{{ home.cities.desc }}</p>
<div class="cities-grid">
<article v-for="city in medicalCentersByCity" :key="city.slug" class="city-card">
<div class="city-card__illus">
<img :src="city.image" :alt="city.alt" class="city-card__img" loading="lazy" />
</div>
<h3 class="city-card__name">{{ city.name }}</h3>
<p class="city-card__text">{{ city.text }}</p>
</article>
</div>
</div>
</section>
<!-- ===== Common Questions ===== -->
<section id="faq" class="section section--soft faq-home">
<div class="container">
<h2 class="section__title">{{ faqContent.faqPageTitle }}</h2>
<p class="section__desc">{{ faqContent.faqIntro[0].parts[0].value }}</p>
<div class="faq-home__grid">
<article v-for="item in featuredFaqItems" :key="item.id" class="faq-home__card">
<h3 class="faq-home__q">{{ item.question }}</h3>
<p class="faq-home__a">{{ getFaqPreview(item) }}</p>
</article>
</div>
</div>
</section>
<!-- ===== Step-by-Step Process ===== -->
<section id="process" class="section">
<div class="container">
<h2 class="section__title">{{ home.process.title }}</h2>
<p class="section__desc">{{ home.process.desc }}</p>
<ProcessFlow />
</div>
</section>
<!-- ===== Latest News ===== -->
<section id="media-center" class="section section--soft">
<div class="container">
<h2 class="section__title">{{ newsContent.homeSection.title }}</h2>
<p class="section__desc">{{ newsContent.homeSection.desc }}</p>
<template v-for="(item, i) in featuredHomeMedia" :key="item.mediaType + '-' + item.title + i">
<NewsCard
v-if="item.mediaType === 'article'"
:item="item"
:reverse="i % 2 === 1"
:read-original-label="newsContent.readOriginalLabel"
/>
<VideoCard
v-else
:item="item"
:reverse="i % 2 === 1"
:watch-youtube-label="newsContent.watchYoutubeLabel"
:watch-tiktok-label="newsContent.watchTiktokLabel"
/>
</template>
<div class="news-home__more">
<NuxtLink to="/news" class="case__more">{{ newsContent.homeSection.moreLink }}</NuxtLink>
</div>
</div>
</section>
<FreeAssessmentModal v-model="showAssessmentModal" />
</div>
</template>
<style scoped>
/* 首页导航下方宣传横幅:与下方 .container 内容同宽左右对齐,不铺满视口 */
.promo-banner {
margin: 0;
padding: 20px 0 0;
line-height: 0;
background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
}
.promo-banner__inner {
display: block;
}
.promo-banner__img {
display: block;
width: 100%;
height: auto;
}
/* Hero */
.hero {
background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
padding: 64px 0 56px;
}
.hero__grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 56px;
align-items: center;
}
.hero__welcome {
color: var(--blue);
font-weight: 700;
font-size: 18px;
margin-bottom: 12px;
}
.hero__title {
font-size: clamp(30px, 4vw, 50px);
line-height: 1.15;
font-weight: 800;
color: #0f2740;
}
.hero__sub {
margin-top: 18px;
font-size: 18px;
color: var(--muted);
}
.hero__cta {
margin-top: 28px;
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.hero__note {
margin-top: 18px;
color: var(--muted);
font-size: 15px;
}
.hero__media img {
width: 100%;
border-radius: 20px;
box-shadow: var(--shadow-lg);
}
/* Intro + assessment */
.intro__grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: 48px;
align-items: center;
}
.intro__p { color: #36506b; font-size: 16px; margin-bottom: 16px; }
.intro__p:last-child { margin-bottom: 0; }
.assess {
background: #fff;
border: 1px solid #e3ecf5;
border-radius: var(--radius);
padding: 32px;
box-shadow: var(--shadow);
}
.assess__h { font-size: 22px; font-weight: 800; color: #0f2740; }
.assess__list { margin: 18px 0 26px; padding-left: 20px; color: #36506b; }
.assess__list li { margin: 10px 0; }
.assess__btn { width: 100%; }
/* Remote Second Opinion — 三列:独立高清图标 + HTML 正文 */
.opinion-pillars {
margin-top: 40px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px 40px;
align-items: start;
}
.opinion-pillar {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.opinion-pillar__icon {
width: 80px;
height: 80px;
margin: 0 auto 12px;
flex-shrink: 0;
object-fit: contain;
}
.opinion-pillar__title {
font-size: 20px;
font-weight: 800;
color: #0f2740;
margin-bottom: 12px;
min-height: 1.4em;
}
.opinion-pillar__text {
font-size: 15px;
color: #36506b;
line-height: 1.65;
text-align: left;
width: 100%;
max-width: 360px;
margin: 0 auto;
}
/* Cross-Border Coordination — 双栏图标 + HTML 正文 */
.coord-services {
margin-top: 40px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px 56px;
align-items: start;
}
.coord-item {
display: flex;
gap: 16px;
align-items: flex-start;
margin-bottom: 28px;
}
.coord-item:last-child { margin-bottom: 0; }
.coord-item__icon {
width: 48px;
height: 48px;
flex-shrink: 0;
object-fit: contain;
}
.coord-item__body { flex: 1; min-width: 0; }
.coord-item__title {
font-size: 17px;
font-weight: 700;
color: #5ba4c7;
margin-bottom: 8px;
line-height: 1.35;
}
.coord-item__text {
font-size: 14.5px;
color: #36506b;
line-height: 1.65;
}
/* Split (image + text) */
.split {
margin-top: 40px;
display: grid;
grid-template-columns: 0.9fr 1.1fr;
gap: 48px;
align-items: start;
}
.split__media img {
width: 100%;
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.split__lead { font-weight: 700; color: #0f2740; font-size: 18px; }
.split__sub { margin: 22px 0 14px; font-size: 18px; font-weight: 800; color: var(--blue); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li {
position: relative;
padding-left: 26px;
color: #36506b;
font-size: 15px;
}
.feature-list li::before {
content: '';
position: absolute;
left: 0;
top: 8px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--teal);
}
.feature-list strong { color: #0f2740; }
/* Case text */
.case-text .case__h { color: var(--blue); font-size: 18px; font-weight: 800; margin-top: 18px; }
.case-text .case__h:first-child { margin-top: 0; }
.case-text p { color: #36506b; font-size: 15px; margin-top: 6px; }
.case__more {
display: inline-block;
margin-top: 20px;
color: var(--blue);
font-weight: 700;
}
/* Clinical Infrastructure — 上 3 下 2 */
.infra-grid {
margin-top: 40px;
display: flex;
flex-direction: column;
gap: 36px;
}
.infra-row--3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px 40px;
align-items: start;
}
.infra-row--2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 32px 48px;
max-width: 880px;
margin: 0 auto;
align-items: start;
}
.infra-card {
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
width: 100%;
}
.infra-card__icon {
width: 56px;
height: 56px;
object-fit: contain;
margin-bottom: 14px;
flex-shrink: 0;
}
.infra-card__title {
font-size: 17px;
font-weight: 700;
color: #5ba4c7;
line-height: 1.35;
margin: 0 0 10px;
width: 100%;
padding: 0 6px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-shrink: 0;
}
/* 同行标题统一占位高度,避免一行/两行混排导致正文起始不齐 */
.infra-row--3 .infra-card__title {
min-height: calc(17px * 1.35 * 3);
}
.infra-row--2 .infra-card__title {
min-height: calc(17px * 1.35 * 2);
}
.infra-card__text {
font-size: 14.5px;
color: #36506b;
line-height: 1.65;
text-align: left;
width: 100%;
max-width: 360px;
}
.infra-card__list {
margin: 10px 0 0;
padding-left: 20px;
text-align: left;
width: 100%;
max-width: 360px;
font-size: 14.5px;
color: #36506b;
line-height: 1.65;
}
.infra-card__list li { margin: 6px 0; }
/* Regional Medical Centers by City */
.cities-grid {
margin-top: 40px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px 36px;
align-items: stretch;
}
.city-card {
display: grid;
grid-template-rows: auto auto 1fr;
height: 100%;
}
.city-card__illus {
position: relative;
width: 100%;
max-width: 340px;
height: 226px;
margin: 0 auto;
display: flex;
align-items: flex-end;
justify-content: center;
}
.city-card__img {
width: 100%;
height: auto;
max-height: 100%;
display: block;
object-fit: contain;
object-position: bottom center;
-webkit-mask-image: radial-gradient(
ellipse 100% 96% at 50% 46%,
#000 78%,
transparent 100%
);
mask-image: radial-gradient(
ellipse 100% 96% at 50% 46%,
#000 78%,
transparent 100%
);
}
.city-card__name {
font-size: 20px;
font-weight: 800;
letter-spacing: 0.04em;
color: #1e3a5f;
margin: 16px 0 12px;
line-height: 1.2;
text-align: center;
}
.city-card__text {
font-size: 14.5px;
color: #36506b;
line-height: 1.65;
text-align: left;
margin: 0;
}
@media (max-width: 900px) {
.hero__grid,
.intro__grid,
.opinion-pillars,
.coord-services,
.split,
.cities-grid { grid-template-columns: 1fr; gap: 40px; }
.city-card__illus {
max-width: 100%;
height: 200px;
}
.infra-row--3,
.infra-row--2 { grid-template-columns: 1fr; max-width: none; }
.infra-row--3 .infra-card__title,
.infra-row--2 .infra-card__title { min-height: calc(17px * 1.35 * 2); }
.opinion-pillars { grid-template-columns: 1fr; }
.faq-home__grid { grid-template-columns: 1fr; }
.hero { padding: 36px 0; }
}
.faq-home__grid {
margin-top: 32px;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 24px;
}
.faq-home__card {
background: #fff;
border: 1px solid #e3ecf5;
border-radius: var(--radius);
padding: 24px;
box-shadow: var(--shadow);
}
.faq-home__q {
margin: 0 0 10px;
font-size: 18px;
font-weight: 800;
color: #0f2740;
line-height: 1.4;
}
.faq-home__a {
margin: 0;
color: #36506b;
font-size: 15px;
line-height: 1.7;
}
.faq-home__actions {
margin-top: 28px;
display: flex;
justify-content: center;
}
.news-home__more {
margin-top: 8px;
text-align: center;
}
</style>