/**
 * ========== Global CSS ==========
 */
.fs10 {font-size: 0.625rem !important;}    /* 10px */
.fs11 {font-size: 0.69rem !important;}     /* 11px */
.fs13 {font-size: 0.813rem !important;}    /* 13px */
.fs16 {font-size: 1rem !important;}        /* 16px */
.mr10 {margin-right: 0.625rem !important;}  /* 10px */
.flat-card { box-shadow: none!important; }

.modal-title i {    /** modal title icon */
    font-size: 1.4rem;
}
.btn:active {
    transform: scale(0.92);
}
.btn-orange {
    background: #f9a826;
    color: #fff !important;
}
.btn-orange:hover {
    color: #fff !important;;
    background: #e8971a !important;
}
@media (max-width: 766px) {
    body {margin-bottom: 60px;}         /* footer menu */
    .btn-to-top { bottom: 8.25rem; }    /* above bottom nav */
}
@media (max-height: 500px) {

}
/**
 * ========= main-base ===========
 */
.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}
.navbar-brand img {
    height: 45px;
}
.navbar-brand .logo-text {
    margin-left: 10px;
    margin-top: 0;
    height: 40px;
}
.footer {
    font-size: 12px;
    margin: 8rem .3125rem .3125rem;
}
.bottom-nav {
    padding: 7px 0;
}
.bottom-nav .nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
}
.bottom-nav .nav-item i {

}
.bottom-nav .nav-item span {
    font-size: 13px;
}
@media (max-width: 500px) or (max-height: 500px){
    /* small logo for mobile device */
    .navbar-brand img {
        height: 30px;
    }
    .navbar-brand .logo-text {
        height: 30px;
    }
}

/* ========== Book Grid ========== */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));   /* min 120 width each column */
    gap: 20px 15px;     /* 行间距20px，列间距12px */
    place-items: center;    /* center */
}
.book-grid__theme_card {
    display: flex;
    align-items: center;
    width: 100%;
}
@media (min-width: 600px) {
    .book-grid__theme_card.first {
        margin-top: 0.625rem;
    }
}


.book-grid__book-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.book-grid__book-card:hover {
    transform: translateY(-4px);
}

.book-grid__book-cover-card {
    width: 120px;
    /*height: 180px;*/
    height: 160px;
    background: #e9ecef;
    position: relative;  /* 让 spinner 绝对定位 */
    border-radius: 8px;
    overflow: hidden;
}
.book-grid__book-cover-img {
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.loading-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.lazy-loading-parent .loading-overlay{
  opacity: 1;
  visibility: visible;
}
.book-grid__book-cover-card .loading-overlay{
    border-radius: 8px;
}
.book-grid__book-cover-spinner {
    position: absolute;
    top: 45%;
    left: 45%;
    animation: rotation 3s linear infinite;
    z-index: 2;
    font-size: 1.5em;
    color: #2d3e6e;
}

/* hide spinner after img loaded */
.book-grid__book-cover-img.loaded + .book-grid__book-cover-spinner {
    display: none;
}

.book-grid__book-cover-card .badge {
    position: absolute;
    right: 3px;
    bottom: 3px;
    z-index: 999;
    font-size: 0.7rem;
    font-weight: normal;
}

.book-grid__book-title {
    margin-top: 5px;
    font-size: 13px;
    color: #1e2a3a;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.book-grid__book-meta {
    font-size: 10px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 4px;
}

/* --- 舒适布局（宽>=600 且 高>=500 时生效） --- */
@media (min-width: 600px) {
    .book-grid {
        column-gap: 20px;
    }
}

/* --- 理想模式（宽>=900 且 高>=700，呈现双页） --- */
@media (min-width: 900px) {
    .book-grid {
        column-gap: 30px;
    }
}
/* ========== // END Book Grid ========== */


/* ========== Book Cover Page ========== */
#book-cover {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

    /* 背景图片放在 CSS 里 */
    background-image: url('../../image/book_reading_bg.jpg');
}

/* 半透明遮罩（让背景更柔和，护眼） */
.book-cover__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* 中央图书封面容器 */
.book-cover__book-cover-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*width: auto;
    height: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;*/
    z-index: 5;
}

/* 图片容器：相对定位，用于按钮绝对定位 */
.book-cover__book-cover-image-container {
    position: relative;
    display: inline-block;
    /* 让容器尺寸完全由图片决定 */
    line-height: 0;
}
.book-cover__book-cover-image-container .loading-overlay{
    border-radius: 16px;
}

