/* =========================================
   🧩 弹窗 & 其他辅助样式
   ========================================= */

/* 底部悬浮按钮区 */
.bottom-action {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 999;
    display: flex;
    justify-content: center;
}

.action-btn {
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
    font-weight: 600;
    font-size: 18px;
    height: 46px;
    border: none;
}

/* 弹窗遮罩 */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.detail-overlay.show {
    display: flex;
}

/* 弹窗卡片 */
.detail-card {
    width: 85%;
    max-width: 340px;
    max-height: 75vh;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 5px;
}

/* 弹窗头部 */
.modal-header-compact {
    padding: 25px 20px 15px 20px;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid #f5f6f7;
    flex-shrink: 0;
}

.modal-word-inline {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.modal-phonetic-inline {
    font-size: 13px;
    color: #666;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 弹窗内容滚动区 */
.modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
}

.modal-scroll-content::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 🟢 之前漏掉的部分：弹窗内部内容样式 (已补全) */
.meaning-box-compact {
    margin: 15px 0;
    text-align: center;
    color: #1989fa;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
}

.section-compact {
    margin-bottom: 15px;
    font-size: 14px;
}

.section-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 600;
}

.sentence-en {
    color: #333;
    font-style: italic;
    margin-bottom: 2px;
    line-height: 1.4;
    font-family: Georgia, serif;
}

.sentence-cn {
    color: #888;
    font-size: 12px;
}

.memory-bg {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 10px;
    border-radius: 8px;
}

.memory-text {
    color: #d48806;
    line-height: 1.5;
}

.note-wrapper {
    border-top: 1px dashed #eee;
    padding-top: 10px;
}

/* 弹窗底部 */
.modal-footer {
    padding: 15px 20px;
    background: #fff;
    border-top: 1px solid #f5f6f7;
    flex-shrink: 0;
}

.small-btn {
    height: 40px !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(25, 137, 250, 0.3) !important;
}

