/* 重置样式 - 仅影响组件内部 */
.cs-contact-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cs-contact-section {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    padding: 40px 20px;
    max-width: 1200px;
    margin: 30px auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.cs-contact-header h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.cs-contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    border-radius: 2px;
}

.cs-contact-header p {
    font-size: 1.5rem;
    color: #64748b;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.6;
}

.cs-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cs-contact-item {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cs-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    transition: all 0.4s ease;
    z-index: -1;
    opacity: 0;
}

.cs-contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cs-contact-item:hover::before {
    height: 100%;
    opacity: 1;
}

.cs-contact-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 50%;
    margin-bottom: 25px;
    color: white;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.cs-contact-item:hover .cs-contact-icon {
    background: white;
    color: #3b82f6;
    transform: scale(1.1);
}

.cs-contact-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    transition: color 0.4s ease;
}

.cs-contact-info {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: 500;
    transition: color 0.4s ease;
}

.cs-contact-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.cs-contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.cs-contact-info a:hover {
    color: #2563eb;
}

.cs-contact-info a:hover::after {
    width: 100%;
}

.cs-contact-item:hover .cs-contact-title,
.cs-contact-item:hover .cs-contact-info,
.cs-contact-item:hover .cs-contact-info a {
    color: white;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .cs-contact-row {
        gap: 15px;
    }

    .cs-contact-item {
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .cs-contact-header h2 {
        font-size: 2.2rem;
    }

    .cs-contact-item {
        min-width: 100%;
    }

    .cs-contact-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .cs-contact-section {
        padding: 30px 15px;
    }

    .cs-contact-header h2 {
        font-size: 1.9rem;
    }

    .cs-contact-title {
        font-size: 1.3rem;
    }

    .cs-contact-info {
        font-size: 1.1rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.cs-contact-item:nth-child(1) {
    animation: fadeIn 0.6s ease-out;
}

.cs-contact-item:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.cs-contact-item:nth-child(3) {
    animation: fadeIn 0.6s ease-out 0.4s both;
}