/* ============================================================
   常用連結 - 網格佈局
   ============================================================ */
.link-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);  /* 5 欄 */
    gap: 12px;
    margin-top: 10px;
}

.link-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    background: #ffffff;  /* 改做白色 */
    border-radius: 12px;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.06);  /* 加返少少邊，唔使咁寡 */
}

.link-grid a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.link-grid a img {
    width: 100%;
    max-width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* 手機版 3 欄 */
@media screen and (max-width: 768px) {
    .link-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .link-grid a img {
        max-width: 60px;
    }
}

/* 極小螢幕 2 欄 */
@media screen and (max-width: 480px) {
    .link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .link-grid a img {
        max-width: 50px;
    }
}