.book-cover__book-cover-img {
    max-height: 75vh;    /* 限制最大高度，留出上下空间 */
    max-width: 85vw;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

/* 按钮区域 - 居中偏下 */
.book-cover__action-btn-card {
    position: absolute;
    bottom: 8%;          /* 距离图片底部 8% 的位置（相对于图片高度） */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 15;
    width: 200px;
    max-width: 80%;
}
.book-cover__action-btn-card .btn-main {
    width: 100%;
    min-width: 150px;
}
.book-cover__action-btn-card .btn-sm {
    width: 90%;
    font-size: 13px;
    min-width: 150px;
}
.book-cover__action-btn-card .btn > i {
    font-size: 1rem;
}
.book-cover__loading-card {
    position: fixed;
    top: 33%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
}
.lazy-loading-parent .book-cover__loading-card{
  opacity: 1;
  visibility: visible;
}

.book-cover__loading-card__dots {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-left: 10px;
}
.book-cover__loading-card__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}
.book-cover__loading-card__dots span:nth-child(1) {
    animation-delay: -0.32s;
    background: #fbf83c;
}
.book-cover__loading-card__dots span:nth-child(2) {
    animation-delay: -0.16s;
    background: #fbdc16;
}
.book-cover__loading-card__dots span:nth-child(3) {
    animation-delay: 0s;
    background: #eab60c;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0.3);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.book-cover__loading-card__main-text {
    font-size: 14px;
    font-weight: 450;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.book-cover__loading-card__sub-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    white-space: nowrap;
    margin-top: 10px;
}
/* --- 舒适布局（宽>=600 且 高>=500 时生效） --- */
@media (min-width: 600px) {
    .book-cover__loading-card__main-text {
        font-size: 16px;
    }
    .book-cover__loading-card__sub-text {
        font-size: 16px;
    }
}

/* --- 理想模式（宽>=900 且 高>=700，呈现双页） --- */
@media (min-width: 900px) {
}

/* ========== // END Book Cover Page ========== */

/* ========== Book Page ========== */
#book-page {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*background: #424547;*/
    background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../image/book_reading_bg.jpg');
}
#book-page:fullscreen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/**
 * menu bar - left/right
 */
.book-page__menu-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: fixed;
    z-index: 10;
    top: 40px;
}
.book-page__menu-bar .btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0 0;
    gap: 0;
    min-width: 44px;
    min-height: 44px;
}
.book-page__menu-bar .icon {}
.book-page__menu-bar .tip {
    font-size: 10px;
}
.book-page__menu-bar.left {
    left: 40px;
}
.book-page__menu-bar.right {
    right: 40px;
}


/* ===== 收藏按钮状态 ===== */
.btn-fav .tip {
    font-size: 11px;
    color: white;
}

/* 弹跳动画（在 JS 中触发） */
.btn-fav.pop .icon svg {
    animation: heartPop 0.35s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    30% { transform: scale(1.4); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
/* 未收藏 */
.btn-fav svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    transition: fill 0.2s, stroke 0.2s;
}

/* 已收藏（由 JS 添加类 .collected 到按钮，同时控制 SVG） */
.btn-fav.saved svg path {
    /*fill: #ffe600;
    stroke: #ffe600;*/
    fill: #f58646;
    stroke: #f58646;
    stroke-width: 0;
}

/* 可选：添加小阴影效果 */
/*.btn-fav.saved svg {
    filter: drop-shadow(0 2px 6px rgba(255, 230, 0, 0.25));
}*/

.book-page__page-image-card {
    position: fixed;
    flex: 1;
    /*background: #424547;*/
    overflow: hidden;
    min-height: 0;   /* flex 限制溢出 */
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
}
/* 绘本图片：高度100%，宽度自适应，居中 */
.book-page__page-image {
    height: 100vh;
    width: auto;
    max-width: 100vw;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    cursor: pointer;
}

/* side control bar */
.book-page__side-ctrl-bar {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    bottom: 22%;
    position: fixed;
    z-index: 999;   /* pin to top */
}
.book-page__side-ctrl-bar .btn {
    min-width: 60px;    /* better design */
    min-height: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    margin-bottom: 10px;
}
.book-page__side-ctrl-bar .icon { font-size: 26px; }
.book-page__side-ctrl-bar .tip {
    font-size: 11px;
    margin-bottom: -7px;
}
.book-page__left-ctrl-bar {
    left: 40px;
}
/* right bottom control bar */
.book-page__right-ctrl-bar {
    right: 40px;
}
#lang_switch_btn {
    color: white;
    font-weight: 700;
    /* shadow to solve the white bg problem */
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
}

/* bottom control bar */
.book-page__bottom-ctrl-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: fixed;
    bottom: 30px;

    left: 50%;
    transform: translateX(-50%);
    width: 150px;   /* 固定宽度，并给左侧菜单让出空间（防止重叠） */
    z-index: 998;
}

