/**
 * 水稻田英语 v3 · 应用壳（顶栏导航 + 响应式）
 */
:root {
    --fm-pe-bg: #FCFCFC;
    --fm-pe-surface: #ffffff;
    --fm-pe-text: #1f2937;
    --fm-pe-muted: #6b7280;
    --fm-pe-line: #e5ebe8;
    --fm-pe-brand: #177739;
    --fm-pe-brand-soft: #c7ecd4;
    --fm-pe-brand-surface: #edf7f0;
    --fm-pe-brand-light: #2d9a52;
    --fm-pe-brand-dark: #125c2d;
    --fm-pe-gold: #f5c842;
    --fm-pe-gold-deep: #d4a017;
    --fm-pe-gold-soft: #ffe9a8;
    --fm-pe-gold-shadow: rgba(212, 160, 23, 0.38);
    --fm-pe-shadow: 0 2px 16px rgba(36, 174, 95, 0.07);
    --fm-pe-shadow-lg: 0 10px 36px rgba(36, 174, 95, 0.1);
    --fm-pe-radius: 4px;
    --fm-pe-radius-lg: 4px;
    --fm-pe-radius-pill: 999px;
}

html.fm-pe-theme-dark {
    --fm-pe-bg: #141a17;
    --fm-pe-surface: #1c2420;
    --fm-pe-text: #e8eeea;
    --fm-pe-muted: #9ca8a0;
    --fm-pe-line: #2d3832;
    --fm-pe-brand-surface: #1a3324;
    --fm-pe-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* 浅色底与全站 --fm-page-bg 一致（渐变由 fm-theme.css 深色模式单独处理） */
body.fm-pe-shell-body {
    background: var(--fm-page-bg, var(--fm-pe-bg));
    background-image: none;
}

body.fm-pe-shell-body main#article_lists.content > .container {
    max-width: var(--fm-shell-max, 1200px) !important;
    padding-left: var(--fm-shell-pad, 12px) !important;
    padding-right: var(--fm-shell-pad, 12px) !important;
}

.fm-pe-app {
    min-height: 60vh;
    color: var(--fm-pe-text);
    width: 100%;
    max-width: var(--fm-shell-max, 1200px);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--fm-shell-pad, 12px);
    padding-right: var(--fm-shell-pad, 12px);
    box-sizing: border-box;
}

/* 与顶栏 nav>.container 同一版心：内层 fm-dl 不再缩进 */
.fm-pe-app > .fm-pe-dl.fm-dl,
.fm-pe-app > .fm-pe-hub-page {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

body.fm-pe-shell-body .fm-pe-panel {
    max-width: none;
    width: 100%;
}

/* 顶栏查词：结构与 .header_search form 一致，搜索/清除叠在输入框右侧 */
.header_search .fm-pe-header-lookup {
    width: 100%;
}

.header_search .fm-pe-header-lookup-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.header_search .fm-pe-header-lookup-form > .header_search_input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    padding-right: 38px;
    box-sizing: border-box;
}

