/* 资金安全区域样式 */
.security-section {
    padding: 30px 0;
}

.security-header {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease-out;
}

.security-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.security-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00a1ff);
    border-radius: 3px;
}

.security-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px auto 25px;
    max-width: 1000px;
    animation: fadeInUp 0.8s ease-out;
}

.security-feature-item {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 15px 12px;
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 123, 255, 0.1),
                -5px -5px 15px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.security-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.security-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(0, 123, 255, 0.15),
                -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.security-feature-item:hover::before {
    transform: translateX(100%);
}

.security-feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 123, 255, 0.2));
}

.security-feature-item:hover .security-feature-icon {
    transform: rotateY(180deg);
}

.security-feature-item span {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-top: 6px;
    position: relative;
}

.security-feature-item span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #00a1ff);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.security-feature-item:hover span::after {
    width: 50%;
}

.security-content {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 1000px;
    margin: 15px auto;
    animation: fadeIn 1s ease-out;
}

.security-image {
    flex: 1;
    max-width: 450px;
}

.security-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    animation: imageFloat 6s ease-in-out infinite;
}

.security-info {
    flex: 1;
    padding-right: 25px;
}

.security-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.security-info h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #007bff, #00a1ff);
    border-radius: 2px;
}

.security-info ul {
    list-style: none;
    padding: 0;
}

.security-info li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 0.5s ease-out forwards;
}

.security-info li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes imageFloat {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    75% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 为列表项添加延迟动画 */
.security-info li:nth-child(1) { animation-delay: 0.2s; }
.security-info li:nth-child(2) { animation-delay: 0.4s; }
.security-info li:nth-child(3) { animation-delay: 0.6s; }
.security-info li:nth-child(4) { animation-delay: 0.8s; }

/* 服务区域样式 */
.service-section {
    padding: 40px 0;
}

.service-header {
    text-align: center;
    margin-bottom: 30px;
}

.service-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
    animation: titleFadeIn 1s ease-out forwards;
}

/* 添加标题装饰效果 */
.service-header h2::before,
.service-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #007bff;
    border-radius: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    animation: titleDecorate 1.5s ease-out infinite alternate;
}

.service-header h2::before {
    left: -15px;
    border-color: #007bff transparent transparent #007bff;
    animation-delay: 0s;
}

.service-header h2::after {
    right: -15px;
    border-color: transparent #007bff #007bff transparent;
    animation-delay: 0.75s;
}

/* 服务网格布局 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 服务项样式 */
.service-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 10px; /* 统一内边距 */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 120px; /* 固定高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 背景渐变效果 */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f6f9ff 0%, #f0f7ff 100%);
    border-radius: 20px;
    transition: all 0.4s ease;
    z-index: -1;
}

/* 发光边框效果 */
.service-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #007bff, #00a1ff, #007bff);
    border-radius: 22px;
    z-index: -2;
    opacity: 0;
    transition: all 0.4s ease;
}

/* 图标容器 */
.service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
}

/* 图标样式 */
.service-icon {
    width: 80px; /* 统一图标大小 */
    height: 80px;
    margin-bottom: 10px; /* 统一间距 */
    padding: 8px;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain; /* 确保图标比例一致 */
}

/* 图标背景效果 */
.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

/* 文字样式 */
.service-item span {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-top: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止文字换行 */
}

/* 悬停效果 */
.service-item:hover {
    transform: translateY(-5px);
}

.service-item:hover::before {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.15);
}

.service-item:hover::after {
    opacity: 1;
    animation: borderGlow 1.5s ease-in-out infinite;
}

.service-item:hover .service-icon {
    transform: rotateY(180deg);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.service-item:hover .service-icon-wrapper::before {
    animation: pulseGlow 1.5s ease-in-out infinite;
}

.service-item:hover span {
    color: #007bff;
}

/* 点击效果 */
.service-item:active {
    transform: translateY(-2px);
}

/* 动画关键帧 */
@keyframes borderGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* 依次延迟出现动画 */
.service-item {
    opacity: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .service-item {
        height: 110px;
    }
}

@media screen and (max-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .service-item {
        height: 100px;
    }
    .service-icon {
        width: 35px;
        height: 35px;
    }
    .service-item span {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 添加新的动画关键帧 */
@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleDecorate {
    from {
        transform: translateY(-50%) scale(0);
        opacity: 0.8;
    }
    to {
        transform: translateY(-50%) scale(1);
        opacity: 0;
    }
}

/* 为每个服务项添加延迟动画 */
.service-item {
    opacity: 0;
    transform: translateY(20px);
    animation: itemFadeIn 0.5s ease-out forwards;
}

@keyframes itemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加延迟动画 */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }
.service-item:nth-child(8) { animation-delay: 0.8s; }
.service-item:nth-child(9) { animation-delay: 0.9s; }
.service-item:nth-child(10) { animation-delay: 1.0s; }
.service-item:nth-child(11) { animation-delay: 1.1s; }
.service-item:nth-child(12) { animation-delay: 1.2s; }

/* 新闻中心区域样式 */
.news-section {
    padding: 50px 0;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.news-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00a1ff);
    border-radius: 3px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: newsItemFadeIn 0.5s ease-out forwards;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(0, 123, 255, 0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-item:hover .news-content h3 {
    color: #007bff;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(45deg, #007bff, #00a1ff);
    color: #fff;
    font-size: 15px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.more-btn:hover::before {
    left: 100%;
}

@keyframes newsItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 为新闻项添加延迟动画 */
.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

/* 响应式布局 */
@media screen and (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Swiper 轮播图样式 */
.banner-container {
    position: relative;
    width: 100%;
    height: 600px; /* 设置合适的高度 */
    overflow: hidden;
}

.banner-container .swiper-container {
    width: 100%;
    height: 100%;
}

.banner-container .swiper-slide {
    width: 100%;
    height: 100%;
}

.banner-container .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页器样式 */
.banner-container .swiper-pagination {
    bottom: 50px !important;
}

.banner-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    margin: 0 8px !important;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.banner-container .swiper-pagination-bullet-active {
    background: #007bff;
    width: 30px;
    transform: none;
}

/* 添加加载状态样式 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* 错误消息样式 */
.error-message {
    text-align: center;
    padding: 20px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px 0;
}