﻿/* 整個內容方塊 */
.index捷徑列6 {
    --margin: 10px;
    --bg-color01: chocolate;
    --bg-color02: blue;
    --bg-color03: darkgreen;
    --bg-color04: darkorange;
    --font-color: #FFFFFF;
    --font-size: 1rem;
    --animate-duration: 1s;
    --animate-bar-thickness: 3px;
    --animate-bar-color: #FFFFFF;
    --block-aspect-ratio: 7 / 5;
    --title-align: left;

    /* --For simpleBar Start-- */
    --content-height-without-heading: auto;
    --whole-block-height: auto;
    /* --For simpleBar End-- */

    height: var(--whole-block-height);
}

    /* 內容方塊標題 */
    .index捷徑列6 .blockTitle {
        text-align: var(--r-index-block-title-align, --title-align);
    }

        .index捷徑列6 .blockTitle h2 {
        }

    /* 捷徑容器，每個捷徑都放在裡面 */
    .index捷徑列6 .loopElementList {
        height: var(--content-height-without-heading);
    }

    .index捷徑列6 .shortcutList {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
    }

    .index捷徑列6 .eachShortcut {
        aspect-ratio: var(--block-aspect-ratio);
        overflow: hidden;
        margin-bottom: 1rem;
    }

    .index捷徑列6 .innerShell {
        overflow: hidden;
        width: 100%;
        height: 100%;
        background-color: antiquewhite;
    }

    .index捷徑列6 .link {
        text-align: center;
        height: 100%;
        display: block;
    }

    .index捷徑列6 .bg {
        transition: transform var(--animate-duration);
        object-fit: cover;
        height: calc(100% - 3rem);
    }

    .index捷徑列6 .link:hover .bg {
        transform: scale(1.1, 1);
    }

    .index捷徑列6 .content {
        position: relative;
        color: var(--font-color);
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .index捷徑列6 .text {
        font-size: var(--font-size);
        font-weight: bold;
        width: 100%;
        text-align: center;
        padding: 0.5em;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

        .index捷徑列6 .text i {
            margin-right: 1rem;
        }

            .index捷徑列6 .text i[class=""] {
                margin-right: 0;
                display: none;
            }

    .index捷徑列6 .eachShortcut:nth-child(1n) .text {
        background-color: var(--bg-color01);
    }

    .index捷徑列6 .eachShortcut:nth-child(2n) .text {
        background-color: var(--bg-color02);
    }

    .index捷徑列6 .eachShortcut:nth-child(3n) .text {
        background-color: var(--bg-color03);
    }

    .index捷徑列6 .eachShortcut:nth-child(4n) .text {
        background-color: var(--bg-color04);
    }

    .index捷徑列6 .animBar {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: var(--animate-bar-thickness);
        transition: all var(--animate-duration);
    }

    .index捷徑列6 .link:hover .animBar {
        width: 100%;
        background-color: var(--animate-bar-color);
    }

@media (max-width: 480px) {
    .index捷徑列6 .eachShortcut {
        width: 160px;
        border-radius: 4px;
    }

    .index捷徑列6 .text {
        padding: 0.5em;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .index捷徑列6 .eachShortcut {
        width: 160px;
        border-radius: 4px;
    }

    .index捷徑列6 .text {
        padding: 0.5em;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    .index捷徑列6 .eachShortcut {
        width: 160px;
        border-radius: 4px;
    }

    .index捷徑列6 .text {
        padding: 0.3em;
    }
}

@media (min-width: 980px) and (max-width:1199px) {
    .index捷徑列6 .eachShortcut {
        width: 180px;
        border-radius: 5px;
    }
}

@media (min-width: 1200px) and (max-width:1919px) {
    .index捷徑列6 .eachShortcut {
        width: 200px;
        border-radius: 7px;
    }
}

@media (min-width: 1920px) {
    .index捷徑列6 .eachShortcut {
        width: 200px;
        border-radius: 10px;
    }
}