.header_search .fm-pe-header-lookup-form > a.header_search_clear,
.header_search .fm-pe-header-lookup-form > button.fm-pe-header-lookup-submit {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.header_search .fm-pe-header-lookup-form > a.fm-pe-header-lookup-clear.is-hidden,
.header_search .fm-pe-header-lookup-form > button.fm-pe-header-lookup-submit.is-hidden {
    display: none !important;
}

.header_search .fm-pe-header-lookup .fm-pe-header-lookup-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1060;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    max-height: 280px;
    overflow: auto;
    overflow-anchor: none;
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

html.fm-pe-theme-dark .header_search .fm-pe-header-lookup .fm-pe-header-lookup-suggest {
    background: var(--fm-pe-surface, #1c2420);
    border-color: var(--fm-pe-line, #2d3832);
}

.header_search .fm-pe-header-lookup .fm-word-lookup-suggest__item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.header_search .fm-pe-header-lookup .fm-word-lookup-suggest__item:hover,
.header_search .fm-pe-header-lookup .fm-word-lookup-suggest__item.is-active {
    background: var(--fm-brand-surface, #edf7f0);
}

.header_search .fm-pe-header-lookup .fm-word-lookup-suggest__word {
    font-weight: 600;
    color: var(--fm-brand, #177739);
    flex-shrink: 0;
}

.header_search .fm-pe-header-lookup .fm-word-lookup-suggest__hint {
    color: var(--fm-text-soft, #6b7280);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.fm-pe-theme-dark .header_search .fm-pe-header-lookup .fm-word-lookup-suggest__item:hover,
html.fm-pe-theme-dark .header_search .fm-pe-header-lookup .fm-word-lookup-suggest__item.is-active {
    background: var(--fm-pe-brand-surface, #1a3324);
}

/* 微信登录：居中弹窗 + 灰框内嵌（扫码 / 快捷登录统一） */
/* 微信登录弹窗 → public/assets/css/fm-wx-login-layer.css */

/* 顶栏搜索：加长占位说明 */
body.fm-pe-shell-body.fm-site-shell:not(.fm-user-layout) nav.navbar .header_search {
    flex: 1 1 150px;
    min-width: 110px;
    max-width: 260px;
}

body.fm-pe-shell-body.fm-site-shell:not(.fm-user-layout) nav.navbar .header_search input,
body.fm-pe-shell-body.fm-site-shell:not(.fm-user-layout) nav.navbar .header_search .header_search_input {
    max-width: none;
}

@media (max-width: 767px) {
}

.fm-pe-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.fm-pe-theme-toggle:hover,
.fm-pe-theme-toggle:focus {
    color: var(--fm-pe-brand, #177739);
    background: rgba(36, 174, 95, 0.08);
    outline: none;
}

body.fm-pe-theme-dark .fm-pe-theme-toggle:hover,
body.fm-pe-theme-dark .fm-pe-theme-toggle:focus {
    background: rgba(199, 236, 212, 0.12);
}

/* 旧版顶部 Tab（已改为左侧栏，保留类名以免其它页引用报错） */
.fm-pe-tabs {
    display: none;
}

.fm-pe-tabs__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fm-pe-tabs__row--sub {
    margin-bottom: 0;
}

.fm-pe-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: var(--fm-pe-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--fm-pe-muted);
    text-decoration: none;
    border: 1px solid var(--fm-pe-line);
    background: var(--fm-pe-surface);
}

.fm-pe-tabs__link--sub {
    font-size: 13px;
    padding: 5px 12px;
}

.fm-pe-tabs__link:hover,
.fm-pe-tabs__link.is-active {
    color: var(--fm-pe-brand);
    border-color: var(--fm-pe-brand-soft);
    background: var(--fm-pe-brand-surface);
}

.fm-pe-tabs__badge {
    font-size: 10px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}

.fm-pe-tabs__user {
    font-size: 13px;
    color: var(--fm-pe-muted);
    padding: 5px 8px;
}

.fm-pe-app__brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.fm-pe-app__brand-mark {
    width: 40px;
    height: 40px;
    border-radius: var(--fm-pe-radius);
    background: linear-gradient(145deg, var(--fm-pe-brand-soft), var(--fm-pe-brand));
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-pe-app__brand-title {
    display: block;
    font-size: 16px;
    color: var(--fm-pe-text);
}

.fm-pe-app__brand-sub {
    display: block;
    font-size: 11px;
    color: var(--fm-pe-muted);
    font-weight: 400;
}

.fm-pe-app__nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.fm-pe-app__nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--fm-pe-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--fm-pe-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fm-pe-app__nav-link:hover {
    color: var(--fm-pe-brand);
    background: var(--fm-pe-brand-surface);
}

.fm-pe-app__nav-link.is-active {
    color: var(--fm-pe-brand);
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft);
}

.fm-pe-app__nav-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}

.fm-pe-app__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.fm-pe-app__icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    background: var(--fm-pe-surface);
    color: var(--fm-pe-muted);
    cursor: pointer;
}

.fm-pe-app__icon-btn:hover {
    color: var(--fm-pe-brand);
    border-color: var(--fm-pe-brand-soft);
}

.fm-pe-app__login,
.fm-pe-app__user {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--fm-pe-radius);
    text-decoration: none;
}

.fm-pe-app__login {
    border: 1px solid var(--fm-pe-brand);
    color: var(--fm-pe-brand);
    background: var(--fm-pe-brand-surface);
}

.fm-pe-app__user {
    color: var(--fm-pe-muted);
}

.fm-pe-app__menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    background: var(--fm-pe-surface);
    cursor: pointer;
}

.fm-pe-app__subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.fm-pe-app__subnav-link {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--fm-pe-radius);
    border: 1px solid var(--fm-pe-line);
    background: var(--fm-pe-surface);
    color: var(--fm-pe-muted);
    text-decoration: none;
}

.fm-pe-app__subnav-link.is-active {
    color: var(--fm-pe-brand);
    border-color: var(--fm-pe-brand-soft);
    background: var(--fm-pe-brand-surface);
}

.fm-pe-app__main {
    margin-bottom: 20px;
}

.fm-pe-app__footer {
    text-align: center;
    font-size: 12px;
    color: var(--fm-pe-muted);
    padding: 16px 8px 24px;
}

/* 入口：功能方块 */
.fm-pe-wordbook-login-gate {
    max-width: 520px;
    padding: 8px 4px 16px;
}

.fm-pe-wordbook-login-gate__text {
    margin: 12px 0 8px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fm-pe-text, #374151);
}

.fm-pe-wordbook-login-gate__hint {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--fm-pe-muted, #6b7280);
}

.fm-pe-wordbook-login-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fm-pe-hub-page {
    width: 100%;
}

.fm-pe-hub-page .fm-pe-panel-card--hub {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    box-shadow: var(--fm-pe-shadow);
    background: var(--fm-pe-surface);
    padding: 24px 24px 24px 24px;
}

/* 功能页：左栏 + 主区（间距 15px 与 fm-dl 一致；列宽沿用 fm-download-list.css） */
.fm-pe-dl.fm-dl {
    gap: 15px;
}

.fm-pe-dl .fm-dl__main {
    min-width: 0;
    width: 100%;
}

/* 有右侧栏：中间 + 右侧词书（flex 顶对齐，避免 grid+sticky 错位） */
.fm-pe-tool-grid.fm-tools__grid--cate-focus:not(.fm-pe-tool-grid--single) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    width: 100%;
    grid-template-columns: none;
}

.fm-pe-tool-grid:not(.fm-pe-tool-grid--single) > .fm-tools__panel.fm-pe-panel-card {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 16px;
    position: static;
    top: auto;
    order: 0;
}

.fm-pe-tool-grid:not(.fm-pe-tool-grid--single) > .fm-pe-tool-catalog.fm-pe-panel-card {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    margin: -3px 0 0;
    padding: 0;
    overflow: visible;
    position: static;
    top: auto;
    order: 0;
    align-self: flex-start;
    min-height: 0;
    height: max-content;
    background: transparent;
    border: none;
    box-shadow: none;
}

.fm-pe-tool-catalog.fm-pe-panel-card .fm-wordstudy-catalog {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* 右侧内层：背单词 / ECDICT 各为独立白卡片，中间 15px 间距 */
.fm-pe-tool-catalog.fm-pe-panel-card .fm-wordstudy-catalog > .fm-tools__category {
    margin: 0;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    box-shadow: var(--fm-pe-shadow);
    background: var(--fm-pe-surface);
    overflow: hidden;
}

.fm-pe-tool-catalog.fm-pe-panel-card .fm-wordstudy-catalog-ecdict {
    margin-top: 0;
    padding: 12px 16px 16px;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    background: var(--fm-pe-surface);
    box-shadow: var(--fm-pe-shadow);
    box-sizing: border-box;
}

.fm-pe-tool-catalog--lookup-history.fm-pe-panel-card {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
}

.fm-pe-tool-catalog--lookup-history .fm-word-lookup-history {
    background: var(--fm-pe-surface);
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    box-shadow: var(--fm-pe-shadow);
    padding: 15px 14px 14px;
    max-height: min(72vh, 640px);
    display: flex;
    flex-direction: column;
    min-height: 120px;
}

.fm-word-lookup-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.fm-word-lookup-history__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--fm-pe-text, #1a2e24);
}

.fm-word-lookup-history__clear {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.4;
}

.fm-word-lookup-history__hint {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--fm-pe-muted, #6b7c72);
}

.fm-word-lookup-history__empty {
    margin: 0;
    font-size: 13px;
    color: var(--fm-pe-muted, #6b7c72);
}

.fm-word-lookup-history__list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.fm-word-lookup-history__item {
    margin: 0 0 4px;
}

.fm-word-lookup-history__btn {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--fm-pe-bg-soft, #f4f8f6);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.fm-word-lookup-history__btn:hover,
.fm-word-lookup-history__btn:focus {
    background: #e8f4ee;
    border-color: var(--fm-pe-line, #d8e6de);
    outline: none;
}

.fm-word-lookup-history__word {
    display: inline;
    font-size: 14px;
    font-weight: 500;
    color: var(--fm-pe-text, #1a2e24);
    word-break: break-word;
}

.fm-word-lookup-history__sub {
    display: inline;
    margin-left: 6px;
    font-size: 12px;
    color: var(--fm-pe-muted, #6b7c72);
}

.fm-word-lookup-history__time {
    display: inline;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 11px;
    color: var(--fm-pe-muted, #8a9a90);
    white-space: nowrap;
}

html.fm-pe-theme-dark .fm-word-lookup-history__btn {
    background: var(--fm-pe-bg-soft, #243029);
}

html.fm-pe-theme-dark .fm-word-lookup-history__btn:hover,
html.fm-pe-theme-dark .fm-word-lookup-history__btn:focus {
    background: #2d3d34;
}

/* 无右侧栏（如每日一句）：主内容铺满至版心右缘 */
.fm-pe-tool-grid--single.fm-tools__grid--cate-focus {
    grid-template-columns: minmax(0, 1fr);
}

.fm-pe-tool-grid--single .fm-pe-tool-catalog {
    display: none;
}

.fm-pe-tool-grid--single .fm-tools__panel,
.fm-pe-tool-grid--single .fm-pe-panel-card {
    width: 100%;
    max-width: none;
}

.fm-pe-tool-catalog.fm-tools__catalog {
    min-width: 0;
}

.fm-pe-panel-card.fm-tools__panel {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 每日一句等内容区拉满中间列 */
.fm-pe-tool-grid--single .fm-tools-daily-panel,
.fm-pe-tool-grid--single .fm-daily-sentence-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.fm-pe-panel-card {
    background: var(--fm-pe-surface);
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    box-shadow: var(--fm-pe-shadow);
    padding: 16px;
    min-height: 120px;
}

.fm-pe-tool-catalog.fm-pe-panel-card {
    min-height: 0;
}

/* 首页 hub：整体居中 */
.fm-pe-hub {
    text-align: center;
}

.fm-pe-hub__hero {
    margin-bottom: 24px;
}

.fm-pe-hub__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
}

.fm-pe-hub__lead {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: var(--fm-pe-muted);
    max-width: 520px;
}

.fm-pe-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0 0 24px;
    text-align: left;
}

.fm-pe-hub__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    background: var(--fm-pe-surface);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--fm-pe-shadow);
    transition: border-color 0.15s, transform 0.15s;
}

.fm-pe-hub__card:hover {
    border-color: var(--fm-pe-brand-soft);
    transform: translateY(-2px);
}

.fm-pe-hub__card-icon {
    font-size: 22px;
    color: var(--fm-pe-brand);
}

.fm-pe-hub__card-title {
    font-size: 16px;
    font-weight: 600;
}

.fm-pe-hub__card-desc {
    font-size: 12px;
    color: var(--fm-pe-muted);
    line-height: 1.45;
}

.fm-pe-hub__card-badge {
    align-self: flex-start;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fef3c7;
    color: #92400e;
}

.fm-pe-hub__tips {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--fm-pe-muted);
    line-height: 1.7;
    max-width: 480px;
}

.fm-pe-hub__tips li + li {
    margin-top: 6px;
}

@media (max-width: 768px) {
    .fm-pe-hub__grid {
        grid-template-columns: 1fr;
    }

    .fm-pe-panel-card--hub {
        padding: 20px 16px 28px;
    }
}

.fm-pe-placeholder {
    text-align: center;
    padding: 48px 20px;
    background: var(--fm-pe-surface);
    border: 1px dashed var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
}

.fm-pe-placeholder__icon {
    font-size: 40px;
    color: var(--fm-pe-brand);
    margin-bottom: 12px;
}

.fm-pe-placeholder__title {
    margin: 0 0 10px;
    font-size: 20px;
}

.fm-pe-placeholder__text {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--fm-pe-muted);
    line-height: 1.55;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.fm-pe-placeholder__text a {
    color: var(--fm-pe-brand);
}

/* 每日练习页（与 fm-pe-panel / hub 卡片风格统一） */
.fm-daily-practice {
    max-width: 100%;
    overflow: hidden;
}

.fm-daily-practice--hub {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fm-daily-practice--hub > .fm-daily-practice-finished {
    width: 100%;
}

.fm-daily-practice--hub > .fm-daily-practice-finished .fm-daily-practice-finished__main {
    max-width: 360px;
    margin: 0 auto;
    padding: 4px 0 8px;
}

.fm-daily-practice__head {
    margin-bottom: 0;
}

.fm-daily-practice__plan-meta {
    margin: -8px 0 0;
}

.fm-daily-practice__plan-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--fm-pe-radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--fm-pe-muted);
    background: var(--fm-pe-bg);
    border: 1px solid var(--fm-pe-line);
    text-decoration: none;
    white-space: nowrap;
}

.fm-daily-practice__plan-link:hover,
.fm-daily-practice__plan-link:focus {
    color: var(--fm-pe-brand);
    border-color: var(--fm-pe-brand-soft);
    background: var(--fm-pe-brand-surface);
    text-decoration: none;
}

.fm-daily-practice__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--fm-space-6, 24px);
    margin: var(--fm-space-2, 8px) 0 var(--fm-space-4, 16px);
}

.fm-daily-practice__ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.fm-daily-practice__ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fm-daily-practice__ring-track,
.fm-daily-practice__ring-progress {
    fill: none;
    stroke-width: 8;
}

.fm-daily-practice__ring-track {
    stroke: var(--fm-pe-line);
}

.fm-daily-practice__ring-progress {
    stroke: var(--fm-pe-brand);
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: calc(326.73 - (326.73 * var(--fm-dp-ring-pct, 0) / 100));
    transition: stroke-dashoffset 0.35s ease;
}

.fm-daily-practice__ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
}

.fm-daily-practice__ring-label {
    font-size: 13px;
    color: var(--fm-pe-muted);
}

.fm-daily-practice__ring-num {
    margin-top: 2px;
    font-size: 36px;
    font-weight: 700;
    color: var(--fm-pe-text);
    line-height: 1.1;
}

.fm-daily-practice__ring-tip {
    position: absolute;
    left: -4px;
    bottom: 16px;
    padding: 3px 8px;
    border-radius: var(--fm-pe-radius);
    font-size: 12px;
    color: var(--fm-pe-brand);
    background: var(--fm-pe-brand-surface);
    border: 1px solid var(--fm-pe-brand-soft);
    white-space: nowrap;
}

.fm-daily-practice__cta {
    width: min(100%, 260px);
    display: flex;
    flex-direction: column;
    gap: var(--fm-space-4, 16px);
}

.fm-daily-practice__cta .fm-tool-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: var(--fm-radius, var(--fm-pe-radius, 4px));
}

