/* 手機平板樣式 */

/* 聯絡我們響應式設計 */
/* 基本重置和全域樣式 */
.hamburger-menu {
    display: none;
}

@media (max-width: 950px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
    }

    header {
        background: #FFFFFF;
        color: #000000;
        padding: 0.5em 1em;
    }

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* 在小螢幕上允許導航列換行 */
    }

    .logo {
        font-size: 1em;
        font-weight: bold;
        color: #000000;
    }

    .menu {
        list-style: none;
        display: flex;
        flex-wrap: wrap;
    }

    .menu li {
        padding: 10px; /* 在小螢幕上增加間距 */
    }

    .menu li a {
        text-decoration: none;
        color: #000000;
        transition: color 0.3s;
    }

    .menu li a:hover {
        color: #ccc;
    }

    /* 小螢幕上的漢堡菜單 */
    .hamburger-menu {
        display: block;
        cursor: pointer;
    }

    .menu {
        display: none;
        width: 100%;
        text-align: center;
    }

    .menu.active {
        display: block;
    }

    /* 子菜單和下拉內容樣式 */
    .menu-item .submenu,
    .menu-item .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
    }

    .menu-item:hover .submenu,
    .menu-item:hover .dropdown-content {
        display: block;
    }

    .submenu a,
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        text-align: left;
    }

    .submenu a:hover,
    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    .menu-item {
        position: relative;
    }
}

/* 圖片和表單的響應式調整 */
@media (max-width: 950px) {


    .contact-us-container, .activities-container, .date-event-container, .member-profile {
        flex-direction: column;
        align-items: center;
    }

    .contact-image img, .activity-block img, .date-event-container img, .member-profile img {
        max-width: 90%;
    }

    .contact-form, .activity-content, .date-event-info, .profile-info {
        width: 300%;
    }

    

    /* 頁腳調整 */
    .site-footer {
        flex-wrap: wrap; /* 在小螢幕上允許內容換行 */
    }

    .footer-info p {
        text-align: left; /* 確保文字從左側開始對齊 */
    }

    /* 確保在小螢幕上表格也能良好顯示 */
    .stylish-table {
        width: 100%;
        overflow-x: auto; /* 允許水平滾動以查看過長的表格內容 */
    }







    /* history的rwd效果如下------history.html */
 .stylish-table {
        border: 0;
    }

    .stylish-table thead {
        display: none;
    }

    .stylish-table tr {
        margin-bottom: 10px;
        display: block;
        border-bottom: 2px solid #ddd;
    }

    .stylish-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
        text-align: left;
        border-bottom: 1px dotted #ccc;
    }

    .stylish-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }


/* history的rwd效果結尾------history.html */



/* activity.html調整 */
@media (max-width: 950px) {
    .activity-block {
        width: 100%; /* 在小屏幕上活动块占据整行 */
    }

    .activities-container {
        padding: 0;
    }



.activities-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px 0;
}



.activity-block:hover {
    transform: scale(1.05); /* 稍微放大悬停的块 */
}

.activity-content img {
    width: 100%; /* 使图片充满容器宽度 */
    height: auto;
    border-radius: 5px; /* 给图片添加圆角 */
}

/* 使活动信息和预约按钮在小屏幕上更加紧凑 */
.activity-info span, .reserve-btn {
    display: block; /* 将信息和按钮分布在不同行 */
    margin: 5px auto; /* 添加一点间距 */
    
}



/* 地點、點數置中 */

.activities-container .activity-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .activities-container .activity-info span {
        margin: 0; /* 移除左右外边距，以便在小屏幕上居中显示 */
    }

    .reserve-btn {
        width: auto; /* 如果按钮宽度是固定的，改为auto以适应内容 */
        margin-top: 12px;
    }


/* activity.html調整結尾 */




/* 首頁 */

.slide-2 img {
        width: 100%;
        height: auto;
    }

.dots-container-2b, .dots-container-3b {
        display: none;
    }


.small-banners-container, .carousel-2, .small-banners-container2, .small-banners-container3 {
        flex-direction: column;
    }
    .banner-row1, .banner-row, .banner-row3 {
        display: flex;
        flex-direction: column;
    }
    .slide-2, .slide-2b, .slide-3b {
        display: block; /* 确保在移动视图中每个滑块都是可见的 */
    }


 .banner-row .banner, .banner-row3 .banner {
        display: block;
        width: 100%;
    }




/* 首頁單身會員手機照片變大 */
.slides-container-2 {
    width: 100%; /* Adjust as needed, this will make the slide half the width of the screen */
    height: 50vh; /* Half the height of the viewport */
    position: relative; /* Needed for the absolute positioning of slides */
}


/* 單身會員點點none掉 */
.dots-container-2 {
  display: none;

}



/* 最新消息直向排列 */
.slides-container-2b {
 display: block;
}


/* 最新消息藏消失 */
.slide-2b-1 img {    
    display: none;  
}



/* 最新消息直向排列 */
.slides-container-3b {
 display: block;
}


/* 好評反饋藏消失 */
.slide-3b-1 img {    
    display: none;  
}



}/* 950px結尾 */





