@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
input,
button,
textarea,
select {
    font-family: 'Noto Sans', '微軟正黑體', sans-serif !important;
}

html,
body {
    margin: 0;
    font-family: 'Noto Sans', '微軟正黑體', sans-serif !important;
    width: 100%;
    height: 100%;
    min-width: 300px;
    background-color: white;
    /* 防止手機上的橫向滾動 */
    overflow-x: hidden;
    /* Safari 優化 */
    -webkit-text-size-adjust: 100%;
}

input {
    outline: none;
}

.maxWidth {
    width: 100%;
    /* Safari 手機版高度優化 */
    height: 100vh;
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
}

.flex {
    display: flex;
}

.hide {
    display: none;
}

.grid {
    display: grid;
}

.index_bg{
    background-color: white;
    /* Safari 手機版高度優化 */
    height: 100vh;
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
}

.logo{
    width: 180px;
    margin: 50px 0 30px 0;
}

.index_container{
    flex-direction: column;
    height: 100%;
    align-items: center;
    max-width: 400px;
    width: 90%;
    color: #2B3950;
    padding: 0 5px;
    box-sizing: border-box;
}

.big_title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.medium_title{
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.line {
  border-bottom: 1px solid #dddddd;
  margin: 15px 0;
  width: 100%;
}

.checkin_btn_div{
    width: 100%;
    height: 80px;
}

.checkin_btn_div .product_btn{
    background-color: #F7BD36 !important;
}

.checkin_btn_div .checkin_btn, .checkin_btn_div .product_btn {
    color: #FFF;
    background-color: #2B3950;
    font-size: 1.4rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    width: 250px;
    border-radius: 40px;
    margin: 10px 0;
    box-shadow: 0px 4px 10px #0000001A;
    text-decoration: none;
    box-sizing: border-box;
    /* 只保留必要的手機觸控優化 */
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
}

.checkin_btn_div .checkin_btn::after, .checkin_btn_div .product_btn::after {
    content: '';
    background-image: url(/images/sent-circle.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 22px;
    height: 22px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.main_menu{
    width: 100%;
    margin-top: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.menu_box{
    width: 22%;
    position: relative;
    padding-bottom: 22%;  /* 保持正方形 */
    background-color: #EEE;
    border-radius: 15px;
    color: #2b3950;
    margin: 5px;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.menu_content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
}

.menu_content i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.menu_content span {
    font-size: 1rem;
    text-align: center;
    line-height: 1.1;
}

.menu_box.hot::before {
    content: 'HOT';
    position: absolute;
    top: -5px;
    left: -5px;
    background-color: #F7BD36; /* 橘色背景 */
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px;
    border-radius: 50%;
    line-height: 2.1;
	width:26px;
	height: 26px;
}

.footer{
    color: #CCC;
    font-size: 0.8rem;
    margin-top: auto; /* 添加這行讓 footer 被推到底部 */
    padding: 20px 0; /* 添加一些 padding */
}

/* 跑馬燈文字樣式 */
.marquee-text {
    white-space: nowrap;
    font-size: 14px;
    line-height: 30px;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
    display: inline-block;
    color: white;
}

.disable_box{
    opacity: 40%;
    cursor: default;
}

/* 跑馬燈動畫 */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 確保跑馬燈容器設定 */
.marquee {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #2B3950;
    color: white;
    position: absolute;
    top:0;
    height: 30px;
    width: 100%;
}

/* 手機優化 */
@media screen and (max-width: 480px) {
    .marquee-text {
        font-size: 13px;
        animation-duration: 25s; /* 手機上稍微慢一點 */
    }
}

/* 超小螢幕優化 */
@media screen and (max-width: 320px) {
    .marquee-text {
        font-size: 12px;
        animation-duration: 30s;
    }
}