/* xtb-css */
.mac-icon-grid {
    max-width: 1200px;
    margin: 10px auto 0;
    display: grid;
    grid-template-columns: repeat(15, 70px);
    gap: 10px;
    justify-content: center;
    padding: 0 10px;
}

.mac-icon-item {
    width: 70px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mac-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.mac-icon-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.mac-icon-name {
    width: 100%;
    color: white;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mac-icon-link:hover .mac-icon-img {
    transform: scale(1.1);
}

/* 平板端 */
@media (max-width: 1024px) {
    .mac-icon-grid {
        grid-template-columns: repeat(10, 70px);
    }
}

/* 手机端 */
@media (max-width: 768px) {
    .mac-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        justify-items: start;
        gap: 8px;
        padding: 0 10px;
        justify-content: start;
    }
}

/* 小手机端 */
@media (max-width: 480px) {
    .mac-icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        justify-items: start;
        gap: 6px;
        padding: 0 10px;
        justify-content: start;
    }
    
    .mac-icon-img {
        width: 60px;
        height: 60px;
    }
    
    .mac-icon-name {
        font-size: 10px;
        margin-top: 10px;
    }
}