/* 字幕区域：浮在图片上，底部偏上 */
.book-page__subtitle-box {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-height: 20%;     /* bottom of ctrl sidebar */
    background: rgba(255, 255, 255, 0.7);
    border-radius: 27px;
    padding: 12px 22px;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    color: #1f2f3a;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
    cursor: default;
    /*pointer-events: none;   让点击穿透 */
    overflow-y: auto;
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge 旧版 */
}
/* 单独写出伪元素选择器 */
.book-page__subtitle-box::-webkit-scrollbar {
    display: none;
}

.ecdict {
}

/* 弹窗默认隐藏，绝对定位在单词正上方居中 */
.ecdict-popup {
    position: absolute;
    /*white-space: nowrap;*/
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    padding: 8px 16px;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.125);
    z-index: 99999;
    font-size: 1.5rem;
    max-width: 70vw;
    min-width: 22vw;
}
.ecdict-popup .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 4px;
}
.ecdict-popup .popup-fav-btn {
    padding: 3px 5px;
    border: none;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ecdict-popup .popup-fav-btn.btn-add {
    background: none;
    color: #7a8e9e;
}
.ecdict-popup .popup-fav-btn.btn-added {
    background: #fef0f0;
    color: #e88080;
    border: none;
    border-radius: 20px
}

/* 鼠标悬停（桌面端可选）或聚焦时显示 */
.ecdict:hover .ecdict-popup,
.ecdict:focus-within .ecdict-popup {
  display: block;
}


.speed-dropdown {
    position: relative;
    display: inline-block;
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 50px;
    text-align: center;
    cursor: pointer;
}

.speed-dropdown-trigger {
    display: inline-block;
    /*padding: 4px 2px;background: transparent;*/
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    line-height: 1.4;
    border: none;
    outline: none;
    font-family: inherit;
    /* shadow to solve the white bg problem */
    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(0, 0, 0, 0.4);
}

.speed-dropdown-trigger:hover {
    color: #ccc;
    border-bottom-color: #2563eb;
}

.speed-dropdown-trigger:active {
    transform: scale(0.97);
}

.speed-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 64px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transform-origin: top left;
    z-index: 100;
    pointer-events: none;
}

.speed-dropdown.is-open .speed-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 向上弹出 */
.speed-dropdown-up .speed-dropdown-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
}
.speed-dropdown-left .speed-dropdown-menu {
  top: 50%;
  left: auto;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  transform-origin: right center;
}
.speed-dropdown-right .speed-dropdown-menu {
  top: 50%;
  left: calc(100% + 8px);
  right: auto;
  transform: translateY(-50%);
  transform-origin: left center;
}
.speed-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

.speed-dropdown-item:active {
    transform: scale(0.97);
}

.speed-dropdown-item.is-active {
    background: #eef2ff;
    color: #1d4ed8;
}


.speed-dropdown-item:not(.is-active):hover {
    background: #f8fafc;
}

.speed-dropdown-item:not(.is-active):active {
    background: #f1f5f9;
}

.speed-dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    touch-action: manipulation;
}

.speed-dropdown.is-open .speed-dropdown-overlay {
    display: block;
}

/**
 * Book detail page - iPad. 业界标准写法
 *  - Normally, it's same as desktop.
 */
@media (max-width: 1024px) and (min-width: 768px) {
    /* menu-bar buttons */
    .book-page__menu-bar .btn {
        min-width: 50px;
        min-height: 50px;
    }
    .book-page__menu-bar .icon { font-size: 24px; }
    .book-page__menu-bar .icon svg {
        height: 40px; width: 40px;
    }
    .book-page__menu-bar .tip {
        font-size: 11px;
        margin-top: -1px;
    }
    /* book cover - action buttons */
    .book-cover__action-btn-card .btn {
        font-size: 1rem;
        line-height: 1.6;
    }
}  /* ========== /// END Book detail page - iPad /// ========== */

/**
 * Book detail page - Mobile. 业界标准写法
 */
