You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
3.9 KiB

/* 关于页面特色区块样式 */
.about-features-section {
position: relative;
padding: 50px 0;
background-image: url('../images/about-features.webp');
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
height: 60vh;
display: flex;
align-items: center;
justify-content: center;
}
.about-features-container {
position: relative;
z-index: 2;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
text-align: center;
}
/* 主标题样式 */
.about-features-header {
margin-bottom: 60px;
}
.about-features-title {
font-size: 36px;
font-weight: 700;
color: #ffffff;
margin: 0;
line-height: 1.3;
}
/* 统计数据容器 */
.about-features-stats {
display: flex;
justify-content: space-between;
align-items: center;
gap: 40px;
flex-wrap: wrap;
}
/* 单个统计项 */
.about-features-stat-item {
flex: 1;
min-width: 200px;
padding: 30px 20px;
background: rgba(255, 255, 255, 0.1);
border-radius: 12px;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
transition: all 0.3s ease;
}
.about-features-stat-item:hover {
transform: translateY(-5px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
/* 统计数字 */
.about-stat-number {
font-size: 48px !important;
font-weight: 800 !important;
color: #ffffff !important;
margin-bottom: 10px !important;
line-height: 1 !important;
opacity: 0 !important;
transform: translateY(20px) !important;
transition: all 0.3s ease !important;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
/* 计数动画关键帧 */
@keyframes countUp {
0% {
opacity: 0 !important;
transform: translateY(20px) !important;
}
50% {
opacity: 1 !important;
transform: translateY(0) !important;
}
100% {
opacity: 1 !important;
transform: translateY(0) !important;
}
}
/* 数字计数动画触发类 */
.about-stat-number.animate {
opacity: 1 !important;
transform: translateY(0) !important;
animation: countUp 2s ease-out forwards !important;
}
/* 为每个统计项添加不同的延迟 */
.about-features-stat-item:nth-child(1) .about-stat-number.animate {
animation-delay: 0.2s !important;
}
.about-features-stat-item:nth-child(2) .about-stat-number.animate {
animation-delay: 0.4s !important;
}
.about-features-stat-item:nth-child(3) .about-stat-number.animate {
animation-delay: 0.6s !important;
}
.about-features-stat-item:nth-child(4) .about-stat-number.animate {
animation-delay: 0.8s !important;
}
/* 统计标签 */
.about-stat-label {
font-size: 16px;
color: #ffffff;
opacity: 0.9;
line-height: 1.4;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
/* 平板设备适配 */
@media (max-width: 768px) {
.about-features-section {
padding: 60px 0;
background-attachment: scroll;
}
.about-features-title {
font-size: 28px;
}
.about-features-stats {
flex-direction: column;
gap: 20px;
}
.about-features-stat-item {
min-width: auto;
width: 100%;
padding: 25px 15px;
}
.about-stat-number {
font-size: 36px;
}
.about-stat-label {
font-size: 14px;
}
}
/* 手机设备适配 */
@media (max-width: 480px) {
.about-features-section {
padding: 40px 0;
}
.about-features-container {
padding: 0 15px;
}
.about-features-header {
margin-bottom: 40px;
}
.about-features-title {
font-size: 24px;
}
.about-features-stat-item {
padding: 20px 15px;
}
.about-stat-number {
font-size: 32px;
}
.about-stat-label {
font-size: 13px;
}
}