wp后台创建新页面选择联系我们页面
/* CSS变量定义 */
:root {
--bw-bg-primary: #ffffff;
--bw-bg-secondary: #f8fafc;
--bw-bg-card: #ffffff;
--bw-text-primary: #1a202c;
--bw-text-secondary: #4a5568;
--bw-text-muted: #a0aec0;
--bw-border: #e2e8f0;
--bw-accent: #3b82f6;
--bw-accent-light: #60a5fa;
--bw-accent-dark: #2563eb;
--bw-accent-glow: rgba(59, 130, 246, 0.15);
--bw-shadow: rgba(0, 0, 0, 0.06);
--bw-shadow-hover: rgba(0, 0, 0, 0.1);
--bw-gradient-start: #3b82f6;
--bw-gradient-end: #8b5cf6;
--bw-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 全局重置 */
.bw-page-wrapper {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
color: var(--bw-text-primary);
background: var(--bw-bg-primary);
min-height: 100vh;
overflow-x: hidden;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* ============================================
Hero 区域
============================================ */
.bw-hero {
background: linear-gradient(135deg, var(--bw-bg-primary) 0%, var(--bw-bg-secondary) 100%);
padding: 100px 20px;
position: relative;
overflow: hidden;
}
.bw-hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 30% 20%, var(--bw-accent-glow) 0%, transparent 50%),
radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
pointer-events: none;
}
.bw-hero .container {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: flex-start;
gap: 60px;
position: relative;
z-index: 1;
}
.bw-hero-content {
animation: fadeInLeft 0.8s ease-out;
flex: 1;
min-width: 0;
}
.bw-hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: linear-gradient(135deg, var(--bw-accent-glow), transparent);
border: 1px solid var(--bw-accent);
border-radius: 100px;
font-size: 14px;
font-weight: 500;
color: var(--bw-accent);
margin-bottom: 24px;
}
.bw-hero-badge svg {
width: 16px;
height: 16px;
}
.bw-hero h1 {
font-size: 52px;
font-weight: 800;
line-height: 1.15;
margin-bottom: 20px;
color: var(--bw-text-primary);
letter-spacing: -0.03em;
}
.bw-hero h1 span {
display: block;
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-gradient-end) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.bw-hero-description {
font-size: 18px;
color: var(--bw-text-secondary);
margin-bottom: 36px;
line-height: 1.8;
}
.bw-hero-buttons {
display: flex;
gap: 16px;
flex-wrap: wrap;
}
.bw-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 16px 32px;
border-radius: 14px;
font-size: 16px;
font-weight: 600;
text-decoration: none;
transition: var(--bw-transition);
cursor: pointer;
border: none;
min-width: 170px;
}
.bw-btn-primary {
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-accent-dark) 100%);
color: #ffffff;
box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.bw-btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 12px 32px rgba(59, 130, 246, 0.45);
}
.bw-btn-secondary {
background: var(--bw-bg-card);
color: var(--bw-accent);
border: 2px solid var(--bw-accent);
}
.bw-btn-secondary:hover {
background: var(--bw-accent);
color: #ffffff;
}
.bw-btn svg {
width: 20px;
height: 20px;
}
/* 头像区域 */
.bw-hero-visual {
position: relative;
flex: 0 0 auto;
width: 400px;
height: 400px;
}
.bw-hero-graphic {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%) translateY(-22%);
width: 320px;
height: 320px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.bw-avatar-wrapper {
position: relative;
margin-bottom: 32px;
}
.bw-avatar-ring {
position: relative;
width: 280px;
height: 280px;
border-radius: 50%;
padding: 8px;
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-gradient-end) 100%);
box-shadow: 0 20px 60px rgba(59, 130, 246, 0.35);
animation: avatar-pulse 3s ease-in-out infinite;
}
.bw-avatar-ring::before {
content: '';
position: absolute;
top: -4px;
left: -4px;
right: -4px;
bottom: -4px;
border-radius: 50%;
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-gradient-end) 100%);
z-index: -1;
filter: blur(15px);
opacity: 0.6;
}
.bw-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
background: var(--bw-bg-card);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border: 4px solid var(--bw-bg-card);
}
.bw-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
border-radius: 50%;
}
.bw-verified-badge {
position: absolute;
bottom: 12px;
right: 12px;
width: 48px;
height: 48px;
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-gradient-end) 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
border: 4px solid var(--bw-bg-card);
box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}
.bw-verified-badge svg {
width: 24px;
height: 24px;
color: white;
}
.bw-avatar-info {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: var(--bw-bg-card);
border: 1px solid var(--bw-accent);
border-radius: 100px;
box-shadow: 0 8px 24px var(--bw-shadow);
}
.bw-avatar-info svg {
width: 18px;
height: 18px;
}
.bw-avatar-info span {
font-size: 14px;
font-weight: 600;
color: var(--bw-accent);
}
/* 浮动元素 */
.bw-float-element {
position: absolute;
background: var(--bw-bg-card);
border: 1px solid var(--bw-border);
border-radius: 16px;
padding: 16px 24px;
box-shadow: 0 12px 32px var(--bw-shadow);
display: flex;
align-items: center;
gap: 14px;
font-size: 14px;
font-weight: 600;
color: var(--bw-text-primary);
animation: float 3s ease-in-out infinite;
backdrop-filter: blur(10px);
}
.bw-float-element.element-1 {
top: 5%;
right: -5%;
animation-delay: 0s;
border-left: 3px solid var(--bw-accent);
}
.bw-float-element.element-2 {
bottom: 25%;
left: -8%;
animation-delay: 0.5s;
border-left: 3px solid #8b5cf6;
}
.bw-float-element svg {
width: 26px;
height: 26px;
}
/* ============================================
功能特性栏
============================================ */
.bw-features {
background: var(--bw-bg-secondary);
padding: 50px 20px;
border-top: 1px solid var(--bw-border);
border-bottom: 1px solid var(--bw-border);
}
.bw-features .container {
max-width: 1200px;
margin: 0 auto;
}
.bw-features-grid {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 24px;
}
.bw-feature-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 28px 16px;
background: var(--bw-bg-card);
border: 1px solid var(--bw-border);
border-radius: 20px;
transition: var(--bw-transition);
position: relative;
overflow: hidden;
}
.bw-feature-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--bw-accent), var(--bw-gradient-end));
transform: scaleX(0);
transition: var(--bw-transition);
}
.bw-feature-item:hover {
transform: translateY(-6px);
box-shadow: 0 16px 40px var(--bw-shadow);
border-color: var(--bw-accent);
}
.bw-feature-item:hover::before {
transform: scaleX(1);
}
.bw-feature-icon {
width: 56px;
height: 56px;
background: linear-gradient(135deg, var(--bw-accent-glow), transparent);
border: 1px solid var(--bw-accent);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
}
.bw-feature-icon svg {
width: 26px;
height: 26px;
}
.bw-feature-title {
font-size: 15px;
font-weight: 600;
color: var(--bw-text-primary);
margin-bottom: 6px;
}
.bw-feature-desc {
font-size: 12px;
color: var(--bw-text-muted);
}
/* ============================================
关于我们/愿景区域
============================================ */
.bw-about {
padding: 100px 20px;
background: var(--bw-bg-primary);
}
.bw-about .container {
max-width: 1200px;
margin: 0 auto;
}
.bw-section-header {
text-align: center;
margin-bottom: 60px;
}
.bw-section-tag {
display: inline-block;
padding: 8px 20px;
background: linear-gradient(135deg, var(--bw-accent-glow), transparent);
border: 1px solid var(--bw-accent);
border-radius: 100px;
font-size: 13px;
font-weight: 600;
color: var(--bw-accent);
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 1.5px;
}
.bw-section-title {
font-size: 40px;
font-weight: 800;
color: var(--bw-text-primary);
margin-bottom: 16px;
letter-spacing: -0.02em;
}
.bw-section-desc {
font-size: 17px;
color: var(--bw-text-secondary);
max-width: 650px;
margin: 0 auto;
line-height: 1.8;
}
.bw-about-grid {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 32px;
}
.bw-about-card {
background: var(--bw-bg-card);
border: 1px solid var(--bw-border);
border-radius: 24px;
padding: 48px;
transition: var(--bw-transition);
position: relative;
overflow: hidden;
}
.bw-about-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--bw-accent), var(--bw-gradient-end));
}
.bw-about-card:hover {
box-shadow: 0 20px 60px var(--bw-shadow);
transform: translateY(-4px);
}
.bw-about-card-primary {
background: linear-gradient(135deg, var(--bw-bg-card) 0%, var(--bw-bg-secondary) 100%);
}
.bw-about-card h3 {
font-size: 26px;
font-weight: 700;
color: var(--bw-text-primary);
margin-bottom: 24px;
display: flex;
align-items: center;
gap: 14px;
}
.bw-about-card h3 svg {
width: 36px;
height: 36px;
}
.bw-about-card p {
font-size: 16px;
color: var(--bw-text-secondary);
line-height: 1.9;
margin-bottom: 20px;
}
.bw-about-card:last-child {
display: flex;
flex-direction: column;
gap: 24px;
}
.bw-about-small-card {
background: var(--bw-bg-secondary);
border: 1px solid var(--bw-border);
border-radius: 20px;
padding: 32px;
flex: 1;
transition: var(--bw-transition);
position: relative;
overflow: hidden;
}
.bw-about-small-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 0;
background: linear-gradient(180deg, var(--bw-accent), var(--bw-gradient-end));
transition: var(--bw-transition);
}
.bw-about-small-card:hover {
background: var(--bw-bg-card);
box-shadow: 0 12px 32px var(--bw-shadow);
}
.bw-about-small-card:hover::before {
height: 100%;
}
.bw-about-small-card h4 {
font-size: 19px;
font-weight: 600;
color: var(--bw-text-primary);
margin-bottom: 14px;
display: flex;
align-items: center;
gap: 12px;
}
.bw-about-small-card h4 svg {
width: 26px;
height: 26px;
}
.bw-about-small-card p {
font-size: 14px;
color: var(--bw-text-secondary);
line-height: 1.8;
margin-bottom: 0;
}
/* ============================================
联系方式区域
============================================ */
.bw-contact {
padding: 100px 20px;
background: linear-gradient(180deg, var(--bw-bg-secondary) 0%, var(--bw-bg-primary) 100%);
}
.bw-contact .container {
max-width: 1200px;
margin: 0 auto;
}
.bw-contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
}
.bw-contact-card {
background: var(--bw-bg-card);
border: 1px solid var(--bw-border);
border-radius: 24px;
padding: 48px;
transition: var(--bw-transition);
position: relative;
overflow: hidden;
}
.bw-contact-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--bw-accent), var(--bw-gradient-end));
}
.bw-contact-card:hover {
box-shadow: 0 20px 60px var(--bw-shadow);
transform: translateY(-4px);
}
.bw-contact-card h3 {
font-size: 26px;
font-weight: 700;
color: var(--bw-text-primary);
margin-bottom: 10px;
}
.bw-contact-card > p {
font-size: 15px;
color: var(--bw-text-secondary);
margin-bottom: 32px;
}
.bw-contact-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.bw-contact-item {
display: flex;
align-items: center;
gap: 18px;
padding: 22px;
background: var(--bw-bg-secondary);
border: 1px solid var(--bw-border);
border-radius: 18px;
transition: var(--bw-transition);
text-decoration: none;
color: inherit;
}
.bw-contact-item:hover {
background: linear-gradient(135deg, var(--bw-accent-glow), transparent);
border-color: var(--bw-accent);
transform: translateX(8px);
}
.bw-contact-icon {
width: 52px;
height: 52px;
background: linear-gradient(135deg, var(--bw-accent), var(--bw-accent-dark));
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.bw-contact-icon svg {
width: 24px;
height: 24px;
color: white;
}
.bw-contact-info {
flex: 1;
}
.bw-contact-info h4 {
font-size: 16px;
font-weight: 600;
color: var(--bw-text-primary);
margin-bottom: 4px;
}
.bw-contact-info p {
font-size: 13px;
color: var(--bw-text-muted);
}
.bw-contact-arrow {
width: 22px;
height: 22px;
opacity: 0;
transform: translateX(-10px);
transition: var(--bw-transition);
}
.bw-contact-item:hover .bw-contact-arrow {
opacity: 1;
transform: translateX(0);
}
/* 二维码区域 */
.bw-qr-section {
margin-top: 40px;
}
.bw-qr-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.bw-qr-item {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 28px;
background: linear-gradient(135deg, var(--bw-accent-glow), transparent);
border: 1px dashed var(--bw-accent);
border-radius: 18px;
transition: var(--bw-transition);
}
.bw-qr-item:hover {
background: var(--bw-accent-glow);
border-style: solid;
}
.bw-qr-placeholder {
width: 130px;
height: 130px;
background: linear-gradient(135deg, var(--bw-accent) 0%, var(--bw-gradient-end) 100%);
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}
.bw-qr-placeholder img {
width: 100%;
height: 100%;
border-radius: 14px;
object-fit: cover;
}
.bw-qr-item p {
font-size: 14px;
color: var(--bw-text-secondary);
font-weight: 600;
}
/* ============================================
动画效果
============================================ */
@keyframes fadeInLeft {
from {
opacity: 0;
transform: translateX(-40px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeInRight {
from {
opacity: 0;
transform: translateX(40px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-12px);
}
}
@keyframes avatar-pulse {
0%, 100% {
transform: scale(1);
filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}
50% {
transform: scale(1.02);
filter: drop-shadow(0 0 35px rgba(59, 130, 246, 0.5));
}
}
/* ============================================
响应式设计
============================================ */
/* 平板端 (≤1024px) */
@media (max-width: 1024px) {
.bw-hero .container {
flex-direction: column;
text-align: center;
align-items: center;
}
.bw-hero-content {
order: 1;
}
.bw-hero-visual {
order: 2;
width: 100%;
height: auto;
margin-top: 40px;
}
.bw-hero-graphic {
position: static;
transform: none;
top: auto;
left: auto;
width: 280px;
height: 280px;
}
.bw-hero h1 {
font-size: 42px;
}
.bw-hero-buttons {
justify-content: center;
}
.bw-features-grid {
grid-template-columns: repeat(3, 1fr);
}
.bw-about-grid {
grid-template-columns: 1fr;
}
.bw-contact-grid {
grid-template-columns: 1fr;
}
}
/* 大手机端 (≤768px) */
@media (max-width: 768px) {
.bw-hero {
padding: 70px 16px;
}
.bw-hero h1 {
font-size: 34px;
}
.bw-hero-description {
font-size: 16px;
}
.bw-hero-buttons {
flex-direction: column;
align-items: center;
}
.bw-btn {
width: 100%;
max-width: 300px;
}
.bw-hexagon {
width: 220px;
height: 220px;
}
.bw-hexagon-icon {
width: 90px;
height: 90px;
}
.bw-float-element {
display: none;
}
.bw-avatar-ring {
width: 200px;
height: 200px;
}
.bw-avatar-wrapper {
margin-bottom: 24px;
}
.bw-verified-badge {
width: 40px;
height: 40px;
bottom: 8px;
right: 8px;
}
.bw-verified-badge svg {
width: 20px;
height: 20px;
}
.bw-avatar-info {
padding: 8px 16px;
}
.bw-avatar-info span {
font-size: 13px;
}
.bw-hexagon.hex-1,
.bw-hexagon.hex-2 {
display: none;
}
.bw-features-grid {
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
.bw-feature-item {
padding: 20px 14px;
}
.bw-feature-icon {
width: 48px;
height: 48px;
margin-bottom: 14px;
}
.bw-section-title {
font-size: 30px;
}
.bw-about, .bw-contact {
padding: 70px 16px;
}
.bw-about-card {
padding: 36px 28px;
}
.bw-contact-card {
padding: 36px 28px;
}
}
/* 小手机端 (≤480px) */
@media (max-width: 480px) {
.bw-hero h1 {
font-size: 28px;
}
.bw-hero-badge {
font-size: 12px;
padding: 6px 14px;
}
.bw-features-grid {
grid-template-columns: 1fr 1fr;
}
.bw-feature-title {
font-size: 14px;
}
.bw-section-title {
font-size: 26px;
}
.bw-qr-grid {
grid-template-columns: 1fr;
}
.bw-contact-item {
padding: 18px;
}
.bw-contact-icon {
width: 46px;
height: 46px;
}
.bw-avatar-ring {
width: 160px;
height: 160px;
}
.bw-verified-badge {
width: 36px;
height: 36px;
bottom: 4px;
right: 4px;
border-width: 3px;
}
.bw-verified-badge svg {
width: 16px;
height: 16px;
}
.bw-avatar-info {
padding: 6px 14px;
}
.bw-avatar-info svg {
width: 16px;
height: 16px;
}
.bw-avatar-info span {
font-size: 12px;
}
}
//js部分代码
(function() {
// 滚动动画
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver(function(entries) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
entry.target.classList.add('bw-visible');
observer.unobserve(entry.target);
}
});
}, observerOptions);
// 观察各个区块
document.querySelectorAll('.bw-feature-item, .bw-about-card, .bw-contact-card').forEach(function(el) {
el.style.opacity = '0';
el.style.transform = 'translateY(30px)';
el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(el);
});
// 添加可见样式
const style = document.createElement('style');
style.textContent = '.bw-visible { opacity: 1 !important; transform: translateY(0) !important; }';
document.head.appendChild(style);
})();