@media only screen and (max-width: 767px) {
    /* menu-bar buttons */
    .book-page__menu-bar { top: 30px; }
    .book-page__menu-bar.left,
    .book-page__left-ctrl-bar { left: 20px; }
    .book-page__menu-bar.left { gap: 8px; }
    .book-page__menu-bar.right,
    .book-page__right-ctrl-bar { right: 20px; }

    /* book cover - action buttons */
    .book-cover__action-btn-card {
        bottom: 5%;
        gap: 10px;
    }

    /* book page - ctrl menu */
    .book-page__side-ctrl-bar .btn {
        min-width: 44px;
        min-height: 44px;
        margin-bottom: 0;
    }
    .book-page__side-ctrl-bar .icon { font-size: 20px }
    .book-page__side-ctrl-bar .tip { font-size: 10px }
    /* book page - subtitle */
    .book-page__subtitle-box {  /* subtitle */
        padding: 6px 12px;
        font-size: 1rem;
        line-height: 1.3;
        border-radius: 10px;
        max-height: 14vh;
        bottom: 1vh;
        max-width: 70vw;
    }
    .book-page__side-ctrl-bar { /* side bar */
        bottom: 15vh;
        gap: 12px;
    }
    #lang_switch_btn,
    .speed-dropdown-trigger { font-size: 14px !important; }
    .speed-dropdown-item {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    /* ecdict popup */
    .ecdict-popup {
        font-size: 14px;
        padding: 0 10px 4px;
    }
    .ecdict-popup .title { padding-bottom: 0; }
    .ecdict-popup .popup-fav-btn { font-size: 13px; }

}

@media (max-width: 767px) and (orientation: landscape) {
    .book-page__side-ctrl-bar {bottom: 10vh;}
    .book-page__subtitle-box {  /* subtitle */
        max-height: 15vh;
        bottom: 2vh;
    }
}

/* mobile + portrait (vertical) */
@media (max-width: 767px) and (orientation: portrait) {

}
/* ========== /// END Book detail page - mobile /// ========== */
/* ========== // END Book detail page ========== */


/* ========== // Print Modal ========== */
#book_pages_print_modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}
#book_pages_print_modal .modal-header img {
    height: 20px;
}
#book_pages_print_modal .modal-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: #2d2d2d;
}
#book_pages_print_modal .modal-content {
    border-radius: 16px;
}
#book_pages_print_modal .book-info {
    background: #f9f8f6;
    border-radius: 16px;
    padding: 10px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
#book_pages_print_modal .book-info .title {
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
}
#book_pages_print_modal .book-info .pages {
    font-size: 14px;
    color: #777;
}
#book_pages_print_modal .action-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 8px;
}
#book_pages_print_modal .action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
#book_pages_print_modal .action-area .btn-panel {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}
#book_pages_print_modal .action-area .btn {
    flex: 1;
    min-width: 175px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

#book_pages_print_modal .action-area .setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px 16px 6px 14px;
    background: #f9f8f6;
    border-radius: 40px;
    border: 1px solid #edeae5;
    user-select: none;
}

#book_pages_print_modal .action-area .setting-item .flag {
    font-size: 18px;
    line-height: 1;
}

#book_pages_print_modal .action-area .setting-item .label {
    font-size: 15px;
    white-space: nowrap;
}

#book_pages_print_modal .action-area .toggle {
    position: relative;
    width: 44px;
    height: 26px;
    background: #d5d0c9;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

#book_pages_print_modal .action-area .toggle.active {
    background: #f58646;
}

#book_pages_print_modal .action-area .toggle .thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#book_pages_print_modal .action-area .toggle.active .thumb {
    transform: translateX(18px);
}


#book_pages_print_modal .action-area .ad-banner {
    background: #f0ede8;
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #888;
    border: 1px dashed #d5d0c9;
    flex-wrap: wrap;
}

#book_pages_print_modal .action-area .ad-banner .ad-icon {
    font-size: 18px;
}

#book_pages_print_modal .action-area .ad-banner .ad-text {
    font-weight: 500;
    color: #666;
}

#book_pages_print_modal .action-area .ad-banner .ad-link {
    color: #f9a826;
    font-weight: 600;
    text-decoration: none;
}

#book_pages_print_modal .action-area .ad-banner .ad-tag {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

#book_pages_print_modal .modal-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #ccc;
    text-align: center;
    border-top: 1px solid #f0ede8;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 600px) {
    #book_pages_print_modal .action-area .setting-item {
        padding: 4px 12px 4px 10px;
    }

    #book_pages_print_modal .action-area .setting-item .label {
        font-size: 13px;
    }

    #book_pages_print_modal .action-area .toggle {
        width: 38px;
        height: 22px;
    }

    #book_pages_print_modal .action-area .toggle .thumb {
        width: 16px;
        height: 16px;
    }

    #book_pages_print_modal .action-area .toggle.active .thumb {
        transform: translateX(16px);
    }
}

/* ===== 打印加载提示 ===== */
.print-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(106, 106, 106, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    flex-direction: column;
    font-family: -apple-system, "PingFang SC", system-ui, sans-serif;
}

.print-loading-overlay.active {
    display: flex;
}

.print-loading-overlay .spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #f0ede8;
    border-top-color: #f9a826;
    border-radius: 50%;
    animation: print-spin 0.8s linear infinite;
}

