1005 lines
26 KiB
Vue
1005 lines
26 KiB
Vue
<script setup lang="ts">
|
||
import { partnerWithUsContentBundle } from '~/data/partner-with-us-content'
|
||
|
||
const { locale } = useSiteLocale()
|
||
const content = useLocalized(partnerWithUsContentBundle)
|
||
const partnerForm = computed(() => content.value.partnerForm)
|
||
|
||
const isZh = computed(() => content.value.partnerHero.welcome === '与 优医 携手合作')
|
||
|
||
usePageSeo({
|
||
title: () =>
|
||
formatPageTitle(
|
||
isZh.value ? '与我们合作 — 全球医疗联盟' : 'Partner With Us — Global Healthcare Alliance',
|
||
isZh.value ? 'zh' : 'en'
|
||
),
|
||
description: () =>
|
||
isZh.value
|
||
? '与优医携手:加入跨境医疗网络——医院、转诊伙伴、出行服务与保险公司,连接全球患者与中国优质医疗。'
|
||
: 'Partner with UMedGlobal: join our cross-border medical network—hospitals, referral partners, travel concierge, and insurers—connecting global patients to care in China.',
|
||
ogImage: () => content.value.partnerHero.image
|
||
})
|
||
|
||
const form = reactive({
|
||
firstName: '',
|
||
lastName: '',
|
||
companyName: '',
|
||
country: '',
|
||
email: '',
|
||
category: '',
|
||
collaborate: ''
|
||
})
|
||
|
||
type FormErrors = {
|
||
firstName?: string
|
||
lastName?: string
|
||
companyName?: string
|
||
country?: string
|
||
email?: string
|
||
category?: string
|
||
collaborate?: string
|
||
}
|
||
|
||
const formErrors = reactive<FormErrors>({})
|
||
const submitting = ref(false)
|
||
const submitError = ref('')
|
||
const submitSuccess = ref('')
|
||
const successPanelRef = ref<HTMLElement | null>(null)
|
||
const SUCCESS_RESET_DELAY_MS = 5000
|
||
let successResetTimer: ReturnType<typeof setTimeout> | null = null
|
||
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
|
||
|
||
function resetFormFields() {
|
||
form.firstName = ''
|
||
form.lastName = ''
|
||
form.companyName = ''
|
||
form.country = ''
|
||
form.email = ''
|
||
form.category = ''
|
||
form.collaborate = ''
|
||
submitSuccess.value = ''
|
||
submitError.value = ''
|
||
}
|
||
|
||
function scheduleSuccessReset() {
|
||
if (successResetTimer) clearTimeout(successResetTimer)
|
||
successResetTimer = setTimeout(() => {
|
||
resetFormFields()
|
||
successResetTimer = null
|
||
}, SUCCESS_RESET_DELAY_MS)
|
||
}
|
||
|
||
onUnmounted(() => {
|
||
if (successResetTimer) clearTimeout(successResetTimer)
|
||
})
|
||
|
||
function clearFieldError(field: keyof FormErrors) {
|
||
delete formErrors[field]
|
||
}
|
||
|
||
function validateForm(): boolean {
|
||
const messages = partnerForm.value.validation
|
||
formErrors.firstName = undefined
|
||
formErrors.lastName = undefined
|
||
formErrors.companyName = undefined
|
||
formErrors.country = undefined
|
||
formErrors.email = undefined
|
||
formErrors.category = undefined
|
||
formErrors.collaborate = undefined
|
||
|
||
let valid = true
|
||
|
||
if (!form.firstName.trim()) {
|
||
formErrors.firstName = messages.firstNameRequired
|
||
valid = false
|
||
}
|
||
|
||
if (!form.lastName.trim()) {
|
||
formErrors.lastName = messages.lastNameRequired
|
||
valid = false
|
||
}
|
||
|
||
if (!form.companyName.trim()) {
|
||
formErrors.companyName = messages.companyNameRequired
|
||
valid = false
|
||
}
|
||
|
||
if (!form.country.trim()) {
|
||
formErrors.country = messages.countryRequired
|
||
valid = false
|
||
}
|
||
|
||
const email = form.email.trim()
|
||
if (!email) {
|
||
formErrors.email = messages.emailRequired
|
||
valid = false
|
||
} else if (!emailPattern.test(email)) {
|
||
formErrors.email = messages.emailInvalid
|
||
valid = false
|
||
}
|
||
|
||
if (!form.category) {
|
||
formErrors.category = messages.categoryRequired
|
||
valid = false
|
||
}
|
||
|
||
if (!form.collaborate.trim()) {
|
||
formErrors.collaborate = messages.collaborateRequired
|
||
valid = false
|
||
}
|
||
|
||
return valid
|
||
}
|
||
|
||
async function onSubmit() {
|
||
if (!validateForm()) return
|
||
|
||
submitting.value = true
|
||
submitError.value = ''
|
||
submitSuccess.value = ''
|
||
|
||
try {
|
||
const res = await $fetch<{ code: number; message: string }>('/api/forms/partner', {
|
||
method: 'POST',
|
||
body: {
|
||
lang: locale.value,
|
||
firstName: form.firstName.trim(),
|
||
lastName: form.lastName.trim(),
|
||
companyName: form.companyName.trim(),
|
||
country: form.country.trim(),
|
||
email: form.email.trim(),
|
||
category: form.category,
|
||
collaborate: form.collaborate.trim(),
|
||
},
|
||
})
|
||
|
||
if (res.code !== 200) {
|
||
submitError.value = res.message
|
||
return
|
||
}
|
||
|
||
submitSuccess.value = partnerForm.value.submitSuccess
|
||
await nextTick()
|
||
successPanelRef.value?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||
scheduleSuccessReset()
|
||
} catch {
|
||
submitError.value = locale.value === 'zh' ? '提交失败,请稍后重试。' : 'Submission failed. Please try again.'
|
||
} finally {
|
||
submitting.value = false
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<template>
|
||
<div class="pw-page">
|
||
<section class="pw-hero" aria-label="Partner with UMedGlobal">
|
||
<div class="container pw-hero__grid">
|
||
<div class="pw-hero__text">
|
||
<h1 class="pw-hero__welcome">{{ content.partnerHero.welcome }}</h1>
|
||
<p class="pw-hero__desc">{{ content.partnerHero.description }}</p>
|
||
<div class="pw-hero__cta">
|
||
<a :href="content.partnerHero.primaryCta.to" class="btn">
|
||
{{ content.partnerHero.primaryCta.label }}
|
||
</a>
|
||
</div>
|
||
</div>
|
||
<div class="pw-hero__media">
|
||
<img
|
||
:src="content.partnerHero.image"
|
||
:alt="content.partnerHero.imageAlt"
|
||
fetchpriority="high"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="pw-mission" aria-label="UMedGlobal mission">
|
||
<div class="pw-bar">
|
||
<div class="container">
|
||
<h2 class="pw-bar__title">{{ content.partnerMission.banner }}</h2>
|
||
</div>
|
||
</div>
|
||
<div class="pw-mission__body">
|
||
<div class="container">
|
||
<p class="pw-mission__text">{{ content.partnerMission.text }}</p>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="pw-bar" aria-label="Cross-border medical network">
|
||
<div class="container">
|
||
<h2 class="pw-bar__title">{{ content.partnerNetwork.banner }}</h2>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="pw-network" aria-label="Partner categories">
|
||
<div class="container">
|
||
<p class="pw-network__intro">{{ content.partnerNetwork.intro }}</p>
|
||
<div class="pw-network__grid">
|
||
<article
|
||
v-for="(cat, i) in content.partnerNetwork.categories"
|
||
:key="i"
|
||
class="pw-network__tile"
|
||
>
|
||
<div
|
||
class="pw-network__copy"
|
||
:class="`pw-network__copy--${cat.theme}`"
|
||
>
|
||
<h3 class="pw-network__title">{{ cat.title }}</h3>
|
||
<p class="pw-network__text">{{ cat.text }}</p>
|
||
</div>
|
||
<div class="pw-network__media">
|
||
<img :src="cat.image" :alt="cat.imageAlt" loading="lazy" />
|
||
</div>
|
||
</article>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
|
||
<section id="partner-collaboration" class="pw-collab" aria-label="Collaboration models">
|
||
<div class="pw-bar">
|
||
<div class="container">
|
||
<h2 class="pw-bar__title">{{ content.partnerCollaboration.banner }}</h2>
|
||
</div>
|
||
</div>
|
||
<div class="pw-collab__list">
|
||
<article
|
||
v-for="(model, i) in content.partnerCollaboration.models"
|
||
:key="i"
|
||
class="pw-collab__row"
|
||
:class="`pw-collab__row--${model.variant}`"
|
||
>
|
||
<div class="container pw-collab__inner">
|
||
<div
|
||
v-if="model.imageFirst"
|
||
class="pw-collab__media"
|
||
>
|
||
<img :src="model.image" :alt="model.imageAlt" loading="lazy" />
|
||
</div>
|
||
<div class="pw-collab__body">
|
||
<h3 class="pw-collab__title">{{ model.title }}</h3>
|
||
<p class="pw-collab__text">{{ model.text }}</p>
|
||
</div>
|
||
<div
|
||
v-if="!model.imageFirst"
|
||
class="pw-collab__media"
|
||
>
|
||
<img :src="model.image" :alt="model.imageAlt" loading="lazy" />
|
||
</div>
|
||
</div>
|
||
</article>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="pw-advantage" aria-label="UMedGlobal advantage">
|
||
<div class="pw-bar">
|
||
<div class="container">
|
||
<h2 class="pw-bar__title">{{ content.partnerAdvantage.banner }}</h2>
|
||
</div>
|
||
</div>
|
||
<div class="container">
|
||
<ul class="pw-advantage__grid">
|
||
<li
|
||
v-for="(item, i) in content.partnerAdvantage.items"
|
||
:key="i"
|
||
class="pw-advantage__item"
|
||
:class="`pw-advantage__item--${item.theme}`"
|
||
>
|
||
<h3 class="pw-advantage__item-title">{{ item.title }}</h3>
|
||
<p class="pw-advantage__item-text">{{ item.text }}</p>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="pw-apply" aria-label="Partner application">
|
||
<div class="pw-bar">
|
||
<div class="container">
|
||
<h2 class="pw-bar__title">{{ content.partnerClosing.title }}</h2>
|
||
</div>
|
||
</div>
|
||
<div class="container">
|
||
<p class="pw-apply__intro">{{ content.partnerClosing.text }}</p>
|
||
</div>
|
||
<div
|
||
id="partner-form"
|
||
class="container pw-apply__split"
|
||
>
|
||
<aside class="pw-apply__aside" aria-label="Next steps and contact">
|
||
<h3 class="pw-apply__aside-h">{{ content.partnerProcess.banner }}</h3>
|
||
<ol class="pw-apply__steps">
|
||
<li v-for="(step, i) in content.partnerProcess.steps" :key="i">
|
||
<strong>{{ step.title }}:</strong>
|
||
{{ step.text }}
|
||
</li>
|
||
</ol>
|
||
<h3 class="pw-apply__aside-h pw-apply__aside-h--spaced">
|
||
{{ content.partnerContact.banner }}
|
||
</h3>
|
||
<p class="pw-apply__contact">
|
||
<strong>{{ content.partnerContact.emailLabel }}</strong>
|
||
<a :href="`mailto:${content.partnerContact.email}`">{{ content.partnerContact.email }}</a>
|
||
</p>
|
||
<p class="pw-apply__contact-note">({{ content.partnerContact.emailNote }})</p>
|
||
</aside>
|
||
<div
|
||
v-if="submitSuccess"
|
||
ref="successPanelRef"
|
||
class="pw-form__success-panel"
|
||
role="status"
|
||
>
|
||
<p class="pw-form__success-title">
|
||
{{ locale === 'zh' ? '提交成功' : 'Submitted successfully' }}
|
||
</p>
|
||
<p class="pw-form__success-text">{{ submitSuccess }}</p>
|
||
<p class="pw-form__success-hint">
|
||
{{ locale === 'zh' ? '约 5 秒后返回表单' : 'Returning to the form in about 5 seconds' }}
|
||
</p>
|
||
</div>
|
||
<form
|
||
v-else
|
||
class="pw-form"
|
||
:lang="locale"
|
||
novalidate
|
||
@submit.prevent="onSubmit"
|
||
>
|
||
<div class="pw-form__row pw-form__row--2">
|
||
<label class="pw-field">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.firstName.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<input
|
||
v-model="form.firstName"
|
||
type="text"
|
||
class="pw-field__input"
|
||
:class="{ 'pw-field__input--error': formErrors.firstName }"
|
||
autocomplete="given-name"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.firstName ? 'true' : undefined"
|
||
:aria-describedby="formErrors.firstName ? 'pw-first-name-error' : undefined"
|
||
@input="clearFieldError('firstName')"
|
||
/>
|
||
<p
|
||
v-if="formErrors.firstName"
|
||
id="pw-first-name-error"
|
||
class="pw-field__error"
|
||
role="alert"
|
||
>
|
||
{{ formErrors.firstName }}
|
||
</p>
|
||
</label>
|
||
<label class="pw-field">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.lastName.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<input
|
||
v-model="form.lastName"
|
||
type="text"
|
||
class="pw-field__input"
|
||
:class="{ 'pw-field__input--error': formErrors.lastName }"
|
||
autocomplete="family-name"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.lastName ? 'true' : undefined"
|
||
:aria-describedby="formErrors.lastName ? 'pw-last-name-error' : undefined"
|
||
@input="clearFieldError('lastName')"
|
||
/>
|
||
<p
|
||
v-if="formErrors.lastName"
|
||
id="pw-last-name-error"
|
||
class="pw-field__error"
|
||
role="alert"
|
||
>
|
||
{{ formErrors.lastName }}
|
||
</p>
|
||
</label>
|
||
</div>
|
||
<div class="pw-form__row pw-form__row--2">
|
||
<label class="pw-field">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.companyName.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<input
|
||
v-model="form.companyName"
|
||
type="text"
|
||
class="pw-field__input"
|
||
:class="{ 'pw-field__input--error': formErrors.companyName }"
|
||
autocomplete="organization"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.companyName ? 'true' : undefined"
|
||
:aria-describedby="formErrors.companyName ? 'pw-company-name-error' : undefined"
|
||
@input="clearFieldError('companyName')"
|
||
/>
|
||
<p
|
||
v-if="formErrors.companyName"
|
||
id="pw-company-name-error"
|
||
class="pw-field__error"
|
||
role="alert"
|
||
>
|
||
{{ formErrors.companyName }}
|
||
</p>
|
||
</label>
|
||
<label class="pw-field">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.country.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<input
|
||
v-model="form.country"
|
||
type="text"
|
||
class="pw-field__input"
|
||
:class="{ 'pw-field__input--error': formErrors.country }"
|
||
autocomplete="country-name"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.country ? 'true' : undefined"
|
||
:aria-describedby="formErrors.country ? 'pw-country-error' : undefined"
|
||
@input="clearFieldError('country')"
|
||
/>
|
||
<p
|
||
v-if="formErrors.country"
|
||
id="pw-country-error"
|
||
class="pw-field__error"
|
||
role="alert"
|
||
>
|
||
{{ formErrors.country }}
|
||
</p>
|
||
</label>
|
||
</div>
|
||
<label class="pw-field pw-field--full">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.email.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<input
|
||
v-model="form.email"
|
||
type="email"
|
||
class="pw-field__input"
|
||
:class="{ 'pw-field__input--error': formErrors.email }"
|
||
autocomplete="email"
|
||
inputmode="email"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.email ? 'true' : undefined"
|
||
:aria-describedby="formErrors.email ? 'pw-email-error' : undefined"
|
||
@input="clearFieldError('email')"
|
||
/>
|
||
<p v-if="formErrors.email" id="pw-email-error" class="pw-field__error" role="alert">
|
||
{{ formErrors.email }}
|
||
</p>
|
||
</label>
|
||
<label class="pw-field pw-field--full">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.category.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<select
|
||
v-model="form.category"
|
||
class="pw-field__select"
|
||
:class="{ 'pw-field__select--error': formErrors.category }"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.category ? 'true' : undefined"
|
||
:aria-describedby="formErrors.category ? 'pw-category-error' : undefined"
|
||
@change="clearFieldError('category')"
|
||
>
|
||
<option
|
||
v-for="opt in partnerForm.fields.category.options"
|
||
:key="opt.value"
|
||
:value="opt.value"
|
||
:disabled="!opt.value"
|
||
>
|
||
{{ opt.label }}
|
||
</option>
|
||
</select>
|
||
<p v-if="formErrors.category" id="pw-category-error" class="pw-field__error" role="alert">
|
||
{{ formErrors.category }}
|
||
</p>
|
||
</label>
|
||
<label class="pw-field pw-field--full">
|
||
<span class="pw-field__label">
|
||
{{ partnerForm.fields.collaborate.label }}
|
||
<span class="pw-field__req" aria-hidden="true">*</span>
|
||
</span>
|
||
<textarea
|
||
v-model="form.collaborate"
|
||
class="pw-field__textarea"
|
||
:class="{ 'pw-field__textarea--error': formErrors.collaborate }"
|
||
rows="5"
|
||
:placeholder="partnerForm.fields.collaborate.placeholder"
|
||
aria-required="true"
|
||
:aria-invalid="formErrors.collaborate ? 'true' : undefined"
|
||
:aria-describedby="formErrors.collaborate ? 'pw-collaborate-error' : undefined"
|
||
@input="clearFieldError('collaborate')"
|
||
/>
|
||
<p
|
||
v-if="formErrors.collaborate"
|
||
id="pw-collaborate-error"
|
||
class="pw-field__error"
|
||
role="alert"
|
||
>
|
||
{{ formErrors.collaborate }}
|
||
</p>
|
||
</label>
|
||
<p v-if="submitError" class="pw-field__error pw-form__submit-error" role="alert">{{ submitError }}</p>
|
||
<button type="submit" class="pw-form__submit" :disabled="submitting">
|
||
{{ submitting ? (locale === 'zh' ? '提交中…' : 'Submitting…') : partnerForm.submitLabel }}
|
||
</button>
|
||
</form>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</template>
|
||
|
||
<style scoped>
|
||
.pw-page {
|
||
--pw-bar: var(--section-bar);
|
||
--pw-heading: #4a6fa5;
|
||
--pw-aside: #48a4fc;
|
||
--pw-submit: #241c31;
|
||
}
|
||
|
||
/* Hero — 与首页 hero 同款浅色双栏布局 */
|
||
.pw-hero {
|
||
background: linear-gradient(180deg, #f3f9ff 0%, #ffffff 100%);
|
||
padding: 56px 0 48px;
|
||
}
|
||
.pw-hero__grid {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
gap: 48px 56px;
|
||
align-items: center;
|
||
}
|
||
.pw-hero__welcome {
|
||
margin: 0 0 20px;
|
||
font-size: clamp(32px, 4.2vw, 52px);
|
||
line-height: 1.12;
|
||
font-weight: 800;
|
||
color: #0f2740;
|
||
}
|
||
.pw-hero__desc {
|
||
margin: 0;
|
||
font-size: clamp(18px, 2vw, 21px);
|
||
line-height: 1.7;
|
||
color: var(--muted);
|
||
}
|
||
.pw-hero__cta {
|
||
margin-top: 28px;
|
||
display: flex;
|
||
gap: 16px;
|
||
flex-wrap: wrap;
|
||
}
|
||
.pw-hero__media img {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
border-radius: 20px;
|
||
box-shadow: var(--shadow-lg);
|
||
object-fit: cover;
|
||
}
|
||
|
||
.pw-mission {
|
||
background: #fff;
|
||
padding-top: 24px;
|
||
}
|
||
.pw-mission__body {
|
||
padding: 28px 0 36px;
|
||
text-align: center;
|
||
}
|
||
.pw-mission__text {
|
||
margin: 0 auto;
|
||
max-width: 920px;
|
||
font-size: 15.5px;
|
||
line-height: 1.75;
|
||
color: #2d4055;
|
||
}
|
||
|
||
.pw-bar {
|
||
background: var(--pw-bar);
|
||
padding: 16px 0;
|
||
}
|
||
.pw-bar__title {
|
||
margin: 0;
|
||
text-align: center;
|
||
font-size: clamp(16px, 2vw, 20px);
|
||
font-weight: 700;
|
||
color: #fff;
|
||
line-height: 1.4;
|
||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
|
||
}
|
||
|
||
/* 2×2:左色块文案 + 右图 */
|
||
.pw-network {
|
||
background: #fff;
|
||
padding: 28px 0 40px;
|
||
}
|
||
.pw-network__intro {
|
||
margin: 0 auto 28px;
|
||
max-width: 880px;
|
||
font-size: 15.5px;
|
||
line-height: 1.75;
|
||
color: #2d4055;
|
||
text-align: center;
|
||
}
|
||
.pw-network__grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 20px;
|
||
}
|
||
.pw-network__tile {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
min-height: 220px;
|
||
overflow: hidden;
|
||
}
|
||
.pw-network__copy {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
padding: 22px 20px;
|
||
color: #fff;
|
||
}
|
||
.pw-network__copy--purple {
|
||
background: #6b5b95;
|
||
}
|
||
.pw-network__copy--ochre {
|
||
background: #8b6914;
|
||
}
|
||
.pw-network__copy--orange {
|
||
background: #b85c38;
|
||
}
|
||
.pw-network__copy--green {
|
||
background: #2d5a3d;
|
||
}
|
||
.pw-network__title {
|
||
margin: 0 0 12px;
|
||
font-size: clamp(15px, 1.6vw, 17px);
|
||
font-weight: 700;
|
||
line-height: 1.35;
|
||
}
|
||
.pw-network__text {
|
||
margin: 0;
|
||
font-size: 14px;
|
||
line-height: 1.65;
|
||
font-style: italic;
|
||
opacity: 0.95;
|
||
}
|
||
.pw-network__media {
|
||
background: #eef2f6;
|
||
min-height: 0;
|
||
}
|
||
.pw-network__media img {
|
||
width: 100%;
|
||
height: 100%;
|
||
min-height: 220px;
|
||
object-fit: cover;
|
||
display: block;
|
||
}
|
||
|
||
/* 合作模式:交替图文 + 中间浅蓝行 */
|
||
.pw-collab {
|
||
scroll-margin-top: calc(var(--header-h) + 12px);
|
||
}
|
||
.pw-collab__list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.pw-collab__row {
|
||
padding: 36px 0;
|
||
background: #fff;
|
||
}
|
||
.pw-collab__row--alt {
|
||
background: #e8f4fc;
|
||
}
|
||
.pw-collab__inner {
|
||
display: grid;
|
||
grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
|
||
gap: 36px 40px;
|
||
align-items: center;
|
||
}
|
||
.pw-collab__media img {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
object-fit: cover;
|
||
}
|
||
.pw-collab__title {
|
||
margin: 0 0 14px;
|
||
font-size: clamp(17px, 2vw, 21px);
|
||
font-weight: 700;
|
||
color: var(--pw-heading);
|
||
line-height: 1.35;
|
||
}
|
||
.pw-collab__row--alt .pw-collab__title,
|
||
.pw-collab__row--alt .pw-collab__text {
|
||
color: #2a4a6e;
|
||
}
|
||
.pw-collab__text {
|
||
margin: 0;
|
||
font-size: 15.5px;
|
||
line-height: 1.75;
|
||
color: #2d4055;
|
||
}
|
||
|
||
/* 优势三栏色块 */
|
||
.pw-advantage {
|
||
background: #fff;
|
||
padding-bottom: 40px;
|
||
}
|
||
.pw-advantage__grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 16px;
|
||
margin: 24px 0 0;
|
||
padding: 0;
|
||
list-style: none;
|
||
}
|
||
.pw-advantage__item {
|
||
padding: 28px 22px 32px;
|
||
min-height: 200px;
|
||
}
|
||
.pw-advantage__item--grey {
|
||
background: #e8e8e8;
|
||
}
|
||
.pw-advantage__item--mint {
|
||
background: #e0f0e8;
|
||
}
|
||
.pw-advantage__item--lavender {
|
||
background: #e8e4f0;
|
||
}
|
||
.pw-advantage__item-title {
|
||
margin: 0 0 14px;
|
||
font-size: 17px;
|
||
font-weight: 700;
|
||
color: #1e1e1e;
|
||
line-height: 1.35;
|
||
text-align: center;
|
||
}
|
||
.pw-advantage__item-text {
|
||
margin: 0;
|
||
font-size: 15px;
|
||
line-height: 1.7;
|
||
color: #2d4055;
|
||
text-align: left;
|
||
}
|
||
|
||
/* 申请区:标题条 + 引言 + 左栏 + 表单 */
|
||
.pw-apply {
|
||
background: #fff;
|
||
padding-bottom: 48px;
|
||
scroll-margin-top: calc(var(--header-h) + 12px);
|
||
}
|
||
.pw-apply__intro {
|
||
margin: 0 auto 28px;
|
||
max-width: 920px;
|
||
padding: 28px 0 0;
|
||
font-size: 15.5px;
|
||
line-height: 1.75;
|
||
color: #2d4055;
|
||
text-align: center;
|
||
}
|
||
.pw-apply__split {
|
||
display: grid;
|
||
grid-template-columns: minmax(260px, 340px) 1fr;
|
||
gap: 0;
|
||
align-items: stretch;
|
||
max-width: var(--maxw);
|
||
}
|
||
.pw-apply__aside {
|
||
background: var(--pw-aside);
|
||
color: #fff;
|
||
padding: 32px 28px;
|
||
}
|
||
.pw-apply__aside-h {
|
||
margin: 0 0 16px;
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
text-align: center;
|
||
line-height: 1.35;
|
||
}
|
||
.pw-apply__aside-h--spaced {
|
||
margin-top: 28px;
|
||
}
|
||
.pw-apply__steps {
|
||
margin: 0;
|
||
padding: 0 0 0 18px;
|
||
font-size: 14.5px;
|
||
line-height: 1.7;
|
||
}
|
||
.pw-apply__steps li {
|
||
margin-bottom: 12px;
|
||
}
|
||
.pw-apply__steps li::marker {
|
||
font-weight: 700;
|
||
}
|
||
.pw-apply__steps li:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
.pw-apply__contact {
|
||
margin: 0 0 6px;
|
||
font-size: 14.5px;
|
||
line-height: 1.65;
|
||
text-align: left;
|
||
}
|
||
.pw-apply__contact a {
|
||
color: #fff;
|
||
text-decoration: underline;
|
||
}
|
||
.pw-apply__contact a:hover {
|
||
opacity: 0.9;
|
||
}
|
||
.pw-apply__contact-note {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
opacity: 0.9;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.pw-form {
|
||
background: #fff;
|
||
padding: 32px 36px 36px;
|
||
border: 1px solid #e2eaf2;
|
||
border-left: none;
|
||
}
|
||
.pw-form__row {
|
||
display: grid;
|
||
gap: 18px;
|
||
margin-bottom: 18px;
|
||
}
|
||
.pw-form__row--2 {
|
||
grid-template-columns: repeat(2, 1fr);
|
||
}
|
||
.pw-field {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
}
|
||
.pw-field--full {
|
||
margin-bottom: 18px;
|
||
}
|
||
.pw-field__label {
|
||
font-size: 14px;
|
||
font-weight: 600;
|
||
color: #2c2c54;
|
||
}
|
||
.pw-field__req {
|
||
color: #e53935;
|
||
}
|
||
.pw-field__error {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
line-height: 1.45;
|
||
color: #c62828;
|
||
}
|
||
.pw-field__input,
|
||
.pw-field__textarea,
|
||
.pw-field__select {
|
||
width: 100%;
|
||
font-family: inherit;
|
||
font-size: 15px;
|
||
color: var(--ink);
|
||
background: #fff;
|
||
border: 1px solid #c5c5c5;
|
||
border-radius: 2px;
|
||
padding: 10px 12px;
|
||
}
|
||
.pw-field__input--error,
|
||
.pw-field__textarea--error,
|
||
.pw-field__select--error {
|
||
border-color: #e53935;
|
||
}
|
||
.pw-field__input--error:focus,
|
||
.pw-field__textarea--error:focus,
|
||
.pw-field__select--error:focus {
|
||
border-color: #e53935;
|
||
box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
|
||
}
|
||
.pw-field__textarea {
|
||
resize: vertical;
|
||
min-height: 120px;
|
||
}
|
||
.pw-field__select {
|
||
cursor: pointer;
|
||
height: 42px;
|
||
}
|
||
.pw-form__submit:disabled {
|
||
opacity: 0.7;
|
||
cursor: not-allowed;
|
||
}
|
||
.pw-form__submit-error {
|
||
margin-bottom: 12px;
|
||
}
|
||
.pw-form__success-panel {
|
||
background: #fff;
|
||
border: 1px solid #e2eaf2;
|
||
border-left: none;
|
||
padding: 36px 28px;
|
||
text-align: center;
|
||
}
|
||
.pw-form__success-title {
|
||
margin: 0 0 10px;
|
||
font-size: 22px;
|
||
font-weight: 800;
|
||
color: #047857;
|
||
}
|
||
.pw-form__success-text {
|
||
margin: 0;
|
||
font-size: 15px;
|
||
line-height: 1.7;
|
||
color: #36506b;
|
||
}
|
||
.pw-form__success-hint {
|
||
margin: 14px 0 0;
|
||
font-size: 13px;
|
||
color: #64748b;
|
||
}
|
||
.pw-form__submit {
|
||
display: block;
|
||
width: 100%;
|
||
min-height: 48px;
|
||
margin-top: 8px;
|
||
font-family: inherit;
|
||
font-size: 16px;
|
||
font-weight: 600;
|
||
color: #fff;
|
||
background: var(--pw-submit);
|
||
border: none;
|
||
border-radius: 2px;
|
||
cursor: pointer;
|
||
transition: background 0.18s ease;
|
||
}
|
||
.pw-form__submit:hover {
|
||
background: #1a1528;
|
||
}
|
||
|
||
@media (max-width: 900px) {
|
||
.pw-hero__grid {
|
||
grid-template-columns: 1fr;
|
||
gap: 32px;
|
||
}
|
||
.pw-hero__media {
|
||
max-width: 560px;
|
||
margin: 0 auto;
|
||
width: 100%;
|
||
}
|
||
.pw-network__grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.pw-network__tile {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.pw-network__media img {
|
||
min-height: 200px;
|
||
}
|
||
.pw-collab__inner {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.pw-collab__row--alt .pw-collab__inner .pw-collab__media {
|
||
order: 2;
|
||
}
|
||
.pw-advantage__grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.pw-apply__split {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.pw-form {
|
||
border-left: 1px solid #e2eaf2;
|
||
}
|
||
.pw-form__row--2 {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 640px) {
|
||
.pw-hero {
|
||
padding: 36px 0 32px;
|
||
}
|
||
.pw-form {
|
||
padding: 24px 18px 28px;
|
||
}
|
||
.pw-apply__aside {
|
||
padding: 24px 20px;
|
||
}
|
||
}
|
||
</style>
|