body {
            font-family: Arial, sans-serif;
            margin: 20px;
            padding: 10px;
            user-select: none;
        }
        input, button {
            font-size: 16px;
            margin: 10px 0;
            padding: 5px;
        }
        button {
            cursor: pointer;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        table, th, td {
            border: 1px solid #ddd;
        }
        th, td {
            text-align: center;
            padding: 8px;
        }
        th {
            background-color: #f4f4f4;
        }


      
        /* 多選選單的容器 */
        .dropdown {
            position: relative;
            display: inline-block;
            width: 200px;
        }

        /* 下拉按鈕 */
        .dropdown-btn {
            padding: 10px;
            border: 1px solid #ccc;
            background-color: #f9f9f9;
            cursor: pointer;
            border-radius: 5px;
            text-align: left;
            width: 100%;
        }

        .dropdown-btn:hover {
            background-color: #f1f1f1;
        }

        /* 下拉選單內容 */
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
            z-index: 1;
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
        }

        /* 每個選項 */
        .dropdown-content label {
            display: block;
            padding: 10px;
            cursor: pointer;
            font-size: 14px;
        }

        .dropdown-content label:hover {
            background-color: #f1f1f1;
        }

        /* 已選結果 */
        .selected-items {
            margin-top: 20px;
            font-size: 16px;
            color: #333;
        }

/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */  

@media (max-width: 333px) {
    /* For Vivo x fold3 */
body {
            margin: 10px;
            padding: 5px;
            user-select: none;
            font-size: 10px;
        }

input, button {
            font-size: 10px;
            margin: 5px 0;
            padding: 2px;
        }
th, td {
    text-align: left;
    font-size: 8px;
}
}

 @media (max-width: 768px) {
     /* For Mobile phone */
       table, thead, tbody, th, td, tr {
        display: block;
      }

      thead tr {
        display: none; /* 隐藏表头 */
      }

      tbody tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 10px;
      }

      tbody td {
        display: flex;
        flex-wrap: wrap; /* 确保多行文字不会变形 */
        /* padding: 5px 10px; */
        align-items: center;
      }

      tbody td::before {
        content: attr(data-label); /* 通过 data-label 显示每列标签 */
        font-weight: bold;
        flex: 0 0 20%; /* 标签宽度占 40% */
        text-align: left;
        margin-right: 10px;
      }

      tbody td span {
        flex: 1; /* 多行文字占用剩余空间 */
        word-wrap: break-word;
        white-space: normal;
    }

    th, td {
    text-align: left;
    font-size: 12px;
}
   
}

@media (max-width: 1200px) {
     /* For Mobile phone */
th, td {
    text-align: left;
    font-size: 9px;
}
}