/* ============================================================
   英文模块主题与组件样式
   主题色：青色 #0891b2
   CSS 类名前缀：english-
   结构：首页 Hero / 3子模块入口卡片 / 列表双栏 / 详情卡片
   ============================================================ */

/* ---- 主色调（模块级，与数学蓝 / 诗词默认色隔离） ---- */
.english-hero-card { margin: 0 0 16px; padding: 48px 40px; border-radius: 20px; }
.english-hero-inner { text-align: center; }
.english-hero-icon { font-size: 52px; margin-bottom: 12px; }
.english-hero-title {
    font-size: 38px; font-weight: 700;
    margin: 0 0 8px; letter-spacing: 2px;
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.english-hero-subtitle { font-size: 16px; color: var(--cf-muted, #6b7280); margin: 0; }
.english-hero-stats {
    display: flex; justify-content: center; gap: 40px;
    margin-top: 28px;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 28px; font-weight: 700;
    color: #0891b2;
    font-family: 'Georgia', serif;
}
.stat-label { font-size: 13px; color: var(--cf-muted, #6b7280); margin-top: 4px; }

/* ---- 三模块入口卡片 ---- */
.english-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 24px 28px 0;
}
.english-entry-card {
    display: block;
    padding: 28px 24px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.english-entry-card:hover { transform: translateY(-3px); }
.entry-icon { font-size: 36px; margin-bottom: 12px; }
.entry-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.entry-desc { font-size: 13px; color: var(--cf-muted, #6b7280); margin: 0 0 16px; line-height: 1.6; }
.entry-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2;
}
.entry-tag-dev { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.entry-placeholder-card { opacity: .85; cursor: default; }
.entry-placeholder-card:hover { transform: none; }

/* 入口卡片上的样本小预览 */
.entry-preview {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}
.entry-preview-title { font-size: 12px; color: var(--cf-muted, #6b7280); margin-bottom: 8px; }
.entry-preview-item {
    font-size: 12.5px;
    padding: 4px 0;
    color: #374151;
}
.entry-preview-item .en { color: #0891b2; font-weight: 500; margin-right: 6px; }

/* ---- 介绍/路线图 ---- */
.english-intro-card { margin: 0 0 16px; padding: 32px 36px; border-radius: 20px; }
.section-title { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.intro-text { font-size: 14px; color: var(--cf-text, #374151); line-height: 1.9; margin: 0 0 12px; }
.intro-text a { color: #0891b2; text-decoration: none; font-weight: 500; }

.intro-roadmap {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.roadmap-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    background: #f3f4f6;
    color: #6b7280;
}
.roadmap-item .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #9ca3af;
}
.roadmap-done  { background: rgba(16, 185, 129, 0.12); color: #059669; }
.roadmap-done  .dot { background: #10b981; }
.roadmap-doing { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.roadmap-doing .dot { background: #0891b2; animation: pulse 1.5s infinite; }
.roadmap-todo .dot { background: #d1d5db; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

/* ============================================================
   列表/详情页通用
   ============================================================ */

.english-list-header { margin: 0 0 16px; padding: 28px 32px; border-radius: 20px; }
.english-breadcrumb { font-size: 13px; color: var(--cf-muted, #6b7280); margin-bottom: 16px; }
.english-breadcrumb a { color: inherit; text-decoration: none; }
.english-breadcrumb a:hover { color: #0891b2; }
.english-breadcrumb .sep { margin: 0 8px; opacity: .5; }
.english-breadcrumb .current { color: #374151; font-weight: 500; }
.english-list-title { font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.english-list-subtitle { font-size: 14px; color: var(--cf-muted, #6b7280); margin: 0; }

.english-search-box {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    max-width: 520px;
}
.english-search-box input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.english-search-box input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}
.english-search-box button {
    padding: 0 20px;
    border-radius: 10px;
    background: #0891b2;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.english-search-box button:hover { background: #0e7490; }

/* 双栏：左分类 + 右列表 */
.english-list-body {
    padding: 20px 28px 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}
.english-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.english-side-card {
    padding: 20px 22px;
    border-radius: 16px;
}
.side-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cf-muted, #6b7280);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.side-tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.side-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 13.5px;
    transition: all .18s;
}
.side-tag:hover {
    background: rgba(8, 145, 178, 0.08);
    color: #0891b2;
}
.side-tag.active {
    background: #0891b2;
    color: #fff;
}
.side-tag.active .side-count { background: rgba(255,255,255,0.22); color: #fff; }
.side-count {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    color: #6b7280;
    font-weight: 600;
}
.side-group-label {
    font-size: 11.5px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 12px 4px 6px;
}
.side-group-label:first-child { margin-top: 0; }

.side-tip {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.7;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.06);
}

/* 右侧列表区 */
.english-list-cards {
    padding: 24px 28px;
    border-radius: 20px;
}

/* ---- 单词卡片（列表页） ---- */
.english-word-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.english-word-card {
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all .2s;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.english-word-card:hover {
    border-color: rgba(8, 145, 178, 0.3);
    box-shadow: 0 6px 24px rgba(8, 145, 178, 0.08);
    transform: translateX(2px);
}
.word-main { flex: 1; min-width: 0; }
.word-headline { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.word-title {
    font-size: 22px;
    font-weight: 700;
    color: #0891b2;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.word-title:hover { text-decoration: underline; }
.word-pos {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: #0e7490;
    font-weight: 600;
}
.word-phonetics { display: flex; gap: 18px; margin-bottom: 8px; font-family: 'Georgia', serif; }
.word-ph { font-size: 13px; color: #6b7280; }
.word-ph::before {
    display: inline-block;
    width: 22px;
    padding: 1px 0;
    margin-right: 4px;
    border-radius: 4px;
    background: rgba(0,0,0,0.05);
    color: #9ca3af;
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
}
.word-ph.us::before { content: '美'; background: rgba(8, 145, 178, 0.1); color: #0891b2; }
.word-ph.uk::before { content: '英'; background: rgba(236, 72, 153, 0.1); color: #db2777; }

.word-meaning {
    font-size: 14.5px;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 10px;
}

.word-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.word-tag {
    font-size: 11.5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all .18s;
}
.word-tag:hover { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.word-tag.root-tag {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(236, 72, 153, 0.1));
    color: #0891b2;
    font-weight: 600;
}
.word-tag.root-tag::before { content: '🌱 '; }

.word-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.word-example-count {
    font-size: 12px;
    color: #9ca3af;
    background: rgba(0,0,0,0.04);
    padding: 4px 10px;
    border-radius: 999px;
}
.word-detail-btn {
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
}
.word-detail-btn:hover { background: rgba(8, 145, 178, 0.2); }

/* ---- 名句卡片（列表页） ---- */
.english-sentence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.english-sentence-card {
    padding: 22px 26px;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(0,0,0,0.05);
    border-left: 4px solid #0891b2;
    transition: all .2s;
    position: relative;
}
.english-sentence-card:hover {
    box-shadow: 0 8px 28px rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}
.sentence-en {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    line-height: 1.55;
    margin-bottom: 10px;
    font-family: 'Georgia', 'Times New Roman', serif;
}
.sentence-cn {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 14px;
    border-left: 2px dashed rgba(0,0,0,0.08);
    padding-left: 12px;
}
.sentence-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.sentence-source {
    font-size: 12.5px;
    color: #9ca3af;
}
.sentence-source .author {
    font-weight: 600;
    color: #0e7490;
    margin-right: 8px;
}
.sentence-source .from::before { content: '《'; }
.sentence-source .from::after  { content: '》'; }
.sentence-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sentence-detail-btn {
    font-size: 12.5px;
    padding: 5px 14px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
}
.sentence-detail-btn:hover { background: rgba(8, 145, 178, 0.2); }

/* ============================================================
   详情页
   ============================================================ */

.english-detail-card {
    margin: 28px;
    padding: 36px 40px;
    border-radius: 20px;
}
.english-detail-head {
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.english-detail-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0891b2;
    letter-spacing: 1px;
}
.english-detail-phonetics { display: flex; gap: 22px; margin-bottom: 12px; font-family: 'Georgia', serif; }

.english-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 13.5px;
    color: #6b7280;
}

.english-detail-section { margin-bottom: 30px; }
.english-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 3px solid #0891b2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meaning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.meaning-item {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.meaning-pos {
    flex-shrink: 0;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: #0e7490;
    font-weight: 600;
}
.meaning-cn { font-size: 15px; color: #111827; line-height: 1.7; flex: 1; }

.examples-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.example-item {
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.04), rgba(236, 72, 153, 0.03));
    border-left: 3px solid rgba(8, 145, 178, 0.4);
}
.example-en {
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 6px;
    font-family: 'Georgia', serif;
}
.example-cn {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.7;
}
.example-source {
    margin-top: 8px;
    font-size: 11.5px;
    color: #9ca3af;
}
.example-source::before { content: '— '; }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* 名句详情 */
.sentence-detail-main {
    text-align: center;
    padding: 36px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), rgba(236, 72, 153, 0.05));
    margin-bottom: 30px;
    position: relative;
}
.sentence-detail-main::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 24px;
    font-size: 80px;
    color: rgba(8, 145, 178, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
}
.sentence-detail-main::after {
    content: '\201D';
    position: absolute;
    bottom: -60px;
    right: 24px;
    font-size: 80px;
    color: rgba(236, 72, 153, 0.12);
    font-family: Georgia, serif;
    line-height: 1;
}
.sentence-detail-en {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: Georgia, 'Times New Roman', serif;
    position: relative;
    z-index: 2;
}
.sentence-detail-cn {
    font-size: 17px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.sentence-detail-author {
    font-size: 14px;
    color: #0e7490;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* 通用按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
}
.back-btn:hover { background: rgba(8, 145, 178, 0.18); }

/* 空状态 */
.english-empty { text-align: center; padding: 48px 24px 32px; }
.empty-icon { font-size: 56px; margin-bottom: 14px; }
.empty-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.empty-desc { font-size: 13.5px; color: var(--cf-muted, #6b7280); margin-bottom: 28px; }
.empty-steps {
    max-width: 540px; margin: 0 auto 28px;
    text-align: left;
    background: rgba(8, 145, 178, 0.06);
    border-radius: 14px; padding: 20px 24px;
}
.step-item { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; color: #374151; line-height: 1.7; margin-bottom: 10px; }
.step-item:last-child { margin-bottom: 0; }
.step-no {
    flex-shrink: 0;
    width: 22px; height: 22px; line-height: 22px; text-align: center;
    border-radius: 50%; background: #0891b2; color: #fff; font-size: 12px; font-weight: 600;
}
.empty-back-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    color: #0891b2; text-decoration: none;
    font-size: 13.5px;
}
.empty-back-btn:hover { background: rgba(8, 145, 178, 0.2); }

/* 响应式 */
@media (max-width: 900px) {
    .english-list-body {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .english-hero-card { margin: 0 0 12px; padding: 32px 20px; }
    .english-hero-title { font-size: 28px; }
    .english-entry-grid { padding: 0; gap: 14px; }
    .english-intro-card { margin: 0 0 12px; padding: 24px 20px; }
    .english-list-header { margin: 0 0 12px; padding: 22px 20px; }
    .english-list-body { padding: 0; }
    .english-list-cards { padding: 0; }
    .english-detail-card { margin: 0 0 12px; padding: 24px 20px; }
    .english-detail-title { font-size: 28px; }
    .sentence-detail-en { font-size: 18px; }
}

/* ============================================================
   美文详情页 — 双栏对照布局
   左：原文（可点击段落）   右：解析（词汇/句法/文化）
   段落级联动：点击左段 → 右段同步高亮
   ============================================================ */

.essay-detail-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px 28px 0;
    gap: 16px;
}

.essay-detail-header {
    padding: 24px 28px;
    border-radius: 18px;
    flex-shrink: 0;
}
.essay-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #0891b2;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}
.essay-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 13px;
    color: #6b7280;
}
.essay-detail-meta .label {
    color: #9ca3af;
    margin-right: 4px;
}
.essay-detail-meta .val {
    color: #374151;
    font-weight: 500;
}

.essay-detail-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.essay-col {
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.essay-col-header {
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.essay-col-header .badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0;
}
.essay-col-header .badge-left  { background: rgba(8, 145, 178, 0.12); color: #0891b2; }
.essay-col-header .badge-right { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.essay-col-header-left  { background: rgba(8, 145, 178, 0.06); color: #0891b2; }
.essay-col-header-right { background: rgba(236, 72, 153, 0.06); color: #db2777; }

.essay-col-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px;
}

/* 左栏：原文段落 */
.essay-para {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: #111827;
    font-family: 'Georgia', 'Times New Roman', serif;
    cursor: pointer;
    transition: all .2s ease;
    border-left: 3px solid transparent;
}
.essay-para:hover {
    background: rgba(8, 145, 178, 0.04);
    border-left-color: rgba(8, 145, 178, 0.3);
}
.essay-para.active {
    background: rgba(8, 145, 178, 0.08);
    border-left-color: #0891b2;
    box-shadow: 0 2px 12px rgba(8, 145, 178, 0.1);
}
.essay-para .para-num {
    display: inline-block;
    font-size: 11px;
    color: #9ca3af;
    margin-right: 8px;
    font-weight: 600;
    vertical-align: super;
}
.essay-para em {
    color: #0891b2;
    font-weight: 600;
    font-style: normal;
    border-bottom: 1px dotted rgba(8, 145, 178, 0.4);
}
.essay-para strong {
    color: #0e7490;
}

/* 诗歌特殊样式 */
.essay-poem .essay-para {
    text-align: center;
    font-size: 17px;
    line-height: 2.2;
    padding: 20px 16px;
    font-style: italic;
}
.essay-poem .essay-para .para-num {
    display: block;
    text-align: center;
    margin-bottom: 4px;
}

/* 右栏：解析 */
.essay-analysis {
    margin-bottom: 20px;
    padding: 16px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all .2s ease;
}
.essay-analysis.active {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(236, 72, 153, 0.05));
    border-color: rgba(8, 145, 178, 0.25);
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.08);
}
.essay-analysis-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #0891b2;
    font-weight: 600;
}
.essay-analysis-head .ref {
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    font-weight: 600;
}
.essay-analysis-block {
    margin-bottom: 14px;
}
.essay-analysis-block:last-child {
    margin-bottom: 0;
}
.essay-analysis-block-title {
    font-size: 12px;
    font-weight: 700;
    color: #db2777;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}
.essay-analysis-block-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #db2777;
    border-radius: 2px;
}
.essay-analysis-block.vocab .essay-analysis-block-title { color: #0891b2; }
.essay-analysis-block.vocab .essay-analysis-block-title::before { background: #0891b2; }
.essay-analysis-block.grammar .essay-analysis-block-title { color: #7c3aed; }
.essay-analysis-block.grammar .essay-analysis-block-title::before { background: #7c3aed; }
.essay-analysis-block.culture .essay-analysis-block-title { color: #d97706; }
.essay-analysis-block.culture .essay-analysis-block-title::before { background: #d97706; }
.essay-analysis-block.style .essay-analysis-block-title { color: #059669; }
.essay-analysis-block.style .essay-analysis-block-title::before { background: #059669; }

.essay-analysis-block p {
    font-size: 14px;
    line-height: 1.75;
    color: #374151;
    margin: 0;
}
.essay-analysis-block .cn-trans {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.8;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    margin-top: 8px;
    border-left: 2px solid rgba(0, 0, 0, 0.1);
}

/* 词汇表 */
.essay-vocab-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.essay-vocab-list li {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}
.essay-vocab-list li:last-child { border-bottom: none; }
.essay-vocab-list .v-word {
    font-weight: 700;
    color: #0891b2;
    min-width: 90px;
}
.essay-vocab-list .v-meaning {
    color: #374151;
    flex: 1;
}

/* 长文页底部导航 */
.essay-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-radius: 14px;
    flex-shrink: 0;
}
.essay-nav a {
    font-size: 13.5px;
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .18s;
}
.essay-nav a:hover { color: #0e7490; }
.essay-nav .nav-center {
    font-size: 12px;
    color: #9ca3af;
}

/* 美文卡片列表（索引页） */
.essay-grid {
    padding: 20px 28px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.essay-card {
    padding: 24px;
    border-radius: 16px;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.essay-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0891b2, #ec4899);
    opacity: 0;
    transition: opacity .25s;
}
.essay-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(8, 145, 178, 0.12);
}
.essay-card:hover::before { opacity: 1; }
.essay-card-cover {
    font-size: 36px;
    line-height: 1;
}
.essay-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
}
.essay-card-title:hover { color: #0891b2; }
.essay-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}
.essay-card-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}
.essay-card-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: #0891b2;
    font-weight: 500;
}
.essay-card .card-link {
    position: absolute;
    inset: 0;
    text-decoration: none;
    z-index: 1;
}

/* 美文响应式 */
@media (max-width: 900px) {
    .essay-detail-body {
        grid-template-columns: 1fr;
    }
    .essay-col-body {
        max-height: 50vh;
    }
    .essay-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .essay-detail-wrap {
        padding: 14px;
        gap: 12px;
    }
    .essay-detail-header {
        padding: 20px;
    }
    .essay-detail-title {
        font-size: 22px;
    }
    .essay-col-body {
        padding: 16px;
    }
    .essay-para {
        font-size: 14px;
        padding: 10px 12px;
    }
    .essay-poem .essay-para {
        font-size: 15px;
    }
    .essay-grid {
        padding: 14px;
    }
}

/* ============================================================
   分类应用（模块4）— 列表页 + 详情页样式
   ============================================================ */
.english-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px 28px 0;
}
.english-cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.english-cat-card:hover { transform: translateY(-3px); }
.cat-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.cat-card-body { flex: 1; min-width: 0; }
.cat-card-name { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.cat-card-en { font-size: 12px; color: var(--cf-muted, #6b7280); }
.cat-card-desc {
    font-size: 12px; color: var(--cf-muted, #6b7280); margin-top: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-card-count { text-align: center; flex-shrink: 0; }
.cat-card-count .num {
    display: block; font-size: 20px; font-weight: 700;
    color: #0891b2; font-family: 'Georgia', serif;
}
.cat-card-count .lbl { font-size: 11px; color: var(--cf-muted, #6b7280); }

/* ---- 详情页 Bento 单词网格 ---- */
.english-cat-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    padding: 20px 28px 0;
}
.cat-word-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cat-word-card:hover { transform: translateY(-3px); }
.cat-word-en { font-size: 20px; font-weight: 700; color: #0891b2; margin-bottom: 4px; }
.cat-word-ph { font-size: 12px; color: var(--cf-muted, #6b7280); margin-bottom: 4px; }
.cat-word-pos {
    font-size: 11px; padding: 1px 8px; border-radius: 999px;
    background: rgba(8, 145, 178, 0.1); color: #0891b2; margin-bottom: 6px;
}
.cat-word-cn { font-size: 13px; color: var(--cf-text, #374151); }

/* ============================================================
   词根词缀（模块3）— 列表页 + 辐射图 + 表格
   ============================================================ */
.english-root-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 20px 28px 0;
}
.english-root-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.english-root-card:hover { transform: translateY(-3px); }
.root-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.root-card-body { flex: 1; min-width: 0; }
.root-card-en { font-size: 20px; font-weight: 700; color: #10b981; font-family: Georgia, serif; }
.root-card-cn { font-size: 14px; margin-top: 2px; }
.root-card-meaning { font-size: 12px; color: var(--cf-muted, #6b7280); margin-top: 4px; }
.root-card-count { text-align: center; flex-shrink: 0; }
.root-card-count .num { display: block; font-size: 20px; font-weight: 700; color: #10b981; font-family: Georgia, serif; }
.root-card-count .lbl { font-size: 11px; color: var(--cf-muted, #6b7280); }

/* ---- 详情页：视图切换按钮 ---- */
.root-view-switcher {
    display: flex;
    gap: 8px;
    padding: 0 28px;
    margin-top: 8px;
}
.root-view-btn {
    padding: 6px 16px;
    border: 1px solid var(--cf-border, #e5e7eb);
    background: var(--cf-card-bg, #fff);
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
}
.root-view-btn.active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* ---- 详情页：SVG 辐射图 ---- */
.root-radial-view {
    padding: 20px 28px;
    overflow-x: auto;
}
.root-radial-svg {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
}
.root-word-node { transition: all .2s ease; cursor: pointer; }
.root-word-node:hover { fill: #ecfdf5; transform: scale(1.1); transform-origin: center; }
.root-word-text { font-size: 13px; font-weight: 600; fill: #10b981; pointer-events: none; }
.root-word-cn { font-size: 10px; fill: var(--cf-muted, #6b7280); pointer-events: none; }
.root-center-node { filter: drop-shadow(0 4px 12px rgba(16,185,129,0.3)); }

/* ---- 详情页：表格视图 ---- */
.root-table-view { padding: 20px 28px; overflow-x: auto; }
.root-word-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--cf-card-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
}
.root-word-table th {
    background: #f0fdf4;
    color: #10b981;
    font-weight: 600;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid #d1fae5;
}
.root-word-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--cf-border, #f3f4f6);
}
.root-word-table tr:hover td { background: #f0fdf4; }
.root-tbl-word { font-weight: 700; color: #10b981; font-family: Georgia, serif; }
.root-tbl-ph { font-size: 12px; color: var(--cf-muted, #6b7280); }
.root-tbl-break { color: #6366f1; font-size: 13px; }
.root-tbl-link { color: #10b981; text-decoration: none; font-size: 13px; }
.root-tbl-link:hover { text-decoration: underline; }

/* ============================================================
   场景学习（模块2）
   ============================================================ */
.english-scene-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    padding: 20px 28px 0;
}
.english-scene-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.english-scene-card:hover { transform: translateY(-3px); }
.scene-card-cover {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}
.scene-card-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.english-scene-card:hover .scene-card-cover img { transform: scale(1.05); }
.scene-card-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
}
.placeholder-icon { font-size: 40px; }
.placeholder-tip { font-size: 12px; color: #8b5cf6; }
.scene-card-body { padding: 14px 16px; }
.scene-card-name { font-size: 16px; font-weight: 700; }
.scene-card-en { font-size: 12px; color: var(--cf-muted, #6b7280); margin-top: 2px; }
.scene-card-count { font-size: 12px; color: var(--cf-muted, #6b7280); margin-top: 6px; }
.scene-card-count .num { color: #8b5cf6; font-weight: 700; }

.scene-image-wrap { padding: 20px 28px; }
.scene-canvas {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
}
.scene-bg-img { width: 100%; display: block; }
.scene-hotspot {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    text-decoration: none;
    z-index: 2;
}
.scene-hotspot-dot {
    width: 20px; height: 20px;
    background: rgba(139, 92, 246, 0.85);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(139,92,246,.4), 0 2px 8px rgba(0,0,0,.3);
    animation: scene-pulse 1.8s ease-in-out infinite;
}
@keyframes scene-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(139,92,246,.4), 0 2px 8px rgba(0,0,0,.3); }
    50%      { box-shadow: 0 0 0 8px rgba(139,92,246,0), 0 2px 8px rgba(0,0,0,.3); }
}
.scene-hotspot-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 92, 246, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.scene-hotspot:hover .scene-hotspot-label { opacity: 1; }
.scene-hotspot:hover .scene-hotspot-dot {
    transform: scale(1.3);
    background: #8b5cf6;
}
.scene-hint { text-align: center; padding: 40px; color: var(--cf-muted, #6b7280); font-size: 14px; }

/* ========== 单词详情页面包屑导航 ========== */
.word-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    margin: 0 0 16px 0;
    background: rgba(139, 92, 246, 0.06);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}
.word-breadcrumb .sep {
    color: #9ca3af;
    font-size: 12px;
    user-select: none;
}
.word-breadcrumb .crumb-link {
    color: #6366f1;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.word-breadcrumb .crumb-link:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}
.word-breadcrumb .crumb-current {
    color: #1f2937;
    font-weight: 600;
    padding: 2px 6px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