.fm-daily-practice__start {
    display: block;
}

/* 每日练习右侧统计栏：与背单词词书栏同宽、卡片间距对齐 --fm-space-4 */
.fm-pe-tool-catalog--daily-stats.fm-pe-panel-card {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: auto;
    min-height: 0;
}

.fm-daily-practice-aside {
    display: flex;
    flex-direction: column;
    gap: var(--fm-space-4, 16px);
    flex: 1;
    min-height: 100%;
}

.fm-daily-practice-aside .fm-daily-practice-stats {
    flex: 0 0 auto;
}

.fm-daily-practice-aside .fm-daily-practice__wordbook {
    margin-top: auto;
}

.fm-daily-practice-stats {
    display: flex;
    flex-direction: column;
    gap: var(--fm-space-4, 16px);
}

.fm-daily-practice-stats__card {
    padding: var(--fm-space-4, 16px);
    border: 1px solid var(--fm-pe-line);
    border-radius: var(--fm-pe-radius);
    background: var(--fm-pe-surface);
    box-shadow: var(--fm-pe-shadow);
    text-align: center;
}

.fm-daily-practice-stats__num {
    font-size: 24px;
    font-weight: 700;
    color: var(--fm-pe-brand);
    line-height: 1.2;
}

.fm-daily-practice-stats__lbl {
    margin-top: 4px;
    font-size: 12px;
    color: var(--fm-pe-muted);
}

.fm-daily-practice-stats__note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: var(--fm-pe-muted);
}

.fm-daily-practice-stats__note--ok {
    color: var(--fm-pe-brand);
}

.fm-daily-practice__wordbook {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--fm-space-3, 12px);
    width: 100%;
    box-sizing: border-box;
    padding: var(--fm-space-4, 16px);
}

/* 每日练习页：内容区高度随内容，不留大块空白 */
.fm-pe-panel-card:has(> .fm-daily-practice--hub) {
    min-height: 0;
}

.fm-daily-practice__wordbook:hover {
    transform: none;
}

.fm-daily-practice__wordbook-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.fm-daily-practice__wordbook-more {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--fm-pe-muted);
    white-space: nowrap;
}

.fm-daily-practice-page .fm-daily-practice-study.is-hidden {
    display: none;
}

