@charset "UTF-8";

body {
    background: #fbfbf9;
    line-height: 150%;
}

/* 共通 */
.d-flex {
    display: flex;
}

.f_left {
    float: left;
    text-align: left;
}

.f_right {
    float: right;
    text-align: right;
}

.t_center {
    text-align: center;
    flex-grow: 0;
}

.clearfix {
    clear: both;
    white-space: nowrap;
}

.linone {
    list-style-type: none;
}

.d-none {
    display: none;
}

/* 距離 */
.pg-20 {
    padding-bottom: 20px;
}

.md-20 {
    margin-bottom: 20px;
}

.f-34 {
    font-size: 34px;
}

.f-48 {
    font-size: 48px;
}

.f-40 {
    font-size: 40px;
    font-weight: 700;
}

.f-28 {
    font-size: 28px;
}

.f-18 {
    font-size: 18px;
}

/* 字型 */
.original-surfer-regular {
    font-family: "Original Surfer", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* 顏色 */
.c-green {
    color: #1e8a32;
}

hr {
    color: #D9D9D950;
    width: 100%;
}


/* top 鍵 */
.go-top {
    /* display: none; */
    position: fixed;
    bottom: 30px;
    right: 20px;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    z-index: 10;
    background: url(../images/icon_top.svg) no-repeat center top;
    background-size: 100%;
}

/* .go-top:hover { */
/* background-color: #0056b3; */
/* } */

/* icon */

/* 內容區塊book */
.book_item .lcon-lock {
    position: absolute;
    z-index: 4;
    background: url(../images/icon_lock.svg) no-repeat center center;
    background-size: 100%;
    width: 70px;
    height: 70px;
    display: flex;
}

/* 閱讀 */
.tool-title .icon-totem-01 {
    background: url(../images/icon_totem_01.svg) no-repeat left 10px center;
    width: 60px;
    height: 45px;
    margin: 0 10px 0 5px;
    display: inline-block;
}

.tool-title .icon-back {
    background: url(../images/icon_back.svg) no-repeat center bottom;
    /* background-size: 100%; */
    width: 30px;
    height: 20px;
    margin: 0 10px 0 5px;
}

/*課文朗讀*/
i.icon-sound {
    background: url(../images/icon-Sound.svg) no-repeat center center;
    background-size: 90%;
    width: 35px;
    height: 35px;
    margin: 0 5px;
    display: inline-block;
    cursor: pointer;
}

i.icon-soundtrue {
    background: url(../images/icon-Sound-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 35px;
    height: 35px;
    margin: 0 5px;
    display: inline-block;
    cursor: default;
}

i.icon-trans {
    background: url(../images/icon-trans.svg) no-repeat center center;
    background-size: 90%;
    width: 35px;
    height: 35px;
    margin: 0 5px 0 5px;
    display: inline-block;
    cursor: pointer;
}

i.icon-transtrue {
    background: url(../images/icon-trans-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 35px;
    height: 35px;
    margin: 0 15px 0 5px;
    display: inline-block;
    cursor: pointer;
}

/* 內容區塊 */
main {
    padding: 0;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    display: block;

}

main h1 {
    text-align: center;
    margin: 40px auto 20px auto;
}

/*自行 */
.booklist {
    padding: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.book_item {
    width: 200px;
    padding: 10px 10px;
    border-radius: 0 0 30px 0;
    box-shadow: 1px 1px 10px 4px #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    text-align: center;
}

.book_item.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.book_item div {
    position: absolute;
    background-color: #2525255a;
    z-index: 3;
    display: flex;
    width: 180px;
    height: 220px;
    top: 10px;
    justify-content: center;
    align-items: center;
}

.book_item img {
    z-index: 2;
    width: 180px;
    height: 220px;
    overflow: hidden;
}

/* lesson頁面*/
.volume-content {
    background: #EBF6F6 url(../images/volume_top.svg) no-repeat center bottom;
    background-size: 100%;
    height: 200px;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.volume-content #lesson-name {
    line-height: 120%;
}

.volume-content .top-text {
    margin-right: 10px;
}

.volume-content .top-text h1 {
    margin: 10px auto;
    text-align: left;
}

.volume-content .top-text p {
    text-align: left;
}

.volume-content img {
    width: 110px;
    height: 140px;
    border-radius: 8px;
}

/*閱讀 */
.unit-content {
    min-height: calc(100vh - 410px);
    width: 90%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.tool-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px 15px 0;
    align-items: center;
}

.tool-title.flex-end {
    justify-content: flex-end;
}

.tool-title h2 {
    display: flex;
    align-items: center;
    font-size: 28px;
}

.tool-title span {
    background-color: #ebf6f6;
    border-radius: 16px;
    color: #333333;
    padding: 10px 10px;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.tool-title .tool-tab {
    display: flex;
    gap: 12px;
    text-wrap: nowrap;
}

.tool-title .tool-tab button {
    border-radius: 50px;
    background-color: #21A5A3;
    color: #fff;
    margin: 0 10px 0 0;
    padding: 5px 20px;
    cursor: pointer;
}

.tool-title .tool-tab button.active,
.tool-title .tool-tab button:focus {
    background-color: #D7BB2F;
}

.unit-list {
    width: 100%;
    margin: 20px auto;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    min-height: calc(100vh - 790px);
}

.unit-list .unit {
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    display: inline-flex;
    padding: 20px 20px;
    box-sizing: border-box;
    font-size: 2em;
    color: #686868;
    border-bottom: 1px solid #f2f2f2;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;

}

.unit-list .unit:hover {
    background: #f2f2f2;
}

.unit-list .unit span {
    background: url(../images/icon-arrow.svg) no-repeat right center;
    text-indent: -9999px;
    background-size: 100%;
    width: 15px;
    height: 15px;
    display: inline-block;
    align-items: center;
}

.unit-list .unit span:hover {
    background: #f2f2f2 url(../images/icon-arrow-hv.svg) no-repeat right center;
    text-indent: -9999px;
    width: 15px;
    height: 15px;
}

.unit-list .unit:first-child {
    border-top: 1px solid #f2f2f2;
}

.unit-list .unit:first-child {
    border-top: 1px solid #f2f2f2;
}

/* 課次頁 */
.unit-itme {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.unit-classes {
    border-radius: 16px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    margin: 20px;
    width: 200px;
    height: 200px;
    font-weight: 300;
    cursor: pointer;
}

.unit-classes.Read {
    background: #5CB2C6 url(../images/totem_bg.svg) no-repeat right top -80px;
    background-size: 300%;
}

.unit-classes.word {
    background: #538F3B url(../images/totem_bg.svg) no-repeat right top -80px;
    background-size: 300%;

}

#sticky-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fbfbf9;
}

/*課文朗讀區塊 */
.read-content {
    /* margin: 20px auto; */
}

.paragraph-content {
    text-indent: 2em;
}

#tips-area{
    display: none;
}

.translate {
    background: #F2EDE2 url(../images/totem_bg.svg) no-repeat right center;
    border-radius: 16px;
    padding: 25px 40px;
    display: flex;
    width: 100%;
    margin: 10px auto;
}

.translate .w-40 {
    width: 35%;
    margin-right: 5%;
}

.translate .w-60 {
    width: 60%;
}


.text {
    width: 98%;
    margin: 0 auto 40px auto;
}

.text p {
    margin: 15px auto;
}

.text span.word {
    border-radius: 5px;
    padding: 2px 5px 5px 5px;
    margin: 0 2px;
    color: #fff;
    font-weight: 900;
    color: #329495;
    cursor: pointer;
}

.text span.phrase {
    border-radius: 5px;
    padding: 2px 5px 5px 5px;
    margin: 0 2px;
    color: #fff;
    font-weight: 900;
    color: #E0A132;
    cursor: pointer;
}

.translate-text {
    display: none;
}

.highlight {
    text-decoration: line-through;
    /* 顯示刪除線 */
    text-decoration-thickness: 5px;
    /* 設定刪除線粗細為 2px */
    text-decoration-color: #FFE60360;
    /* 或使用相對單位 */
    /* text-decoration-thickness: 1em;   */
}

.sentence {
    cursor: pointer;
}

/*單字朗讀區塊 */
.word-content {
    flex-direction: column;
    align-items: center;
    position: relative;
    display: flex;
}

.word-meaning {
    display: flex;
    gap: 4px;
}

.carousel {
    position: relative;
    min-width: 400px;
    min-height: 400px;
    perspective: 1000px;
}

.card {
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.8s;
    transition: transform 0.8s;
    cursor: pointer;
}

.card.flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: space-around;
}

.card-back {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

h2 strong,
.sentence-text {
    font-weight: 900;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00a7a7;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;

    z-index: 99;
}

.arrow.left {
    left: -35px;
}

.arrow.right {
    right: -35px;
}

.card-list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: block;
    text-align: center;

}

.card-list h2,
.quiz-card h2 {
    text-align: center;
    background-color: #54B9B8;
    color: #fff;
    padding: 10px 0;
    border-radius: 30px;
    width: 60%;
    margin: 0 auto 20px auto;
}

.quiz-card p {
    text-align: center;
}

.card-list,
.quiz-card h3 {
    color: #1e8a32;
    margin: 20px auto;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
}

.card-list ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.card-list ul li {
    background: #e6f7ff;
    text-align: center;
    border-radius: 8px;
}

.card-list ul li a {
    display: block;
    background: #f1faff;
    border-radius: 8px;
    padding: 12px;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    text-align: center;
}


/* 
.correct:target {
    background: #4caf50;
    color: #fff;
}

.wrong:target {
    background: #ff6b5c;
    color: #fff;
}

.wrong:target~.correct,
.wrong:target~li .correct {
    background: #4caf50;
    color: #fff;
} */

/* /*題目卡單字測驗*/
.quiz-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-width: 400px;
    min-height: 400px;
    text-align: center;
    position: relative;
    width: 60%;
    font-weight: 700;
    margin: 0 auto 40px auto;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 80%;
    margin: 20px auto;
}

.option {
    background: #f1faff;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.option.selected {
    background: rgba(184, 223, 217, 1);
}

.option.disabled {
    cursor: default !important;
}

.quiz-card:has(#quiz-show-answer.disabled) .option {
    cursor: default !important;
}

.quiz-card:not(:has(#quiz-show-answer.disabled)) .option:hover:not(.selected) {
    background: #e6f7ff;
}

.option.correct {
    background: #4caf50;
    color: #fff;
}

.option.wrong {
    background: #ff6b5c;
    color: #fff;
}

.btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.btn button {
    margin: 20px 10px;
}

.quiz-container .icon_ok {
    background: url(../images/icon_0k.svg) no-repeat center center;
    background-size: 100%;
    width: 200px;
    height: 200px;
    display: block;
    margin: 40px auto 20px auto;
}

.summary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary img {
    width: 100%;
    height: 100px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    justify-content: center;
}

.show-answer {
    margin: 15px auto 0 auto;
    padding: 5px 15px;
    border: none;
    border-radius: 50px;
    background: #00a7a7;
    color: #fff;
    cursor: pointer;
    text-align: center;
    display: block;
}

.show-answer.disabled {
    background: rgb(217, 217, 217);
    color: #fff;
    cursor: default;
}

/*卡片方向鍵*/
button.icon-next {
    background: url(../images/icon-next.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    display: inline-block;
    cursor: pointer;
    position: absolute;
}

button.icon-next.disabled {
    background: url(../images/icon-next-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    position: absolute;
    cursor: default;
}

/* button.icon-next:hover {
    background: url(../images/icon-next-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    position: absolute;
} */

button.icon-previous {
    background: url(../images/icon-previous.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    display: inline-block;
    cursor: pointer;
    position: absolute;

}

button.icon-previous.disabled {
    background: url(../images/icon-previous-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    display: inline-block;
    cursor: default;
    position: absolute;
}

/* button.icon-previous:hover {
    background: url(../images/icon-previous-hv.svg) no-repeat center center;
    background-size: 90%;
    width: 50px;
    height: 50px;
    margin: 0 15px 0 5px;
    display: inline-block;
    cursor: pointer;
    position: absolute;
} */

/* 訊息頁籤 */
.megtabBox {
    display: block;
    margin: 0 auto 30px auto;
}

.megtabBox .megtabList {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 2% auto;
}

/* Menu-below  */
.menubelow {
    background-color: #329495;
    color: #fff;
    border-radius: 50px;
}

/* ===== 桌機 toolbar ===== */
.menu-below {
    background-color: #329495;
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 550px;
    z-index: 100;
}

.menu-below ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.menu-below li a,
.menu-below summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-below li a:hover,
.menu-below summary:hover {
    color: #ffeb3b;
}

/* icon 共用設定 */
.menu-below i {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* icon 圖示 */
.menu-below li i.list {
    background-image: url(../images/menu_list.svg);
}

.menu-below li i.play {
    background-image: url(../images/menu_play.svg);
}

.menu-below li i.stop {
    background-image: url(../images/menu_stop.svg);
}

.menu-below li i.speed {
    background-image: url(../images/menu_speed.svg);
}

.menu-below li i.transl {
    background-image: url(../images/menu_transl.svg);
}

.menu-below li i.flipcard {
    background-image: url(../images/menu_flipcard.svg);
}

.menu-below li i.quiz {
    background-image: url(../images/menu_quiz.svg);
}

/* 讓 icon 也會隨著 a:hover 變換 */
.menu-below li a:hover i.list {
    background-image: url(../images/menu_list_hover.svg);
}

.menu-below li a:hover i.play {
    background-image: url(../images/menu_play_hover.svg);
}

.menu-below li a:hover i.stop {
    background-image: url(../images/menu_stop_hover.svg);
}

.menu-below li a:hover i.speed {
    background-image: url(../images/menu_speed_hover.svg);
}

.menu-below li a:hover i.transl {
    background-image: url(../images/menu_transl_hover.svg);
}

.menu-below li a:hover i.flipcard {
    background-image: url(../images/menu_flipcard_hover.svg);
}

.menu-below li a:hover i.quiz {
    background-image: url(../images/menu_quiz_hover.svg);
}


/* hover icon 換圖 */
.menu-below summary:hover i.list {
    background-image: url(../images/menu_list_hover.svg);
}

/* hover icon 換圖 */
.menu-below summary:hover i.speed {
    background-image: url(../images/menu_speed_hover.svg);
}

/* ===== 下拉選單（切換段落） ===== */
.dropdown {
    position: relative;
}

details {
    position: relative;
}

details[open] summary {
    color: #ffeb3b;

}

.submenu {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 140px;
}

details ul.submenu {
    flex-direction: column;
    background-color: #D7BB2F;
    min-width: 70px;
    width: max-content;
}

.submenu li {
    width: 100%;
}

.submenu li a {
    display: block;
    padding: 5px 20px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

.submenu li a:hover {
    background: #b59c1f;
    color: #fff;
    border-radius: 5px;
}

/* active 狀態（目前選取） */
.submenu li a.active {
    background: #ffffffcc;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
}

/* summary 樣式重設 */
summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* pop up modal*/
a.button {
    display: inline-block;
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

/* overlay 與 modal */
#modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* 當目標被選中時顯示 */
/* 顯示 popup */
#modal:target {
    display: flex;
}

/* 半透明遮罩（點背景即可關閉） */
#modal:target .overlay {
    position: fixed;
    inset: 0;
    background: #329495b3;
}

/* 遮罩設成 link，點會跳回 # 關閉 */
#modal .overlay {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.modal-box {
    background: #fff;
    padding: 20px;
    width: 90%;
    height: 70%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

/* 關閉按鈕 */
.popup-close {
    display: inline-block;
    margin-top: 50px;
    color: #fff;
    text-decoration: none;
    background-color: #21A5A3;
    border-radius: 8px;
    padding: 5px 15px;
}

.popup-close:hover {
    background-color: #21A5A3;
}

@media screen and (max-width: 1366px) {
    .data_source p {
        width: 58vw;
    }
}

@media screen and (max-width: 1024px) {
    main {
        width: auto;

        min-height: auto;
    }

    .data_source {
        margin: 35px 25px;
    }

    .data_source.radius {
        background: #f3f9ec url(../images/radius_p.png) no-repeat top right 0;
        background-size: 30%;
        border-radius: 0 0 20px 20px;
        padding: 20px 40px 60px 40px;
        margin: 0 auto;
    }

    .tabContentList .message_item {
        min-width: auto;
        width: 100%;
    }

    .data_source p {
        width: auto;
    }
}

@media screen and (max-width: 767.98px) {
    body {
        font-size: 18px;
    }

    .translate {
        display: none;
    }

    /* 共用 */
    .go-top {
        bottom: 50px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        right: 15px;
    }

    .f-48 {
        font-size: 42px;
    }

    .f-40 {
        font-size: 30px;
    }

    .f-34 {
        font-size: 24px;
    }

    /* 字型 */
    h1 {
        line-height: 120%;
        font-size: 30px;
        padding: 0;
    }

    .avatar_chat {
        margin: 0 10px 0 auto;
        width: 35px;
        min-width: 35px;
    }

    aside button {
        padding: 10px 15px;
        min-width: 60px;
        margin: 5px 5px;
        border-radius: 10px;
        text-align: left;
    }

    button {
        background: #decce6a3;
        padding: 10px 15px;
        border-radius: 10px;
    }

    .data_source {
        margin: 25px 25px 35px 25px;
    }

    .data_source.radius {
        background: #f3f9ec url(../images/radius_m.png) no-repeat top right 0;
        background-size: 45%;
        border-radius: 0 0 20px 20px;
        padding: 20px 20px 20px 20px;
        margin: 0 auto;
        display: inline-block;
    }

    .data_source ul li {
        display: block;
        margin: 0 0;
    }

    .data_source button,
    .data_source button:hover,
    .data_source button:focus,
    .data_source_radius button,
    .data_source_radius button:hover,
    .data_source_radius button:focus {
        background: #09b2c7 url(../images/copy_icon.svg) no-repeat center left 20px;
        background-size: 17%;
        border-radius: 50px;
        color: #fff;
        cursor: pointer;
        padding-left: 42px;
        font-size: 14px;
        float: right;
        margin: 0 0;
        font-weight: bold;
    }

    /*top 資訊*/
    .booklist {
        justify-content: space-around;
    }

    .volume-content {
        height: 220px;
        padding: 20px 40px;
    }

    .volume-content #lesson-name {
        font-size: 40px;
    }


    .original-surfer-regular {
        font-style: normal;
        text-align: left;
    }

    /*page*/
    .unit-classes {
        width: 150px;
        height: 150px;
    }

    .carousel {
        width: 100%;
        min-width: 100%;
    }

    .translate {
        flex-direction: column;
        padding: 40px 20px;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
        max-width: 80%;
        height: fit-content;
        justify-content: center;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        gap: 20px;
    }

    .translate-close-icon {
        position: absolute;
        top: 20px;
        right: 20px;

        &:before,
        &:after {
            content: '';
            display: block;
            border: 1px solid #000;
            width: 20px;
            transform-origin: center;
            cursor: pointer;
        }

        &:before {
            transform: translateY(50%) rotate(45deg)
        }

        &:after {
            transform: translateY(-50%) rotate(-45deg)
        }

        &:hover {

            &:before,
            &:after {
                border: 1px solid red;
            }
        }
    }

    .translate .w-40 {
        width: 100%;
        margin-right: 0;
        margin: 2% auto;
    }

    .translate .w-60 {
        width: 100%;
    }

    .unit-content {
        min-height: calc(100vh - 410px);
        /* width: 80%; */
        margin: 20px auto;
        display: flex;
        flex-direction: column;
    }

    .tool-title {
        padding: 20px 0 15px 0;
        gap: 8px;

    }

    /*單字朗讀區塊 */
    .word-content {
        width: 85%;
        margin: 0 auto;
    }

    /* /*題目卡單字測驗*/
    .quiz-container {
        min-width: 100%;
        font-weight: 500;
    }

    /* 下方選單 */
    .menu-below {
        border-radius: 0;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        padding: 8px 0;
    }

    .menu-below ul {
        justify-content: space-around;
    }

    .menu-below li a,
    .menu-below summary {
        flex-direction: column;
        gap: 6px;
        font-size: 14px;
    }

    .menu-below i {
        width: -webkit-fill-available;
        height: 22px;
    }

    /* 手機版下拉選單位置調整 */
    .submenu {
        bottom: 90px;
    }

    .tool-title .tool-tab button {
        border-radius: 16px;
        padding: 5px 15px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 420px) {
    .volume-content #lesson-name {
        font-size: 30px;
    }

}

@media (max-width: 375px) {

    /* 共用 */
    .f-48 {
        font-size: 38px;
    }

    .f-40 {
        font-size: 30px;
    }

    .f-34 {
        font-size: 24px;
    }

    .f-28 {
        font-size: 24px;
    }

    .menu-below li a,
    .menu-below summary {
        padding: 8px 10px 0 10px;
    }

    .tool-title {
        font-size: 14px;
    }

    .tool-title .tool-tab {
        gap: 8px;
    }

    .tool-title #back-button .icon-back{
        width: 20px;
        height: 14px;
    }



    .unit-classes {
        width: 130px;
        height: 130px;
    }
}