@keyframes print-spin {
    to {
        transform: rotate(360deg);
    }
}

.print-loading-overlay .loading-text {
    margin-top: 16px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 0.5px;
}

.print-loading-overlay .loading-sub {
    margin-top: 3px;
    font-size: 13px;
    color: #d1d1d1;
}
/* ==========================================
   打印样式
 ========================================== */
@media print {
    body * {
        visibility: hidden;
    }

    #print-content,
    #print-content * {
        visibility: visible;
    }

    #print-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: block !important;
        background: #fff;
        z-index: 99999;
    }

    /* ---- 每个页面容器 ---- */
    .print-page-wrapper {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .print-header {
        margin: 0;
        padding: 0;
        font-size: 13px;
        width: 100%;
        overflow: hidden;
        display: block;
    }
    .print-header .header-left {
        float: left;
        display: inline;
        padding-top: 15px;
    }
    .print-header .header-right {
        float: right;
        display: inline;
        text-align: right;
    }
    .print-header .qr-container {
        display: inline-block;
        margin-left: 6px;
        vertical-align: middle;
    }
    .print-header .qr-container img,
    .print-header .qr-container canvas {
        width: 50px !important; /* CANNOT be smaller */
        height: 50px !important;
        display: block;
    }

    /* ---- 图片行 ---- */
    .print-page {
        display: block;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
    }
    .print-page .print-img-row {
        display: block;
        text-align: center;
        clear: both;
        padding-top: 12px;          /* 与 header 拉开距离 */
        /* 不设固定 padding-bottom，让内容自然撑开 */
    }
    .print-page .print-img {
        display: inline-block;
        width: 100%;
        max-height: 70%;
        margin: 0 auto;
        padding: 0;
    }

    /* ---- 文字行 ---- */
    .print-page .print-text-row {
        display: block;
        text-align: center;
        clear: both;
        padding: 12px 0 0 0;        /* 与图片拉开距离 */
    }
    .print-page .print-text {
        margin: 0 auto;
        display: block;
        text-align: center;
        padding: 0;
        vertical-align: top;
        width: 100%;
    }
    .print-page .print-text .p-en {
        font-size: 18px;
        line-height: 1.4;
        word-wrap: break-word;
    }
    .print-page .print-text .p-zh {
        font-size: 16px;
        margin-top: 4px;
        line-height: 1.4;
        word-wrap: break-word;
        display: none;
    }
    .print-page .print-text .p-zh.show {
        display: block;
    }

    .no-print {
        display: none !important;
    }
}

#print-content {
    display: none;
}


/* ========== // END Print Modal ========== */


/** =========== My Fav ============ */
.my-fav-navbar {}
.my-fav-navbar .navbar-nav-link {
    transition: none;
}
.my-fav-navbar .navbar-nav-link.active {
    color: #fff;
    background-color: #049aad;
    font-weight: 600;
}
.my-fav-panel {}
    .my-fav-panel .saved-empty-card {
        text-align: center;
        padding: 60px 20px;
    }
    .my-fav-panel .saved-empty-card .big-icon {
        font-size: 64px;
        margin-bottom: 16px;
        opacity: 0.6;
    }
    .my-fav-panel .saved-empty-card p {
        font-size: 16px;
        line-height: 1.6;
    }
    .my-fav-panel .saved-empty-card .sub {
        font-size: 13px;
        color: #989898;
        margin-top: 8px;
    }
    .my-fav-panel .saved-empty-card .btn {
        margin-top: 16px;
        padding: 10px 24px;
    }

.storage-tip {
    background: #f8f6f2;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #edeae5;
    transition: all 0.3s ease;
}
.storage-tip p { line-height: 1.8; }
.storage-tip hr { border-top: 1px dashed; }
.storage-tip ol { padding-left: 1.7rem; }
/** === end My fav === **/

/*
 ========================
        tune ear
 ========================
 */