.fm-daily-practice__intro.is-hidden,
.fm-daily-practice-page--finished .fm-daily-practice__intro {
    display: none !important;
}

.fm-daily-practice-page--studying .fm-daily-practice__intro.is-hidden {
    display: none;
}

.fm-daily-practice-study .fm-wordstudy-panel > .fm-pe-panel__head {
    display: none;
}

.fm-daily-practice-study .fm-wordstudy-panel {
    margin-top: 0;
}

.fm-daily-practice-study .fm-tools-daily-panel {
    max-width: none;
}

/* 每日练习：点击「不认识」后仅保留「下一个」 */
.fm-daily-practice-study .fm-wordstudy-nav--daily-review #fm-wordstudy-prev,
.fm-daily-practice-study .fm-wordstudy-nav--daily-review #fm-wordstudy-known,
.fm-daily-practice-study .fm-wordstudy-nav--daily-review #fm-wordstudy-unknown,
.fm-daily-practice-study .fm-wordstudy-nav--daily-review .fm-pe-actions-reveal-col,
.fm-daily-practice-study .fm-wordstudy-nav--daily-review .fm-wordstudy-btn-too-easy {
    display: none !important;
}

.fm-daily-practice-study .fm-wordstudy-nav--daily-review {
    justify-content: center;
    margin-top: 12px;
}

.fm-daily-practice-study .fm-wordstudy-nav--daily-review #fm-wordstudy-next {
    min-width: 160px;
}

.fm-daily-practice-study .fm-wordstudy-cardbox--daily-review .fm-pe-dict-tabs {
    pointer-events: none;
    opacity: 0.72;
}

.fm-daily-practice__ring-tip.is-hidden {
    display: none !important;
}

/* 每日练习 · 学完：弹窗恭喜 + 页面圆环 */
.fm-daily-practice-page {
    position: relative;
}

/* 学完后的每日练习页（圆环 · 再学一组） */
.fm-daily-practice-finished.is-hidden {
    display: none !important;
}

.fm-daily-practice-finished__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 8px 0 16px;
    max-width: 360px;
    margin: 0 auto;
}

.fm-daily-practice-finished__ring-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    --fm-dp-ring-r: 82;
    --fm-dp-ring-view: 200;
}

.fm-daily-practice-finished__ring-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fm-daily-practice-finished__ring-track {
    fill: none;
    stroke: var(--fm-pe-brand-soft);
    stroke-width: 14;
}

.fm-daily-practice-finished__ring-progress {
    fill: none;
    stroke: url(#fm-dp-finished-ring-grad);
    stroke-width: 14;
    stroke-linecap: round;
    transform: rotate(128deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.5s ease;
}

.fm-daily-practice-finished__ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-top: 4px;
}

.fm-daily-practice-finished__ring-label {
    font-size: 14px;
    color: var(--fm-pe-muted);
}

.fm-daily-practice-finished__ring-num {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    color: var(--fm-pe-brand);
    letter-spacing: -0.03em;
}

.fm-daily-practice-finished__badge {
    position: absolute;
    /* 圆环 cx=100 r=82 → 最右点 91%（3 点钟方向） */
    left: calc(50% + var(--fm-dp-ring-r) / var(--fm-dp-ring-view) * 100%);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--fm-pe-gold-soft) 0%, var(--fm-pe-gold) 45%, var(--fm-pe-gold-deep) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px var(--fm-pe-gold-shadow);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.fm-daily-practice-finished__badge .fa {
    color: #fff;
}

.fm-daily-practice-finished__glow {
    position: absolute;
    left: calc(50% + var(--fm-dp-ring-r) / var(--fm-dp-ring-view) * 100%);
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(245, 200, 66, 0.55);
    box-shadow: 0 0 14px 5px rgba(245, 200, 66, 0.42);
    pointer-events: none;
    z-index: 1;
}

.fm-daily-practice-finished__actions {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
    max-width: 320px;
}

.fm-daily-practice-finished__btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
}

.fm-daily-practice-finished__btn--ghost {
    background: #fff;
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}

.fm-daily-practice-finished__btn--ghost:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft);
    color: var(--fm-pe-brand);
}

.fm-daily-practice-finished__btn--primary {
    background: linear-gradient(180deg, var(--fm-pe-brand-light) 0%, var(--fm-pe-brand) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(36, 174, 95, 0.28);
}

.fm-daily-practice-finished__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(36, 174, 95, 0.36);
}

/* 学完弹窗 · 恭喜（WELL DONE）— fixed 全屏居中，避免在内容区内错位/裁切 */
.fm-daily-practice-congrats-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.fm-daily-practice-congrats-modal.is-hidden {
    display: none !important;
}

.fm-daily-practice-congrats-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.fm-daily-practice-congrats-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 340px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.fm-daily-practice-congrats-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.fm-daily-practice-congrats-modal__close:hover {
    background: rgba(255, 255, 255, 0.32);
}

.fm-daily-practice-congrats-modal__hero {
    padding: 28px 22px 26px;
    text-align: center;
    color: #fff;
    background: var(--fm-pe-brand);
}

.fm-daily-practice-congrats-modal__foot {
    padding: 22px 24px 26px;
    text-align: center;
    background: #fff;
}

.fm-daily-practice-congrats-modal__medal-wrap {
    position: relative;
    width: 168px;
    height: 172px;
    margin: 0 auto;
    padding-bottom: 26px;
}

/* 勋章后方放射光晕 */
.fm-daily-practice-congrats-modal__medal-wrap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from -8deg,
        rgba(255, 255, 255, 0.14) 0deg 10deg,
        rgba(255, 255, 255, 0.04) 10deg 20deg
    );
    pointer-events: none;
    z-index: 0;
}

.fm-daily-practice-congrats-modal__medal-hanger {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(180deg, #fff6dc 0%, #f5d76e 42%, #e8c04a 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    z-index: 3;
}

.fm-daily-practice-congrats-modal__ribbon {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 34px;
    border-radius: 2px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0,
        #fff 7px,
        var(--fm-pe-brand-soft) 7px,
        var(--fm-pe-brand-soft) 14px
    );
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.fm-daily-practice-congrats-modal__medal {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, #ffe566 0%, #ffd024 26%, var(--fm-pe-gold) 52%, var(--fm-pe-gold-deep) 82%, #c9920f 100%);
    border: 4px solid #e8c04a;
    box-shadow:
        0 10px 26px var(--fm-pe-gold-shadow),
        inset 0 3px 12px rgba(255, 255, 255, 0.55),
        inset 0 -5px 14px rgba(180, 130, 10, 0.38);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 1px 3px rgba(120, 80, 0, 0.35);
    z-index: 1;
}

.fm-daily-practice-congrats-modal__medal::before {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    box-shadow: inset 0 0 10px rgba(212, 160, 23, 0.22);
    pointer-events: none;
}

.fm-daily-practice-congrats-modal__medal-num {
    position: relative;
    z-index: 1;
    font-size: 34px;
    font-weight: 800;
}

.fm-daily-practice-congrats-modal__medal-label {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.fm-daily-practice-congrats-modal__en {
    margin: 30px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: #fff;
}

.fm-daily-practice-congrats-modal__zh {
    margin: 10px 0 0;
    font-size: 26px;
    font-weight: 500;
    opacity: 0.96;
    color: #fff;
}

.fm-daily-practice-congrats-modal__review {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, var(--fm-pe-brand-light) 0%, var(--fm-pe-brand) 100%);
    box-shadow: 0 4px 14px rgba(36, 174, 95, 0.28);
}

.fm-daily-practice-congrats-modal__review:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(36, 174, 95, 0.36);
}

