@charset "utf-8";
.main_yjs {
    padding: 80px 60px;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/tzxm/assets/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}
.main_yjs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 67, 149, 0.7) 0%, rgba(0, 33, 71, 0.7) 100%);
    z-index: -1;
}
.main_yjs .container {
    max-width: 1200px;
    margin: 0 auto;
}
.main_yjs h2 {
    color: #fff;
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}
.main_yjs p {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    letter-spacing: 0.5px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 3rem auto;
    justify-items: center; /* 添加此行使卡片居中 */
}
.service-card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 0.8rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.service-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.service-card img {
    display: block;
    margin: 0 auto 1.5rem;
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}
.service-card:hover img {
    transform: scale(1.1);
}
.service-card p {
    text-align: center;
    color: #fff;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
}
@media (max-width: 768px) {
    .main_yjs {
        padding: 60px 30px;
    }
    .main_yjs h2 {
        font-size: 2.2rem;
    }
    .service-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}
