/* 自定义Contact样式 */
.contact-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

/* 统一的联系框样式 - 固定大小和圆角 */
.contact-item-with-image,
.contact-item-with-text {
    width: 100%;
    height: 100px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.contact-item-with-image:hover,
.contact-item-with-text:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

/* 有图片时的样式 */
.contact-item-with-image {
    background: transparent;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

/* 无图片时的样式 */
.contact-item-with-text {
    background: #23293e;
    border: 1px solid #2f354a;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.contact-item-with-text:hover {
    background: #2a3045;
    border-color: #363c52;
}

.contact-background {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 排序功能的JavaScript会使用这个属性 */
[data-sort] {
    order: attr(data-sort);
}

.contact-item-with-text .icon-area {
    background: #2f354a;
    border-radius: 8px;
    padding: 15px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
}

.contact-item-with-text .icon-area i {
    font-size: 24px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.contact-item-with-text:hover .icon-area i {
    color: #007bff;
    transform: scale(1.1);
}

.contact-item-with-text .content-area {
    flex: 1;
}

.contact-item-with-text .content-area h6 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-item-with-text .content-area p {
    color: #b8c1d3;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-item-with-image,
    .contact-item-with-text {
        height: 90px;
    }
    
    .contact-item-with-text {
        padding: 20px 15px;
    }
    
    .contact-item-with-text .icon-area i {
        font-size: 35px;
    }
    
    .contact-item-with-text .content-area h6 {
        font-size: 16px;
    }
    
    .contact-item-with-text .content-area p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .contact-item-with-image,
    .contact-item-with-text {
        height: 80px;
    }
    
    .contact-item-with-text {
        padding: 15px 10px;
    }
    
    .contact-item-with-text .icon-area i {
        font-size: 30px;
    }
    
    .contact-item-with-text .content-area h6 {
        font-size: 15px;
    }
    
    .contact-item-with-text .content-area p {
        font-size: 12px;
    }
}