.fm-daily-practice-congrats-modal__hint {
    margin: 14px 0 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
}

.fm-daily-practice-congrats-modal__hint strong {
    color: var(--fm-pe-brand);
    font-size: 16px;
    font-weight: 800;
}

@media (max-width: 767px) {
    .fm-daily-practice-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fm-daily-practice-stats__card {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 92px;
    }

    .fm-daily-practice__ring {
        width: 148px;
        height: 148px;
    }

    .fm-daily-practice__ring-num {
        font-size: 32px;
    }

    .fm-daily-practice__cta {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 991px) {
    .fm-pe-app .fm-pe-tool-grid.fm-tools__grid--cate-focus:not(.fm-pe-tool-grid--single) {
        flex-direction: column;
        align-items: stretch;
    }

    .fm-pe-app .fm-pe-tool-grid:not(.fm-pe-tool-grid--single) > .fm-tools__panel.fm-pe-panel-card,
    .fm-pe-app .fm-pe-tool-grid:not(.fm-pe-tool-grid--single) > .fm-pe-tool-catalog.fm-pe-panel-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .fm-pe-app .fm-pe-tool-grid:not(.fm-pe-tool-grid--single) > .fm-pe-tool-catalog.fm-pe-panel-card {
        order: -1;
        margin-top: 0;
    }

    .fm-pe-tool-catalog--lookup-history.fm-pe-panel-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .fm-pe-app__nav {
        display: none;
    }

    .fm-pe-app__menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fm-pe-app__mobile-drawer:not(.is-hidden) {
        display: block;
        margin-bottom: 12px;
        padding: 12px;
        background: var(--fm-pe-surface);
        border: 1px solid var(--fm-pe-line);
        border-radius: var(--fm-pe-radius);
    }

    .fm-pe-app__mobile-drawer.is-hidden {
        display: none;
    }

    .fm-pe-app__mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .fm-pe-app__mobile-link {
        padding: 10px 12px;
        border-radius: var(--fm-pe-radius);
        text-decoration: none;
        color: var(--fm-pe-text);
        font-size: 15px;
    }

    .fm-pe-app__mobile-link.is-active {
        background: var(--fm-pe-brand-surface);
        color: var(--fm-pe-brand);
    }
}

/* 水稻田英语区内：查词 Tab、按钮、输入框等与卡片统一 4px 圆角 */
.fm-pe-app .fm-word-lookup-dict-tab,
.fm-pe-app .fm-tool-btn,
.fm-pe-app .fm-tool-btn--primary,
.fm-pe-app input.form-control,
.fm-pe-app textarea.form-control,
.fm-pe-app select.form-control,
.fm-pe-app .fm-wordstudy-catalog-book,
.fm-pe-app .fm-tools__card {
    border-radius: var(--fm-pe-radius);
}

body.fm-pe-shell-body .fm-paddyenglish-layout .fm-word-lookup-dict-tab,
body.fm-pe-shell-body .fm-paddyenglish-layout .fm-tool-btn,
body.fm-pe-shell-body .fm-paddyenglish-layout input.form-control,
body.fm-pe-shell-body .fm-paddyenglish-layout textarea.form-control,
body.fm-pe-shell-body .fm-paddyenglish-layout select.form-control {
    border-radius: var(--fm-pe-radius);
}

/* 深色护眼：右侧词书 / 中间卡片跟随变量，避免白底块 */
html.fm-pe-theme-dark .fm-pe-app .fm-tools__panel.fm-pe-panel-card,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-tool-catalog .fm-wordstudy-catalog,
html.fm-pe-theme-dark .fm-pe-app .fm-tools__category,
html.fm-pe-theme-dark .fm-pe-app .fm-tools__hero {
    background: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    color: var(--fm-pe-text);
    box-shadow: var(--fm-pe-shadow);
}

html.fm-pe-theme-dark .fm-pe-app .fm-tools__category-head {
    border-bottom-color: var(--fm-pe-line);
}

html.fm-pe-theme-dark .fm-pe-app .fm-tools__category-title {
    color: var(--fm-pe-text);
}

html.fm-pe-theme-dark .fm-pe-app .fm-tools__category-count,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-group-title {
    color: var(--fm-pe-muted);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-book {
    background: var(--fm-pe-bg);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-book:hover {
    border-color: var(--fm-pe-brand-soft);
    color: var(--fm-pe-brand);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-book.is-active {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand);
    color: var(--fm-pe-text);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-ecdict {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line) !important;
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-ecdict__head {
    color: var(--fm-pe-text);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-ecdict__input {
    background: var(--fm-pe-bg);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}

/* ============================================================
   水稻田英语 · 全站视觉美化（与每日练习弹窗/圆环风格统一）
   ============================================================ */

.fm-pe-app .fm-dl__side {
    border-radius: var(--fm-pe-radius-lg);
    background: var(--fm-pe-surface);
    border: 1px solid var(--fm-pe-line);
    box-shadow: var(--fm-pe-shadow);
    overflow: hidden;
    align-self: flex-start;
}

.fm-pe-app .fm-dl__side .left_menu {
    padding: 10px 8px;
    max-height: calc(100vh - 96px);
}

.fm-pe-app .fm-dl__side .menu_list {
    border-radius: 4px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: background 0.15s ease;
}

.fm-pe-app .fm-dl__side .menu_list.left_menu_om {
    background-color: #c7ecd4;
    box-shadow: none;
}

.fm-pe-app .fm-dl__side .menu_list.left_menu_om > a,
.fm-pe-app .fm-dl__side .menu_list.left_menu_om > a:link,
.fm-pe-app .fm-dl__side .menu_list.left_menu_om > a:visited {
    color: #177739;
    font-weight: 600;
}

.fm-pe-app .fm-dl__side .menu_list.left_menu_om:hover {
    background-color: var(--fm-pe-brand-soft, #c7ecd4);
}

.fm-pe-app .fm-pe-panel-card {
    border-radius: var(--fm-pe-radius-lg);
    box-shadow: var(--fm-pe-shadow);
    border-color: rgba(36, 174, 95, 0.1);
}

.fm-pe-app .fm-tools__panel.fm-pe-panel-card {
    padding: 20px;
}

.fm-pe-app .fm-pe-panel__head .fm-pe-panel__title {
    padding-left: 0;
    border-left: none;
    line-height: 1.3;
}

.fm-pe-app .fm-pe-panel__meta {
    color: var(--fm-pe-muted);
}

.fm-pe-hub-page .fm-pe-panel-card--hub {
    border-radius: var(--fm-pe-radius-lg);
    padding: 28px 28px 32px;
    background: var(--fm-card-title-bg, var(--fm-pe-surface));
    border-color: rgba(36, 174, 95, 0.12);
    box-shadow: var(--fm-pe-shadow-lg);
}

.fm-pe-hub__hero {
    margin-bottom: 28px;
    padding: 8px 0 4px;
}

.fm-pe-hub__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fm-pe-brand-light);
}

.fm-pe-hub__title {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fm-pe-brand-dark);
}

.fm-pe-hub__card {
    position: relative;
    gap: 8px;
    padding: 18px 16px 16px;
    border-radius: var(--fm-pe-radius-lg);
    border-color: rgba(36, 174, 95, 0.1);
    overflow: hidden;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.fm-pe-hub__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fm-pe-brand-light), var(--fm-pe-brand));
    opacity: 0;
    transition: opacity 0.18s ease;
}

.fm-pe-hub__card:hover {
    border-color: var(--fm-pe-brand-soft);
    box-shadow: var(--fm-pe-shadow-lg);
    transform: translateY(-3px);
}

.fm-pe-hub__card:hover::before {
    opacity: 1;
}

.fm-pe-hub__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    font-size: 20px;
    color: var(--fm-pe-brand);
    background: linear-gradient(145deg, var(--fm-pe-brand-surface), rgba(199, 236, 212, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.fm-pe-hub__card--muted .fm-pe-hub__card-icon {
    color: var(--fm-pe-muted);
    background: var(--fm-pe-bg);
}

.fm-pe-hub__card-badge {
    border-radius: var(--fm-pe-radius-pill);
    background: linear-gradient(135deg, var(--fm-pe-gold-soft), var(--fm-pe-gold));
    color: #7a5a00;
    font-weight: 700;
}

.fm-pe-app .fm-tool-btn--primary {
    background: linear-gradient(180deg, var(--fm-pe-brand-light) 0%, var(--fm-pe-brand) 100%);
    border-color: var(--fm-pe-brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(36, 174, 95, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.fm-pe-app .fm-tool-btn--primary:hover,
.fm-pe-app .fm-tool-btn--primary:focus {
    background: linear-gradient(180deg, #34a85c 0%, var(--fm-pe-brand-dark) 100%);
    border-color: var(--fm-pe-brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(36, 174, 95, 0.3);
}

.fm-pe-app .fm-tool-btn--ghost {
    background: var(--fm-accent-surface, #fffbea);
    border-color: var(--fm-accent, #F5D13A);
    color: #7a5800;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fm-pe-app .fm-tool-btn--ghost:hover {
    background: var(--fm-accent, #F5D13A);
    border-color: var(--fm-accent-hover, #d4b030);
    color: #5c4200;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 209, 58, 0.28);
}

.fm-daily-practice__intro,
.fm-daily-practice-finished__main {
    position: relative;
    margin-top: 8px;
    padding: 28px 20px 24px;
    border-radius: var(--fm-pe-radius-lg);
    background: transparent;
    border: none;
    overflow: visible;
}

.fm-daily-practice__main,
.fm-daily-practice-finished__main > * {
    position: relative;
}

.fm-daily-practice__ring {
    width: 168px;
    height: 168px;
    filter: drop-shadow(0 6px 16px rgba(36, 174, 95, 0.12));
}

.fm-daily-practice__ring-track {
    stroke: rgba(199, 236, 212, 0.85);
    stroke-width: 9;
}

.fm-daily-practice__ring-progress {
    stroke-width: 9;
}

.fm-daily-practice__ring-num {
    color: var(--fm-pe-brand);
    font-weight: 800;
}

.fm-daily-practice-stats__card {
    position: relative;
    padding: var(--fm-space-4, 16px);
    border-radius: var(--fm-pe-radius-lg);
    border-color: rgba(36, 174, 95, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fm-daily-practice-stats__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fm-pe-shadow-lg);
}

.fm-daily-practice-stats__num {
    font-size: 26px;
    font-weight: 800;
}

.fm-daily-practice__wordbook {
    padding: var(--fm-space-4, 16px);
    border-radius: var(--fm-pe-radius-lg);
    border-color: rgba(36, 174, 95, 0.12);
    background: linear-gradient(135deg, var(--fm-pe-surface) 0%, var(--fm-pe-brand-surface) 100%);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fm-daily-practice__wordbook:hover {
    border-color: var(--fm-pe-brand-soft);
    box-shadow: var(--fm-pe-shadow-lg);
    transform: translateY(-2px);
}

.fm-daily-practice__wordbook-more {
    color: var(--fm-pe-brand);
    font-weight: 600;
}

.fm-pe-app .fm-wordstudy-cardbox.fm-pe-cardbox,
.fm-pe-app .fm-pe-panel .fm-wordstudy-cardbox {
    border-color: rgba(36, 174, 95, 0.12) !important;
    border-radius: var(--fm-pe-radius-lg) !important;
    box-shadow: 0 4px 22px rgba(36, 174, 95, 0.06) !important;
    background: #fff !important;
}

/* ── 强化记忆：模式卡片 + 练习舞台（对齐每日练习视觉） ── */
.fm-pe-app .fm-wordstudy-practice {
    margin-top: 28px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.fm-pe-app .fm-wordstudy-practice-head {
    text-align: center;
    margin-bottom: 18px;
}

.fm-pe-app .fm-wordstudy-practice-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fm-pe-brand-dark);
}

.fm-pe-app .fm-wordstudy-practice-lead,
.fm-pe-app .fm-wordstudy-practice-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--fm-pe-muted);
}

.fm-pe-app .fm-wordstudy-practice-desc strong {
    color: var(--fm-pe-brand);
    font-weight: 600;
}

.fm-pe-app .fm-wordstudy-practice-modes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.fm-pe-app .fm-wordstudy-practice-modes--advanced {
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .fm-pe-app .fm-wordstudy-practice-modes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .fm-pe-app .fm-wordstudy-practice-modes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.fm-pe-app .fm-wordstudy-practice-mode {
    appearance: none;
    font: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 12px;
    border: 1px solid rgba(36, 174, 95, 0.12);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(36, 174, 95, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fm-pe-app .fm-wordstudy-practice-mode__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    font-size: 18px;
    color: var(--fm-pe-brand);
    background: linear-gradient(145deg, var(--fm-pe-brand-surface), rgba(199, 236, 212, 0.55));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: color 0.18s ease, background 0.18s ease;
}

.fm-pe-app .fm-wordstudy-practice-mode__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--fm-pe-text, #374151);
    line-height: 1.25;
    text-align: center;
}

.fm-pe-app .fm-wordstudy-practice-mode:hover {
    border-color: var(--fm-pe-brand-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(36, 174, 95, 0.1);
}

.fm-pe-app #fm-wordstudy-practice [data-practice-mode].is-active {
    border-color: var(--fm-pe-brand);
    background: linear-gradient(180deg, var(--fm-pe-brand-surface) 0%, #fff 100%);
    box-shadow: 0 6px 20px rgba(36, 174, 95, 0.14);
    transform: translateY(-2px);
    color: inherit;
    font-weight: inherit;
}

.fm-pe-app #fm-wordstudy-practice [data-practice-mode].is-active:hover {
    background: linear-gradient(180deg, var(--fm-pe-brand-surface) 0%, #fff 100%);
    border-color: var(--fm-pe-brand);
    color: inherit;
}

.fm-pe-app #fm-wordstudy-practice [data-practice-mode].is-active .fm-wordstudy-practice-mode__icon {
    color: #fff;
    background: linear-gradient(145deg, var(--fm-pe-brand-light), var(--fm-pe-brand));
}

.fm-pe-app #fm-wordstudy-practice [data-practice-mode].is-active .fm-wordstudy-practice-mode__name {
    color: var(--fm-pe-brand-dark);
    font-weight: 700;
}

.fm-pe-app .fm-wordstudy-practice-subhd {
    text-align: center;
    margin: 22px 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fm-pe-brand-light);
}

.fm-pe-app .fm-wordstudy-practice-active-bar {
    margin-bottom: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--fm-pe-brand-soft);
    box-shadow: 0 2px 10px rgba(36, 174, 95, 0.06);
}

.fm-pe-app .fm-wordstudy-practice-active-label {
    color: var(--fm-pe-brand-dark);
}

.fm-pe-app .fm-wordstudy-practice-panel {
    position: relative;
    min-height: 140px;
    padding: 24px 20px;
    border-radius: var(--fm-pe-radius-lg);
    border: 1px solid var(--fm-pe-brand-soft);
    background: #fff;
    box-shadow: 0 2px 12px rgba(36, 174, 95, 0.06);
}

.fm-pe-app .fm-wordstudy-practice-hint,
.fm-pe-app .fm-wordstudy-practice-msg {
    color: var(--fm-pe-muted);
}

.fm-pe-app .fm-wordstudy-practice-clue {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--fm-pe-brand-soft);
    border-left: 1px solid var(--fm-pe-brand-soft);
    font-size: 14px;
}

.fm-pe-app .fm-wordstudy-practice-tile {
    border-radius: 4px;
    border-color: rgba(36, 174, 95, 0.15);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(36, 174, 95, 0.05);
}

.fm-pe-app .fm-wordstudy-practice-tile:hover:not(:disabled):not(.is-picked) {
    border-color: var(--fm-pe-brand-soft);
    background: var(--fm-pe-brand-surface);
}

.fm-pe-app .fm-wordstudy-practice-tile.is-picked {
    border-color: var(--fm-pe-brand);
    background: linear-gradient(180deg, var(--fm-pe-brand-surface), #fff);
    box-shadow: 0 4px 14px rgba(36, 174, 95, 0.12);
    color: var(--fm-pe-brand-dark);
}

.fm-pe-app .fm-wordstudy-practice-quiz-btn {
    border-radius: 4px;
    border: 1px solid rgba(36, 174, 95, 0.12);
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 16px;
    min-height: 52px;
    box-shadow: 0 2px 8px rgba(36, 174, 95, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.fm-pe-app .fm-wordstudy-practice-quiz-btn:hover:not(:disabled) {
    border-color: var(--fm-pe-brand-soft);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(36, 174, 95, 0.1);
}

.fm-pe-app .fm-wordstudy-practice-quiz-btn.is-correct {
    border-color: var(--fm-pe-brand);
    background: linear-gradient(180deg, var(--fm-pe-brand-surface), #fff);
    color: var(--fm-pe-brand-dark);
}

.fm-pe-app .fm-wordstudy-practice-think {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px dashed var(--fm-pe-brand-soft);
}

.fm-pe-app .fm-wordstudy-practice-timed-head {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.75);
}

.fm-pe-app .fm-wordstudy-practice-timer {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--fm-pe-brand-soft);
}

.fm-pe-app .fm-wordstudy-practice-timer-bar {
    background: linear-gradient(90deg, var(--fm-pe-brand), var(--fm-pe-brand-light), #f5c842);
}

.fm-pe-app .fm-wordstudy-practice-wrong-head {
    border-radius: 4px;
    border-color: rgba(245, 200, 66, 0.45);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.95), rgba(255, 255, 255, 0.85));
}

.fm-pe-app .fm-wordstudy-practice-panel .fm-tool-btn:not(.fm-tool-btn--ghost) {
    background: linear-gradient(180deg, var(--fm-pe-brand-light), var(--fm-pe-brand));
    border-color: var(--fm-pe-brand);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(36, 174, 95, 0.2);
}

.fm-pe-app .fm-wordstudy-practice-panel .fm-tool-btn:not(.fm-tool-btn--ghost):hover {
    filter: brightness(1.05);
}

.fm-pe-app .fm-wordstudy-practice-input,
.fm-pe-app .fm-wordstudy-practice-textarea {
    border-radius: 4px;
    border-color: var(--fm-pe-brand-soft);
    background: rgba(255, 255, 255, 0.92);
}

.fm-pe-app .fm-wordstudy-practice-input:focus,
.fm-pe-app .fm-wordstudy-practice-textarea:focus {
    border-color: var(--fm-pe-brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 174, 95, 0.12);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-mode {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-tile,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-quiz-btn {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
}

.fm-pe-placeholder {
    border-radius: var(--fm-pe-radius-lg);
    border-style: solid;
    border-color: var(--fm-pe-brand-soft);
    background: linear-gradient(180deg, var(--fm-pe-surface), var(--fm-pe-brand-surface));
}

html.fm-pe-theme-dark body.fm-pe-shell-body {
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(45, 154, 82, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(36, 174, 95, 0.08), transparent 40%);
}

html.fm-pe-theme-dark .fm-pe-hub-page .fm-pe-panel-card--hub {
    background: linear-gradient(165deg, var(--fm-pe-surface) 0%, var(--fm-pe-brand-surface) 120%);
}

html.fm-pe-theme-dark .fm-daily-practice__intro,
html.fm-pe-theme-dark .fm-daily-practice-finished__main {
    background: transparent;
}

html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-panel {
    background: var(--fm-pe-surface);
}

html.fm-pe-theme-dark .fm-pe-hub__title {
    color: var(--fm-pe-text);
}

html.fm-pe-theme-dark .fm-pe-app .fm-pe-tool-catalog.fm-pe-panel-card {
    background: transparent !important;
}

html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardbox,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox {
    background: var(--fm-pe-bg);
    border-color: var(--fm-pe-line);
}

html.fm-pe-theme-dark .fm-pe-app .fm-pe-actions-reveal-col .fm-wordstudy-reveal-countdown {
    color: var(--fm-pe-muted);
}

/* ======================================================
   护眼模式补丁：ghost 按钮 / 练习区 / 生词本 / 每日练习完成页
   ====================================================== */

/* 0. 左侧导航面板（覆盖 fm-download-list / down.css 的 #fff 侧栏与 .left_menu） */
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side,
html.fm-pe-theme-dark .fm-pe-app .fm-dl .fm-dl__side,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .left_menu,
html.fm-pe-theme-dark .fm-pe-app .fm-dl .fm-dl__side .left_menu {
    background: var(--fm-pe-surface) !important;
    background-color: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    box-shadow: var(--fm-pe-shadow) !important;
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a:link,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a:visited {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a > i,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a > i::before {
    color: var(--fm-pe-muted);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover {
    background-color: var(--fm-pe-brand-surface) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover > a,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover > a:link,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover > a:visited,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list > a:hover {
    color: var(--fm-pe-brand-light, #2d9a52);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover > a > i,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list:hover > a > i::before {
    color: var(--fm-pe-brand-light, #2d9a52);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om {
    background-color: var(--fm-pe-brand-surface) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om > a,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om > a:link,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om > a:visited {
    color: var(--fm-pe-brand-light, #2d9a52);
    font-weight: 600;
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om > a > i,
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om > a > i::before {
    color: var(--fm-pe-brand-light, #2d9a52);
}
html.fm-pe-theme-dark .fm-pe-app .fm-dl__side .menu_list.left_menu_om:hover {
    background-color: rgba(45, 154, 82, 0.22) !important;
}

/* 0b. 词卡白底（fm-paddyenglish.css / online-tools 多处 #fff !important） */
html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardbox,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-panel .fm-wordstudy-cardbox.fm-pe-cardbox {
    background: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    color: var(--fm-pe-text);
    box-shadow: var(--fm-pe-shadow) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-panel .fm-wordstudy-cardbox .fm-wordstudy-card,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox .fm-wordstudy-card {
    background: var(--fm-pe-bg) !important;
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardbox *,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox * {
    border-color: var(--fm-pe-line);
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardhead,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-ecdict-in-card,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox .fm-pe-actions,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox .fm-pe-actions-sub {
    border-color: var(--fm-pe-line);
}
/* 词卡内部文字颜色 */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-card-en,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-word-en,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-card-zh,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-card-def {
    color: var(--fm-pe-text) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardbox p,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox p,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-cardbox .fm-wordstudy-card-hint,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-card-hint,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-reveal-countdown {
    color: var(--fm-pe-muted) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-panel__title,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-panel__meta {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-pe-panel__meta {
    color: var(--fm-pe-muted);
}

/* 0c. 查单词：输入联想下拉 + 释义结果卡 */
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest {
    background: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    box-shadow: var(--fm-pe-shadow) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest__item {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest__item:hover,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest__item.is-active {
    background: var(--fm-pe-brand-surface) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest__word {
    color: var(--fm-pe-brand-light, #2d9a52);
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-suggest__hint {
    color: var(--fm-pe-muted);
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-searchbox__field .fm-word-lookup-input {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-word-lookup-card,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-bing-dict-card,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-youdao-dict-card,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-card,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-card,
html.fm-pe-theme-dark .fm-pe-app .fm-youdao-dict-card,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-ecdict-study-result {
    background: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    color: var(--fm-pe-text);
    box-shadow: var(--fm-pe-shadow) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-word,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-word,
html.fm-pe-theme-dark .fm-pe-app .fm-youdao-dict-word {
    color: var(--fm-pe-text) !important;
}
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-def-txt,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-def-row,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-ex-en,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-ex-zh,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-auth-gloss,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-auth-zh,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-tense,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-dict-body,
html.fm-pe-theme-dark .fm-pe-app .fm-pe-dict-body .fm-ecdict-h,
html.fm-pe-theme-dark .fm-pe-app .fm-ecdict-block,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-word-lookup-pre {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-ph,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-ph-tag,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-ex-title,
html.fm-pe-theme-dark .fm-pe-app .fm-bing-dict-auth-title,
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-subtitle {
    color: var(--fm-pe-muted);
}
html.fm-pe-theme-dark .fm-pe-app .fm-word-lookup-result-shell .fm-ecdict-block {
    border-top-color: var(--fm-pe-line);
}
html.fm-pe-theme-dark .fm-pe-app .fm-tools__panel.fm-pe-panel-card {
    background: var(--fm-pe-surface) !important;
    border-color: var(--fm-pe-line) !important;
    color: var(--fm-pe-text);
}

/* 1. 所有 ghost 按钮（全部/认识/不认识/太简单 及通用 --ghost） */
html.fm-pe-theme-dark .fm-pe-app .fm-tool-btn--ghost,
html.fm-pe-theme-dark .fm-pe-app .fm-tool-btn--ghost:focus {
    background: rgba(245, 209, 58, 0.12);
    border-color: var(--fm-accent, #F5D13A);
    color: #e8d06a;
}
html.fm-pe-theme-dark .fm-pe-app .fm-tool-btn--ghost:hover {
    background: rgba(245, 209, 58, 0.28);
    border-color: var(--fm-accent-hover, #d4b030);
    color: #fff6c8;
}

/* 2. 每日练习完成页「再学一组」ghost 按钮 */
html.fm-pe-theme-dark .fm-daily-practice-finished__btn--ghost,
html.fm-pe-theme-dark .fm-daily-practice-finished__btn--ghost:focus {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-daily-practice-finished__btn--ghost:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft, #3f7a56);
    color: var(--fm-pe-brand);
}

/* 3. 强化记忆区标题与副标题 */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-title {
    color: var(--fm-pe-brand);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-lead {
    color: var(--fm-pe-muted);
}

/* 4. 强化记忆模式卡片（hover / active 态） */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-mode:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft, #3f7a56);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-mode.is-active {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-mode__name {
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-mode__desc {
    color: var(--fm-pe-muted);
}

/* 5. 强化记忆活动栏 / 提示 / 输入框 */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-active-bar {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-panel {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-tile,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-quiz-btn {
    background: var(--fm-pe-bg);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-tile:hover,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-practice-quiz-btn:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft, #3f7a56);
}

/* 6. 生词本过滤按钮 */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-nb-filter {
    background: var(--fm-pe-surface);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-nb-filter:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft, #3f7a56);
    color: var(--fm-pe-brand);
}
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-nb-filter.is-active {
    background: var(--fm-pe-brand-surface) !important;
    border-color: var(--fm-pe-brand) !important;
    color: var(--fm-pe-brand) !important;
}

/* 7. 侧栏工具卡片（生词本「返回背单词」卡片等） */
html.fm-pe-theme-dark .fm-pe-app .fm-tools__card,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-notebook-card {
    background: var(--fm-pe-bg);
    border-color: var(--fm-pe-line);
    color: var(--fm-pe-text);
}
html.fm-pe-theme-dark .fm-pe-app .fm-tools__card:hover,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-notebook-card:hover {
    background: var(--fm-pe-brand-surface);
    border-color: var(--fm-pe-brand-soft, #3f7a56);
}
html.fm-pe-theme-dark .fm-pe-app .fm-tools__card-desc,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-notebook-card .fm-tools__card-desc {
    color: var(--fm-pe-muted);
}

/* 8. 词卡内标题层级（背景见 0b） */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox h2,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox h3,
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-cardbox p {
    color: var(--fm-pe-text);
}

/* 9. 右侧「本地词典查询」输入框 */
html.fm-pe-theme-dark .fm-pe-app .fm-wordstudy-catalog-ecdict__input {
    background: var(--fm-pe-bg) !important;
    border-color: var(--fm-pe-line) !important;
    color: var(--fm-pe-text) !important;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-content {
    line-height: 1.65;
    padding: 20px 24px 16px !important;
    font-size: 15px;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-content .layui-layer-ico {
    display: none !important;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-btn {
    padding: 8px 16px 18px !important;
    text-align: center;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-btn a {
    min-width: 108px;
    min-height: 36px;
    line-height: 1.3;
    padding: 8px 18px;
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-btn .layui-layer-btn0 {
    background-color: var(--fm-pe-muted, #888) !important;
    border-color: var(--fm-pe-muted, #888) !important;
    color: #fff !important;
}

.layui-layer.fm-layer-paddy-daily-leave .layui-layer-btn .layui-layer-btn1 {
    background-color: var(--fm-brand, #177739) !important;
    border-color: var(--fm-brand, #177739) !important;
    color: #fff !important;
}

.fm-local-dict-exchange {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-local-dict-exchange__row {
    margin: 0 0 6px;
    line-height: 1.55;
}

.fm-local-dict-exchange__row:last-child {
    margin-bottom: 0;
}

.fm-local-dict-exchange__lbl {
    color: var(--fm-pe-muted, #666);
}
