body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.bonus-carousel-container {
    padding: 20px;
    border: 2px solid #007DBA;
    border-radius: 10px;
    position: relative;
    margin: auto;
    overflow: hidden;
    max-width: 100%;
}
.bonus-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
 }
.item {
    flex-shrink: 0;
    width: 259.2px;
    margin-right: 10px;
    scroll-snap-align: center;
    border: 3px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s; /* 添加 box-shadow 的過渡效果 */
}
.item:hover {
    border-color: gold; /* 當鼠標移動到元素上時，邊框變為金色 */
    box-shadow: 0 0 10px gold; /* 當鼠標移動到元素上時，添加金色陰影效果 */
}
.item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.title {
    padding-top: 10px;
    text-align: center;
    color: #333;
}
.hint {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}
@media (max-width: 768px) {
    .item {
        width: 80%;
        margin-right: 5px;
    }
    .bonus-carousel-container {
        border-width: 1px;
        padding: 10px;
        border-radius: 5px;
    }
    .hint {
        font-size: 14px;
        margin-top: 5px;
    }
}
@media (max-width: 480px) {
    .item {
        width: 90%;
    }
    .hint {
        font-size: 12px;
    }
}
.custom-table-wrapper {
    width: 100%;
    overflow-x: auto; /* 保證外框架在手機上可以左右滑動 */
    -webkit-overflow-scrolling: touch; /* 為移動設備添加慣性滾動 */
    background-color: transparent; /* 全透明背景 */
    padding: 10px; /* 添加內邊距以防止滾動條遮擋內容 */
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    table-layout: auto; /* 自動調整表格列寬 */
}
.custom-table th, .custom-table td {
    text-align: center;
    border: 1px solid black;
    color: black; /* 文字為黑色 */
    background-color: transparent;
    word-break: normal; 
}
.custom-table th {
    background-color: transparent;
}
.custom-table td p {
    margin: 0;
    word-break: break-all;
}
.custom-table a {
    color: black; /* 文字為黑色 */
    text-decoration: none;
}
.custom-table a:hover {
    text-decoration: underline;
    color: gold; /* 当鼠标移到链接文字上时，颜色变为金色 */
}
.custom-table .stars {
    color: gold; /* ★符號-color gold */
}
.game-cate-sec {
    padding-bottom: 20px; /* 增加下边距来避免新添加的元素影响布局 */
}