.tune_ear__header-card .card-header {}
.tune_ear__header-card .subtitle {
    font-size: 13px;
    /*background: #d6f0f4;
    padding: 4px 14px;*/
    border-radius: 30px;
    padding-top: 4px;
}
.tune_ear__setting-card {
    margin-bottom: 14px;
}
.tune_ear__setting-card h6 {    /* title */
    font-size: 0.875rem;
    color: #7a8e9e;
}
.tune_ear__setting-card .option-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tune_ear__setting-card .option-group .option-btn {
    padding: 7px 16px;
    border: 1.5px solid #e8edf0;
    background: #ffffff;
    color: #7a8e9e;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.tune_ear__setting-card .option-group .option-btn:active {
    transform: scale(0.95);
}
.tune_ear__setting-card .option-group .option-btn .icon {
    margin-right: .3125rem;
}
.tune_ear__setting-card .option-group .option-btn.active {
    background: #049aad;
    color: #fff;
    border-color: #049aad;
    box-shadow: 0 2px 12px rgba(4, 154, 173, 0.25);
}
.tune_ear__setting-card .option-group .option-btn.multi {
    border-style: dashed;
    border-color: #a3d7dd;
}
.tune_ear__setting-card .option-group .option-btn.multi.active {
    border-style: solid;
    background: #d6f0f4;
    color: #049aad;
    border-color: #049aad;
    box-shadow: none;
}
.tune_ear__setting-card .option-group.duration .option-btn {
    min-width: 64px;
    text-align: center;
}
.tune_ear__setting-card .option-group.speed .option-btn {
    min-width: 56px;
    text-align: center;
    font-size: 13px;
    padding: 5px 16px;
    margin-bottom: 14px;
}
.tune_ear__setting-card .toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tune_ear__setting-card .toggle-wrapper .toggle-label {
    font-size: 13px;
    color: #7a8e9e;
    font-weight: 500;
}

.tune_ear__setting-card .toggle {
    position: relative;
    width: 44px;
    height: 26px;
    background: #d5d5d5;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.tune_ear__setting-card .toggle.active {
    background: #049aad;
}

.tune_ear__setting-card .toggle .thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.tune_ear__setting-card .toggle.active .thumb {
    transform: translateX(18px);
}

.playlist-scroll {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    margin: 0 -4px;
    padding: 0 4px;
}

/* 自定义滚动条 */
.playlist-scroll::-webkit-scrollbar {
    width: 4px;
}
.playlist-scroll::-webkit-scrollbar-track {
    background: #eef8fa;       /* --primary-bg 的具体值 */
    border-radius: 4px;
}
.playlist-scroll::-webkit-scrollbar-thumb {
    background: #d6f0f4;       /* --primary-light 的具体值 */
    border-radius: 4px;
}
.playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: #049aad;       /* --primary 的具体值 */
}
/* Firefox 支持 */
.playlist-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d6f0f4 #eef8fa;   /* thumb track */
}
.playlist-preview {
    /*margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8edf0;*/
}

.playlist-preview .playlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.playlist-preview .playlist-header .title {
    font-size: 13px;
    color: #7a8e9e;
}

.playlist-preview .playlist-header .count {
    font-size: 13px;
    font-weight: 600;
    color: #049aad;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 8px;
    border-bottom: 1px solid #f0f3f5;
    cursor: pointer;
}
.playlist-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: auto;
}
.playlist-item .item-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.current {
    background: #d6f0f4;       /* --primary-light 的具体值 */
    border-left: 3px solid #049aad;  /* --primary 的具体值 */
    border-radius: 8px 0 0 8px;
}
.playlist-item.current .index {
    color: #049aad;
    font-weight: 700;
}
.playlist-item.current .item-title {
    color: #049aad;
    font-weight: 600;
}
.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item .index {
    font-size: 12px;
    color: #b5c4cd;
    min-width: 24px;
    font-weight: 500;
}

.playlist-item .status-dot {
    margin-left: auto;
    font-size: 12px;
    color: #b5c4cd;
}

.playlist-item .status-dot.playing {
    color: #049aad;
    font-weight: 600;
}

.playlist-item .status-dot.playing::before {
    content: '▶ ';
}
.tune_ear__btn-start {
    width: 100%;
    /*padding: 16px;
    font-size: 18px;*/
    font-weight: 700;
    margin-top: 4px;
}
.tune_ear__btn-start:active {
    transform: scale(0.98);
}
.tune_ear__btn-start:hover {
    background: #028a9d;
    box-shadow: 0 6px 28px rgba(4, 154, 173, 0.40);
}
.tune_ear__btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    margin-bottom: 60px;
}
.btn-play-pause.data-done {
    position: relative;
    animation: none;
}
.btn-play-pause.data-done::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 1);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;                /* 置于按钮文字下方 */
    animation: mmripple 1.5s ease-out infinite;
    animation-fill-mode: both;
}
/* 波纹扩散关键帧 */
@keyframes mmripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        background: rgba(59, 130, 246, 1); /* 初始不变 */
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
        background: rgba(59, 130, 246, 0); /* ★ 强制背景透明 */
    }
}
.tune_ear__btn-start .icon {}

.tune_ear__btn-start .spinner {animation: rotation 2s ease-in-out infinite;}

