/* =========================================
   Reset
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}
/* =========================================
   主容器
========================================= */
.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}
/* =========================================
   背景
========================================= */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("/assets/images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
/* 1024 × 768 以上使用另一張背景 */
@media (min-width: 1024px) and (min-height: 768px) {
    .bg {
        background-image:
            url("/assets/images/background-1024x768.png");
    }
}
/* =========================================
   按鈕區
========================================= */
.buttons {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-120%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 2;
}
/* =========================================
   按鈕
========================================= */
.btn-box {
    display: flex;
    align-items: center;
    width: 380px;
    padding: 14px 18px;
    background-color: #fff;
    border: 2px solid #f5a623;
    border-radius: 12px;
    box-shadow:0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.25s ease;
}
.btn-box:hover {
    transform: scale(1.05);
}
/* =========================================
   按鈕圖片
========================================= */
.icon-box {
    flex-shrink: 0;
}
.icon-box img {
    width: 120px;
    height: 120px;
    margin-right: 8px;
    display: block;
}
/* =========================================
   按鈕文字
========================================= */
.btn-text {
    min-width: 0;
}
.btn-text .arrow {
    color: #f90;
    font-weight: bold;
    font-size: 36px;
    margin-bottom: 4px;
    display: block;
}
.btn-text .title {
    color: #002b80;
    font-size: 30px;
    font-weight: 700;
    white-space: nowrap;
    display: block;
}
/* =========================================
   角色區
========================================= */
.character-group {
    position: absolute;
    bottom: 60px;
    left: 82%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 5px;
    z-index: 1;
    white-space: nowrap;
}
/* 小孩、媽媽 */
.kid,
.mom {
    width: 123px;
    height: auto;
    display: block;
}
/* 校車 */
.bus {
    width: 450px;
    height: auto;
    display: block;
    animation: bus-slide-in 1.5s ease-out forwards;
}
/* =========================================
   校車動畫
========================================= */
@keyframes bus-slide-in {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(0);
    }
}
/* =========================================
   TOP 按鈕
========================================= */
.top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #f09;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
    padding: 10px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow:0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
/* =========================================
   平板
   769px ~ 1023px
========================================= */
@media screen and (max-width: 1023px) {
    /* 按鈕位置 */
    .buttons {
        top: 80px;
        left: 40%;
        transform: translateX(-50%);
        gap: 20px;
    }
    /* 按鈕 */
    .btn-box {
        width: 330px;
        padding: 12px 15px;
    }
    /* 圖片 */
    .icon-box img {
        width: 95px;
        height: 95px;
        margin-right: 8px;
    }
    /* 文字 */
    .btn-text .arrow {
        font-size: 28px;
    }
    .btn-text .title {
        font-size: 24px;
    }
    /* 人物 */
    .character-group {
        left: 75%;
        bottom: 30px;
        gap: 3px;
    }
    .kid,
    .mom {
        width: 100px;
    }
    .bus {
        width: 350px;
    }
    /* TOP */
    .top-btn {
        right: 20px;
        bottom: 20px;
        width: 65px;
        height: 65px;
        font-size: 19px;
    }
}
/* =========================================
   手機
   480px 以下
========================================= */
@media screen and (max-width: 480px) {
    /* -------------------------------------
       按鈕區
    ------------------------------------- */
    .buttons {
        position: absolute;
        top: 70px;
        left: 0;
        transform: none;
        width: 100%;
        padding: 0 15px;
        gap: 15px;
        align-items: center;
    }
    /* -------------------------------------
       按鈕
    ------------------------------------- */
    .btn-box {
        width: 100%;
        max-width: 380px;
        min-height: 95px;
        padding: 10px 12px;
        border-radius: 12px;
    }
    .btn-box:hover {
        transform: none;
    }
    /* -------------------------------------
       圖示
    ------------------------------------- */
    .icon-box img {
        width: 75px;
        height: 75px;
        margin-right: 8px;
    }
    /* -------------------------------------
       文字
    ------------------------------------- */
    .btn-text .arrow {
        font-size: 19px;
        margin-bottom: 3px;
    }
    .btn-text .title {
        font-size: 21px;
        white-space: normal;
        line-height: 1.3;
    }
    /* -------------------------------------
       角色
    ------------------------------------- */
    .character-group {
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%);
        width: 100%;
        justify-content: center;
        gap: 0;
    }
    .kid,
    .mom {
        width: 75px;
    }
    .bus {
        width: 220px;
    }
    /* -------------------------------------
       TOP
    ------------------------------------- */
    .top-btn {
        right: 10px;
        bottom: 10px;
        width: 50px;
        height: 50px;
        padding: 5px;
        font-size: 14px;
    }
}
/* =========================================
   超小手機
   375px 以下
========================================= */
@media screen and (max-width: 375px) {
    .buttons {
        top: 50px;
        padding: 0 10px;
        gap: 10px;
    }
    .btn-box {
        min-height: 82px;
        padding: 8px 10px;
    }
    .icon-box img {
        width: 62px;
        height: 62px;
    }
    .btn-text .arrow {
        font-size: 16px;
    }
    .btn-text .title {
        font-size: 18px;
    }
    .character-group {
        bottom: 10px;
    }
    .kid,
    .mom {
        width: 60px;
    }
    .bus {
        width: 180px;
    }
    .top-btn {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}