﻿/* 聯絡頁面樣式 - 寬度調整 */

/* 標題區域樣式保持不變 */
.contact-header {
    background: #ffffff;
    padding: 2rem 0;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* 建立新的內容區域容器，寬度與標題一致 */
.contact-content {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* 確保卡片在更窄的容器中仍然美觀 */
.contact-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.8rem;
    overflow: hidden;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .contact-header,
    .contact-content {
        padding: 1.5rem;
    }

        /* 在小螢幕上調整卡片邊距 */
        .contact-content .row {
            margin-left: -10px;
            margin-right: -10px;
        }

        .contact-content [class*="col-"] {
            padding-left: 10px;
            padding-right: 10px;
        }
}
/* 將聯絡卡片中的圖標顏色改為藍色 */
.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd; /* 保持原藍色或使用更亮的藍色 */
    background: #f0f7ff; /* 淡藍色背景，使圖標更突出 */
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

/* 添加懸停效果，深化藍色 */
.contact-card:hover .card-icon {
    color: #0a58ca; /* 懸停時顏色變深 */
    background: #e6f0ff; /* 懸停時背景色略深 */
    transform: scale(1.1); /* 輕微放大效果 */
}

/* 確保標題下方的裝飾線也使用相同的藍色，增強一致性 */
.contact-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #0d6efd; /* 與圖標相同的藍色 */
}

/* 調整聯絡鏈接顏色，與圖標一致 */
.contact-link {
    color: #0d6efd !important;
    transition: all 0.2s;
    display: inline-block;
}

    .contact-link:hover {
        color: #0a58ca !important;
        transform: translateX(5px);
    }