body {
    background-color: #ddd;
}

.student_info {
    font-size: 25px;
}

.student_info span {
    padding: 5px;
}

.question_list .que_op{
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 3px dotted #fff;   
    padding: 15px 5px 15px 5px;
    margin: 15px 0 15px 0;
}

.que_op .option li label img{
    border: 2px solid #fff;
    padding: 4px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 20%;
    min-width: auto !important;
}

.que_op img{
    border: 2px solid #fff;
    padding: 4px;
    border-radius: 15px;
    margin-bottom: 10px;
    width: 40%;
}


.que_op .quelist_i{
    margin: 15px 5px 15px 5px;
}

.que_op .option li label{
    cursor: pointer;
}

.que_op .option li label img,.que_op img {
    min-width: 50%;
    min-height: auto;
}

.que_op .option li label input[type="radio"]{
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.que_op .option li {
    padding: 5px 5px 5px 5px;
}

.que_op .option li:hover {
    background-color: darkgrey;
    border-radius: 15px;
}

.chinese-list {
    counter-reset: list-number;
    list-style: none;
}

.chinese-list li.que_op {
    counter-increment: list-number;
    position: relative;
}

.chinese-list li.que_op::before {
    content: counter(list-number, cjk-ideographic) ". ";
    position: absolute;
    left: -1rem;
}


@media (max-width:780px) {
    .que_op .option li label img {
        width: auto;
        min-width: 50% !important;
    }
    .que_op .option li label img,.que_op img {
        min-width: 50%;
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    /* 基礎轉型：將 Table 轉為 Block (卡片式) */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
    }
    
    .table tr {
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 10px;
        background: #fff;
    }

    .table td {
        position: relative;
        text-align: right;
        padding-left: 45%; /* 為左邊標籤留空間 */
        min-height: 50px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* --- 中文標籤 (::before) --- */
    .table td::before {
        content: attr(data-cn); /* 抓取 data-cn */
        position: absolute;
        left: 10px;
        top: 10px; /* 放在上方 */
        font-weight: bold;
        font-size: 14px;
        color: #333;
    }

    /* --- 英文標籤 (::after) --- */
    .table td::after {
        content: attr(data-en); /* 抓取 data-en */
        position: absolute;
        left: 10px;
        top: 28px; /* 放在中文下方 */
        font-size: 10px;
        color: #888;
        font-weight: normal;
    }
}