
/* 彻底重置外层可能的所有干扰 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 确保 body 和 html 没有白边 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #f5f7fa; /* 与 section 背景一致，消除视觉白边 */
}

.services-section {
    width: 100%;
    margin: 0 !important;
    padding: 60px 4% !important;
    background-color: #f5f7fa;
    color: #333;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    /* 最强修复：移除所有可能的顶部空间 */
    position: relative;
    top: 0;
    left: 0;
}

/* 内部重置 */
.services-section *,
.services-section *::before,
.services-section *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
}

.services-row-title {
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.services-sub-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.services-sub-tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.services-main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #003366;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    padding: 0;
}

.services-row-description {
    text-align: right;
    margin-bottom: 50px;
    margin-top: 0;
}

.services-description-text {
    display: inline-block;
    max-width: 600px;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.services-highlight {
    color: #003366;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card.large { grid-column: span 3; }
.service-card.small { grid-column: span 2; }

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-color: #eef2f6;
}

.card-body {
    padding: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 1.2rem;
    color: #003366;
    font-weight: 700;
    margin: 0;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.card-body p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .service-card.large, .service-card.small { grid-column: span 3; }
}

@media (max-width: 768px) {
    .services-row-description { text-align: left; }
    .service-card.large, .service-card.small { grid-column: span 6; }
    .services-section { padding: 40px 20px !important; }

}
@media (max-width: 768px) {
    .card-header {
        align-items: flex-start; /* 标题多行时，箭头对齐第一行 */
    }
    
    .card-header h3 {
        white-space: normal; /* 允许标题文字换行 */
        font-size: 1.1rem;   /* 手机端稍微调小标题字号 */
        line-height: 1.2;
    }

    .read-more {
        margin-top: 2px;    /* 微调箭头高度对齐第一行文字 */
    }
}
