@keyframes spin { 
    0% { transform: rotate(0deg); } 
    100% { transform: rotate(360deg); 
} }
.result-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}
.result-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fafffe;
    transform: translateY(-2px);
}
.result-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 8px;
    line-height: 1.4;
}
.result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: #e8f5e9;
    color: #07c160;
    font-size: 12px;
}
.result-relevance {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: #e3f2fd;
    color: #1a73e8;
    font-size: 12px;
}
.label-precise { background: #dcfce7; color: #16a34a; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.label-related { background: #fef3c7; color: #b45309; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.label-ref { background: #f3f4f6; color: #6b7280; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.branch-tag { font-size: 11px; color: #666; background: #f5f3ff; padding: 2px 8px; border-radius: 8px; display: inline-block; margin-top: 4px; }
.knowledge-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.knowledge-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fafffe;
    transform: translateY(-2px);
}
.knowledge-card .kc-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}
.knowledge-card .kc-name { font-size: 15px; font-weight: 700; color: #1a365d; }
.knowledge-card .kc-value { font-size: 16px; font-weight: 700; color: #1d4ed8; margin: 6px 0; font-family: Consolas, monospace; }
.knowledge-card .kc-formula { font-size: 15px; font-weight: 600; color: #b45309; margin: 6px 0; font-family: Consolas, monospace; }
.knowledge-card .kc-desc { font-size: 13px; color: #555; line-height: 1.7; }
.knowledge-card .kc-ref { font-size: 12px; color: #999; margin-top: 8px; }
.knowledge-card .kc-branch { font-size: 11px; color: #888; }
.table-scroll-wrap {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid #e0e0e0; border-radius: 8px;
}
.table-scroll-wrap table { min-width: 600px; width: max-content; }
.highlight { color: #e53935; font-weight: 500; }
.suggest-item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.suggest-item:hover, .suggest-item.active {
    background: #f0fdf4;
}
.suggest-item i {
    color: #07c160;
    font-size: 13px;
}
.suggest-tag {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 8px;
}
/* 字典摘要卡片 */
.summary-card {
    background: linear-gradient(135deg, #f0fdf4, #fafeff);
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.summary-card .sc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    cursor: pointer;
}
.summary-card .sc-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a365d;
}
.summary-card .sc-code {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}
.summary-card .sc-toggle {
    font-size: 12px;
    color: #07c160;
    cursor: pointer;
    user-select: none;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    transition: background 0.2s;
}
.summary-card .sc-toggle:hover {
    background: #dcfce7;
}
.summary-card .sc-content {
    font-size: 13px;
    line-height: 1.9;
    color: #555;
    max-height: 240px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-all;
}
.summary-card .sc-content.collapsed {
    max-height: 80px;
    overflow: hidden;
}
.summary-card .sc-content.collapsed::after {
    content: '';
    position: relative;
    display: block;
    height: 30px;
    margin-top: -30px;
    background: linear-gradient(transparent, #fafafa);
}