@media (max-width: 500px) {
    .setting-card {padding: 14px 14px;}
    .tune_ear__setting-card .option-group .option-btn {padding: 7px 12px 7px 8px;}
    .tune_ear__setting-card .option-group.duration .option-btn {font-size: 13px;}
    .tune_ear__setting-card .option-group.speed .option-btn {
        min-width: 48px;
        font-size: 12px;
    }
}



/* ==========================================
    Playing Bar
 ========================================== */
.tune_ear__playing-bar {
    position: fixed;
    bottom: 52px;
    left: 0;
    right: 0;
    z-index: 99;
    background: #ffffff;
    border-top: 1px solid #e8edf0;
    box-shadow: 0 -4px 20px rgba(4, 154, 173, 0.10);
    padding: 7px 16px;
    display: none;
    width: 100%;
}
.tune_ear__playing-bar.active {
    display: block;
    animation: pbslideUp 1s ease;
}
@keyframes pbslideUp {
    from {opacity: 0;}
    to {opacity: 1;}
}
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .tune_ear__playing-bar {
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }
}
.tune_ear__playing-bar button {
    min-width: 44px;
    min-height: 44px;
}
/* ---- 主行 ---- */
.tune_ear__playing-bar .bar-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
}
/* 左侧：封面 + 书名 + 进度 */
.tune_ear__playing-bar .bar-left {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}
.tune_ear__playing-bar .bar-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tune_ear__playing-bar .bar-cover img {
    height: 37px;
}
.tune_ear__playing-bar .bar-book-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tune_ear__playing-bar .bar-book-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d3e4f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-top: 3px;
}
.tune_ear__playing-bar .bar-progress {
    font-size: 11px;
    color: #8396a1;
}
.tune_ear__playing-bar .bar-progress .highlight {
    color: #049aad;
    font-weight: 600;
}

/* ---- 右侧：时间 + 说明 + 按钮 ---- */
.tune_ear__playing-bar .bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.tune_ear__playing-bar .bar-time-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}
.tune_ear__playing-bar .bar-time {
    font-size: 16px;
    font-weight: 700;
    color: #049aad;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}
.tune_ear__playing-bar .bar-time.infinity {
    font-size: 18px;
}
.tune_ear__playing-bar .bar-time-label {
    font-size: 10px;
    color: #b5c4cd;
    font-weight: 400;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.tune_ear__playing-bar .bar-time-label .total-duration {
    color: #7a8e9e;
    font-weight: 500;
}

/* ---- 控制按钮 ---- */
.tune_ear__playing-bar .bar-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}
.tune_ear__playing-bar .bar-controls button {
    border: none;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    font-size: 18px;
    color: #049aad;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.tune_ear__playing-bar .bar-controls button:active {
    transform: scale(0.88);
    background: #eef8fa;
    box-shadow: 0 4px 16px rgba(4, 154, 173, 0.35);
}
.tune_ear__playing-bar .bar-controls .btn-play-pause {
    color: #049aad;
    font-size: 16px;
}
.tune_ear__playing-bar .bar-controls .btn-stop {
    color: #e57070;
}
.tune_ear__playing-bar .bar-controls .btn-stop:hover {
    background: #fef0f0;
    color: #d66a6a;
}
/* ==========================================
                   6. Toast
                   ========================================== */
        .toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.9);
            background: rgba(0, 0, 0, 0.75);
            color: #fff;
            padding: 14px 24px;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 500;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            text-align: center;
            max-width: 320px;
            backdrop-filter: blur(4px);
        }

        .toast.show {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

/* ==========================================
           Tube Ear
 ========================================== */
@media (max-width: 480px) {
    .playlist-scroll { max-height: 160px; }
    .tune_ear__playing-bar .bar-cover img { height: 34px; }
    .tune_ear__playing-bar .bar-book-title {font-size: 13px;}
    .tune_ear__playing-bar .bar-progress {font-size: 10px;}
    .tune_ear__playing-bar .bar-time {font-size: 14px;}
    .tune_ear__playing-bar .bar-time-label {font-size: 9px;}
    .tune_ear__playing-bar .bar-controls button {font-size: 15px;}
    .tune_ear__playing-bar .bar-controls .btn-play-pause {font-size: 14px;}
}

@media (min-width: 600px) {
    .playlist-scroll {max-height: 260px;}
}

@media (min-width: 768px) {
    .tune_ear__btn-start:disabled {margin-bottom: 0;}
    .playlist-scroll {max-height: 300px;}
    .tune_ear__playing-bar .bar-right { gap: 20px}
    .tune_ear__playing-bar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        border-radius: 14px 14px 0 0;
        border-left: 1px solid #e8edf0;
        border-right: 1px solid #e8edf0;
    }
    .tune_ear__playing-bar .bar-cover {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 10px;
    }
    .tune_ear__playing-bar .bar-book-title {
        font-size: 16px;
    }
    .tune_ear__playing-bar .bar-progress {
        font-size: 12px;
    }
    .tune_ear__playing-bar .bar-time {
        font-size: 18px;
    }
    .tune_ear__playing-bar .bar-time-label {
        font-size: 11px;
    }
    .tune_ear__playing-bar .bar-controls button {
        font-size: 20px;
    }
    .tune_ear__playing-bar .bar-controls .btn-play-pause {
        font-size: 18px;
    }
}


