/* ========== 名词解释工具 ========== */
.ne-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.ne-container.fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
}

/* ========== 工具栏 ========== */
.ne-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
    flex-shrink: 0;
}

.toolbar-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    padding: 6px 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #059669;
    transition: all 0.2s;
    white-space: nowrap;
}

.toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.toolbar-btn:active:not(:disabled) { transform: translateY(0); }

.toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.toolbar-btn-primary {
    background: #fff;
    color: #059669;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ========== 三栏主布局 ========== */
.ne-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f8fafc;
}

/* ========== 左侧历史面板 ========== */
.ne-history-panel {
    width: 190px;
    background: white;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.ne-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    border-left2: 3px solid #10b981;
    flex-shrink: 0;
}

.history-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.ne-history-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    background: #dcfce7;
    color: #16a34a;
}

.history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s;
}

.history-clear-btn:hover { background: #fde8e8; }

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #6ee7b7 #d1fae5;
}

.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-track { background: #d1fae5; }
.history-list::-webkit-scrollbar-thumb { background: #6ee7b7; border-radius: 2px; }
.history-list::-webkit-scrollbar-thumb:hover { background: #34d399; }

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 12px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.history-empty span:first-child { font-size: 22px; }

.ne-history-item {
    display: flex;
    flex-direction: column;
    padding: 9px 11px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    animation: neFadeIn 0.2s ease;
}

@keyframes neFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ne-history-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(2px);
}

.ne-history-item.active {
    background: #ecfdf5;
    border-color: #10b981;
    border-left: 3px solid #10b981;
    box-shadow: 0 1px 3px rgba(16,185,129,0.2);
}

.ne-history-item-del {
    position: absolute;
    top: 4px; right: 4px;
    width: 18px; height: 18px;
    background: #fde8e8;
    color: #ef4444;
    border: none;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    padding: 0; line-height: 1;
}

.ne-history-item:hover .ne-history-item-del { opacity: 1; }
.ne-history-item-del:hover { background: #ef4444; color: white; }

.ne-history-term {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 3px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ne-history-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.ne-history-time { color: #94a3b8; font-size: 11px; }

.ne-history-domain {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0369a1;
}

.ne-history-depth {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 5px;
    border-radius: 8px;
    background: #dcfce7;
    color: #16a34a;
}

/* ========== 中间输入面板 ========== */
.ne-input-panel {
    width: 290px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    border-right: 1px solid #e2e8f0;
}

.ne-input-header {
    padding: 12px 16px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    border-left2: 3px solid #f59e0b;
    flex-shrink: 0;
    line-height: 1.3;
}

.ne-input-subtitle {
    font-size: 11px;
    color: #10b981;
    font-weight: 400;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

.ne-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: #6ee7b7 #d1fae5;
}

.ne-input-body::-webkit-scrollbar { width: 4px; }
.ne-input-body::-webkit-scrollbar-track { background: #d1fae5; }
.ne-input-body::-webkit-scrollbar-thumb { background: #6ee7b7; border-radius: 2px; }
.ne-input-body::-webkit-scrollbar-thumb:hover { background: #34d399; }

.ne-form-group { display: flex; flex-direction: column; gap: 6px; }

.ne-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ne-required { color: #ef4444; font-size: 14px; }
.ne-optional { color: #9ca3af; font-size: 12px; font-weight: 400; }

.ne-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.ne-form-input:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.ne-form-input.is-error {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.ne-form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    background: #fafafa;
    resize: vertical;
    min-height: 70px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

.ne-form-textarea:focus {
    border-color: #10b981;
    background: white;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1);
}

.ne-hint-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.ne-input-tip { font-size: 11px; color: #9ca3af; line-height: 1.4; flex: 1; }
.ne-char-count { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.ne-char-count.warn { color: #f59e0b; font-weight: 600; }

/* 领域标签 */
.ne-tag-group { display: flex; flex-wrap: wrap; gap: 6px; }

.ne-tag {
    padding: 5px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
}

.ne-tag:hover { background: #e2e8f0; color: #475569; }
.ne-tag:active { transform: scale(0.94); }

.ne-tag.active {
    background: #059669;
    border-color: #059669;
    color: white;
    font-weight: 500;
}

/* 深度选择卡片 */
.ne-depth-group {
    display: flex;
    gap: 8px;
}

.ne-depth-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    user-select: none;
}

.ne-depth-card:hover {
    background: #f0fdf4;
    border-color: #6ee7b7;
}

.ne-depth-card:active { transform: scale(0.96); }

.ne-depth-card.active {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16,185,129,0.2), 0 0 0 2px rgba(16,185,129,0.08);
}

.depth-icon { font-size: 18px; }
.depth-name { font-size: 12px; font-weight: 600; color: #374151; }
.depth-desc { font-size: 10px; color: #94a3b8; }

.ne-depth-card.active .depth-name { color: #059669; }
.ne-depth-card.active .depth-desc { color: #34d399; }

/* 解释按钮 */
.ne-generate-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(5,150,105,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.ne-generate-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(5,150,105,0.4);
    filter: brightness(1.05);
}

.ne-generate-btn:active:not(:disabled) { transform: translateY(0); }
.ne-generate-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.ne-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: neSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes neSpin { to { transform: rotate(360deg); } }

.ne-shortcut-hint {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ========== 右侧结果面板 ========== */
.ne-result-panel {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
}

.ne-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    border-left2: 3px solid #6366f1;
    flex-shrink: 0;
}

.ne-result-title { font-size: 13px; font-weight: 600; color: #475569; }

.ne-result-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: #dcfce7;
    color: #16a34a;
}

.ne-result-copy-btn {
    padding: 4px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.ne-result-copy-btn:hover:not(:disabled) {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

.ne-result-copy-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ne-result-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #6ee7b7 #d1fae5;
}

.ne-result-body::-webkit-scrollbar { width: 4px; }
.ne-result-body::-webkit-scrollbar-track { background: #d1fae5; }
.ne-result-body::-webkit-scrollbar-thumb { background: #6ee7b7; border-radius: 2px; }
.ne-result-body::-webkit-scrollbar-thumb:hover { background: #34d399; }

/* 空状态 */
.ne-result-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

.ne-empty-icon { font-size: 48px; opacity: 0.7; }
.ne-empty-title { font-size: 16px; color: #64748b; font-weight: 600; }
.ne-empty-desc { font-size: 13px; color: #9ca3af; line-height: 1.8; }

/* ========== 骨架屏 ========== */
.ne-skeleton {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Loading 提示文字 */
.ne-loading-hint {
    text-align: center;
    font-size: 13px;
    color: #059669;
    font-weight: 500;
    padding: 8px 0 4px;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

@keyframes neShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ne-skel-header {
    height: 60px;
    background: linear-gradient(90deg, #e2f5ed 25%, #b2f0d4 50%, #e2f5ed 75%);
    background-size: 400% 100%;
    animation: neShimmer 1.6s ease infinite;
    border-radius: 8px;
}

.ne-skel-line {
    height: 14px;
    background: linear-gradient(90deg, #e2f5ed 25%, #b2f0d4 50%, #e2f5ed 75%);
    background-size: 400% 100%;
    animation: neShimmer 1.6s ease infinite;
    border-radius: 4px;
}

.ne-skel-line.w80 { width: 80%; }
.ne-skel-line.w60 { width: 60%; }
.ne-skel-line.w90 { width: 90%; }
.ne-skel-line.w70 { width: 70%; }

.ne-skel-block {
    height: 80px;
    background: linear-gradient(90deg, #e2f5ed 25%, #b2f0d4 50%, #e2f5ed 75%);
    background-size: 400% 100%;
    animation: neShimmer 1.6s ease infinite;
    border-radius: 8px;
}

/* 错误区 */
.ne-error-area {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    padding: 14px 16px;
    color: #c53030;
    font-size: 13px;
    line-height: 1.6;
}

.ne-retry-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 12px;
    background: white;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.ne-retry-btn:hover { background: #ef4444; color: white; }

/* ========== 结果渲染区 ========== */
.ne-result-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: neFadeIn 0.3s ease;
    overflow-x: hidden;
}

/* 词语头部卡片 */
.ne-term-card {
    padding: 16px 18px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-left: 4px solid #10b981;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(16,185,129,0.12);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ne-term-card:hover {
    box-shadow: 0 4px 18px rgba(16,185,129,0.2);
    transform: translateY(-1px);
}

.ne-term-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.ne-term-title {
    font-size: 26px;
    font-weight: 800;
    color: #065f46;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ne-term-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.ne-term-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
}

.ne-tag-domain { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.ne-tag-depth  { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

.ne-term-overview {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* 内容块 */
.ne-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.ne-section:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.ne-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    border-left: 3px solid #10b981;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.ne-section-body {
    padding: 12px 14px;
    font-size: 14px;
    color: #374151;
    line-height: 1.8;
    background: white;
}

/* 核心要点列表 */
.ne-key-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ne-key-point {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 3px solid #10b981;
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    transition: all 0.2s;
}

.ne-key-point:hover {
    background: #dcfce7;
    transform: translateX(2px);
}

.ne-key-point-num {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #d1fae5;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 例子列表 */
.ne-examples {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ne-example-item {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    transition: all 0.2s;
}

.ne-example-item:hover {
    background: #fef3c7;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(245,158,11,0.12);
}

.ne-example-scene {
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ne-example-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    font-style: italic;
}

/* 相关概念列表 */
.ne-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ne-related-chip {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s;
    max-width: 240px;
}

.ne-related-chip:hover {
    background: #f0fdf4;
    border-color: #6ee7b7;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16,185,129,0.1);
}

/* 可点击查询样式 */
.ne-related-chip.ne-related-clickable {
    cursor: pointer;
    position: relative;
}

.ne-related-chip.ne-related-clickable:hover {
    background: #ecfdf5;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16,185,129,0.2);
}

.ne-related-chip.ne-related-clickable:active {
    transform: scale(0.97);
}

.ne-related-click-hint {
    font-size: 10px;
    color: #10b981;
    margin-top: 3px;
    opacity: 0;
    transition: opacity 0.15s;
    font-weight: 500;
}

.ne-related-chip.ne-related-clickable:hover .ne-related-click-hint {
    opacity: 1;
}

.ne-related-term {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.5px;
}

.ne-related-relation {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.4;
}

/* 总结卡 */
.ne-summary-card {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #a7f3d0;
    border-left: 4px solid #059669;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
    line-height: 1.7;
    font-style: italic;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(5,150,105,0.1);
}

.ne-summary-icon { font-size: 18px; flex-shrink: 0; }

/* ========== 模态框 ========== */
.ne-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.ne-modal.show { display: flex; }

.ne-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    animation: neModalIn 0.2s ease-out;
}

@keyframes neModalIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ne-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    flex-shrink: 0;
}

.ne-modal-header h3 { margin: 0; font-size: 15px; font-weight: 600; }

.ne-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px; height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}

.ne-modal-close:hover { background: rgba(255,255,255,0.35); }

.ne-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* 示例卡片网格 */
.ne-example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.ne-example-card {
    padding: 14px 16px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.ne-example-card:hover {
    background: #f0fdf4;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.15);
}

.ne-example-card:active { transform: scale(0.97); }

.ne-ec-term {
    font-size: 16px;
    font-weight: 800;
    color: #059669;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.ne-ec-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 6px;
}

.ne-ec-tags { display: flex; gap: 5px; flex-wrap: wrap; }

.ne-ec-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.ne-ec-domain { background: #d1fae5; color: #059669; }
.ne-ec-depth  { background: #dbeafe; color: #1d4ed8; }

/* ========== Toast ========== */
.ne-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(5,150,105,0.92);
    color: white;
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 200000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(5,150,105,0.4);
}

.ne-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
