/* body */
body {
    margin-top: 0;
}

/* 搜尋區塊樣式 */
.search-bar {
    margin: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 70px 10px 20px;
    border-radius: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: calc(var(--global-font-size) * (16 / 16));
    transition: box-shadow 0.3s ease-in-out;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background-color: transparent;
    color: #999;
    font-size: calc(var(--global-font-size) * (20 / 16));
    cursor: pointer;
}

.search-bar button:focus {
    outline: none;
}

/* Banner區塊樣式 */
.banner {
    text-align: center;
    margin: 20px;
    background-color: #fff;
}

.banner img {
    max-width: 100%;
}

/* 圖片區塊樣式 */
.image-section {
    display: flex;
    justify-content: center;
    padding: 5px;
}

.image-section .image-item {
    width: 33%;
    padding: 0;
    background-color: #fff;
    border-radius: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    margin: 0 5px;
    overflow: hidden;
}

.image-section .image-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.image-section .image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-section .image-item p {
    margin-top: 10px;
    font-size: calc(var(--global-font-size) * (16 / 16));
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

/* 中央區塊樣式 */
.icon-grid {
    background-color: #F7F7F7;
    border-radius: 5%;
    padding: 20px;
    margin: 15px 5px;
}

.icon-item {
    height: 100%;
    text-align: center;
    background-color: #FFF;
    border: 2px solid #ff9800;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.icon-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-item svg {
    font-size: calc(var(--global-font-size) * (36 / 16));
    color: #800000;
    margin-bottom: 10px;
}

.icon-item p {
    margin: 0;
    font-size: calc(var(--global-font-size) * (14 / 16));
    color: #800000;
}

.icon-item .icon-item-link {
    padding: 15px 0;
}

/* 外框區塊樣式 */
.outer-container {
    border: 2px solid #ccc;
    border-radius: 15px;
    padding: 8px;
    margin: 20px;
}

.toast-message {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1000;
}

.toast-message.show {
    opacity: 1;
}