/***
  =====================
    My word
  =====================
 */
.my_word__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.my_word__toolbar .time-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.my_word__toolbar .time-filter .time-btn {
    padding: 4px 14px;
    border: 1px solid #e8edf0;
    border-radius: 30px;
    background: #ffffff;
    color: #7a8e9e;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.my_word__toolbar .time-filter .time-btn:active {
    transform: scale(0.95);
}
.my_word__toolbar .time-filter .time-btn.active {
    background: #049aad;
    color: #ffffff;
    border-color: #049aad;
    box-shadow: 0 2px 12px rgba(4, 154, 173, 0.25);
}
.my_word__toolbar .time-filter .time-btn:hover:not(.active) {
    background: #eef8fa;
    border-color: #d6f0f4;
}
.my_word__toolbar .print-btn {
    padding: 8px 18px;
    border: 1.5px solid #e8edf0;
    border-radius: 30px;
    background: #ffffff;
    color: #7a8e9e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.my_word__toolbar .print-btn:hover {
    border-color: #049aad;
    color: #049aad;
    background: #eef8fa;
}
.my_word__toolbar .print-btn .icon {
    font-size: 16px;
}
.my-word__word-table {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}
.my-word__word-table .word-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f3f5;
    gap: 10px;
    transition: background 0.15s;
}
.my-word__word-table .word-row:last-child {
    border-bottom: none;
}
.my-word__word-table .word-row:hover {
    background: #f9f9f9;
}
.my-word__word-table .word-row .col-word {
    flex: 0 0 90px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
}
.my-word__word-table .word-row .col-meaning {
    flex: 1;
    min-width: 0;
    color: #2d3e4f;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    padding-right: 4px;
}
.my-word__word-table .word-row .col-meaning .meaning-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.my-word__word-table .word-row .col-meaning .para-text {
    margin-top: 5px;
    line-height: 1.2;
}

.my-word__word-table .word-row .col-book {
    flex: 0 0 120px;
    font-size: 13px;
    color: #7a8e9e;
    white-space: nowrap;
}
.my-word__word-table .word-row .col-book .book-emoji {
    margin-right: 2px;
}
.my-word__word-table .word-row .col-book .book-link {
    color: #049aad;
    text-decoration: none;
    cursor: pointer;
}
.my-word__word-table .word-row .col-book .book-link:hover {
    text-decoration: underline;
}
.my-word__word-table .word-row .col-date {
    flex: 0 0 80px;
    font-size: 12px;
    color: #b5c4cd;
    text-align: center;
    white-space: nowrap;
}
.my-word__word-table .word-row .col-action {
    flex: 0 0 40px;
    text-align: center;
}
.my-word__word-table .word-row .col-action .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #b5c4cd;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
}
.my-word__word-table .word-row .col-action .btn-delete:hover {
    background: #fef0f0;
    color: #e88080;
}

@media (max-width: 600px) {
    .my-word__word-table .word-row {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 14px;
        border-bottom: 1px solid #e8edf0;
        gap: 4px 10px;
    }
    .my-word__word-table .word-row .col-word {
        flex: 0 0 auto;
        font-size: 16px;
        font-weight: 600;
    }
    .my-word__word-table .word-row .col-meaning {
        flex: 1 1 100%;
        font-size: 14px;
        color: #2d3e4f;
        padding: 2px 0 4px 0;
        order: 2;
    }
    .my-word__word-table .word-row .col-meaning .meaning-text {
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
    }
    .my-word__word-table .word-row .col-book {
        flex: 0 1 auto;
        font-size: 12px;
        color: #7a8e9e;
        text-align: left;
        order: 3;
        white-space: nowrap;
    }
    .my-word__word-table .word-row .col-date {
        flex: 0 1 auto;
        font-size: 11px;
        color: #b5c4cd;
        text-align: left;
        order: 4;
    }
    .my-word__word-table .word-row .col-action {
        flex: 0 0 auto;
        order: 1;
        margin-left: auto;
    }
    .my_word__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .my_word__toolbar .time-filter {
        justify-content: flex-start;
    }
    .my_word__toolbar .print-btn {
        justify-content: center;
    }
}