/* ================================================================
   leave_request_assistant.css  —  请假助手样式
   颜色主题：青绿 → 天蓝 渐变，营造专业、轻松的职场氛围
   ================================================================ */

/* ── 主容器 ──────────────────────────────────────────────── */
.lra-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    min-height: 560px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lra-container.fullscreen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100vh;
    z-index: 9000;
    border-radius: 0;
    border: none;
}

/* ── 顶部工具栏 ──────────────────────────────────────────── */
.lra-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #0f766e 0%, #0284c7 100%);
    border-bottom: 1px solid #0e7490;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.lra-toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lra-toolbar-group + .lra-toolbar-group {
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,0.25);
}

.lra-toolbar-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-right: 6px;
    white-space: nowrap;
}

.lra-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.lra-toolbar-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.55);
    transform: translateY(-1px);
}

.lra-toolbar-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lra-btn-primary {
    background: rgba(255,255,255,0.9);
    color: #0f766e;
    font-weight: 600;
    border-color: rgba(255,255,255,0.9);
}

.lra-btn-primary:hover:not(:disabled) {
    background: #fff;
    color: #0d6b62;
}

/* 生成按钮 loading shimmer 动画 */
.lra-btn-primary.lra-btn-loading {
    background: linear-gradient(90deg, #0f766e 0%, #38bdf8 35%, #0f766e 65%, #065f46 100%);
    background-size: 200% 100%;
    animation: lraBtnShimmer 1.4s ease-in-out infinite;
    color: #fff;
    border-color: transparent;
    cursor: not-allowed;
    opacity: 1;
}

@keyframes lraBtnShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lra-btn-danger {
    background: rgba(239,68,68,0.75);
    border-color: rgba(239,68,68,0.9);
    color: #fff;
}

.lra-btn-danger:hover:not(:disabled) {
    background: rgba(239,68,68,0.95);
}

/* ── 三栏主布局 ──────────────────────────────────────────── */
.lra-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ── 左栏：历史记录 ──────────────────────────────────────── */
.lra-history-panel {
    width: 210px;
    min-width: 170px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
}

.lra-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px 10px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.lra-history-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.lra-history-count {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 4px;
}

.lra-history-clear-btn {
    background: #fff0f0;
    border: none;
    color: #ef4444;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 7px;
    border-radius: 4px;
    transition: background 0.2s;
    white-space: nowrap;
}

.lra-history-clear-btn:hover { background: #fde8e8; }

.lra-history-search {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.lra-history-search input {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 12px;
    color: #334155;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}

.lra-history-search input:focus {
    border-color: #0ea5e9;
    background: #fff;
}

.lra-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.lra-history-list::-webkit-scrollbar { width: 4px; }
.lra-history-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.lra-history-list::-webkit-scrollbar-thumb:hover { background: #f97316; }

.lra-history-empty {
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.lra-history-item {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    position: relative;
}

.lra-history-item:hover { background: #f0f9ff; }

.lra-history-item.active {
    background: #e0f2fe;
    border-left: 3px solid #0284c7;
    padding-left: 9px;
}

.lra-history-item.active:hover { background: #bae6fd; }

.lra-history-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.lra-history-item-meta {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.lra-history-item-del {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0;
    transition: all 0.15s;
}

.lra-history-item:hover .lra-history-item-del {
    opacity: 1;
    color: #ef4444;
}

/* ── 中栏：输入配置 ──────────────────────────────────────── */
.lra-input-panel {
    width: 300px;
    min-width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    overflow: hidden;
}

.lra-panel-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    flex-shrink: 0;
}

.lra-panel-header h3 {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.lra-panel-tip {
    font-size: 11px;
    color: #94a3b8;
}

.lra-input-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 10px;
}

.lra-input-body::-webkit-scrollbar { width: 4px; }
.lra-input-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.lra-input-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 字段组 */
.lra-field-group {
    margin-bottom: 14px;
}

.lra-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.lra-optional {
    font-weight: 400;
    color: #94a3b8;
}

.lra-required {
    color: #ef4444;
}

/* 双列行 */
.lra-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

/* 文本输入 */
.lra-text-input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.lra-text-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
    background: #fff;
}

.lra-date-input {
    color-scheme: light;
}

/* 文本域 */
.lra-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    color: #334155;
    outline: none;
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
    font-family: inherit;
}

.lra-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
    background: #fff;
}

.lra-textarea::-webkit-scrollbar { width: 4px; }
.lra-textarea::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.lra-textarea::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 输入校验错误状态 */
.lra-input-error,
.lra-textarea.lra-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.14) !important;
    background: #fff5f5 !important;
    animation: lraShakeErr 0.35s ease;
}

@keyframes lraShakeErr {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-4px); }
    60%       { transform: translateX(4px); }
}

.lra-char-counter {
    text-align: right;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 3px;
}

/* 请假类型网格 */
.lra-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.lra-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 4px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f8fafc;
    text-align: center;
}

.lra-type-option:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.lra-type-option.selected {
    border-color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    box-shadow: 0 1px 5px rgba(2,132,199,0.2);
}

.lra-type-option.selected .lra-type-name {
    color: #0369a1;
    font-weight: 700;
}

.lra-type-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

.lra-type-name {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
}

/* 请假时长 */
.lra-duration-options {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.lra-duration-option {
    flex: 1;
    min-width: 48px;
    text-align: center;
    padding: 6px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.lra-duration-option:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.lra-duration-option.selected {
    border-color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0369a1;
    box-shadow: 0 1px 5px rgba(2,132,199,0.18);
}

.lra-custom-duration-wrap {
    margin-top: 6px;
}

/* 输出格式标签页 */
.lra-format-tabs {
    display: flex;
    gap: 5px;
}

.lra-format-tab {
    flex: 1;
    padding: 7px 6px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-align: center;
}

.lra-format-tab:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.lra-format-tab.selected {
    border-color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    color: #0369a1;
    box-shadow: 0 1px 5px rgba(2,132,199,0.18);
}

/* 表达风格 */
.lra-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.lra-style-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f8fafc;
    text-align: center;
}

.lra-style-option:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}

.lra-style-option.selected {
    border-color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
    box-shadow: 0 1px 5px rgba(2,132,199,0.2);
}

.lra-style-option.selected .lra-style-name {
    color: #0369a1;
    font-weight: 700;
}

.lra-style-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 3px;
}

.lra-style-name {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
}

.lra-style-hint {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}

/* 使用说明框 */
.lra-tips-box {
    background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 4px;
}

.lra-tips-box p {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #065f46;
}

.lra-tips-box ul {
    margin: 0;
    padding-left: 16px;
    list-style: disc;
}

.lra-tips-box li {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.7;
}

.lra-tips-box li::marker {
    color: #C0392B;
    font-weight: 600;
}

.lra-tips-box kbd {
    display: inline-block;
    padding: 0 4px;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 3px;
    font-size: 10px;
    font-family: monospace;
    background: #fff;
    color: #334155;
}

/* ── 右栏：申请结果 ──────────────────────────────────────── */
.lra-result-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    overflow: hidden;
}

.lra-result-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.lra-result-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.lra-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lra-regenerate-btn {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s;
}

.lra-regenerate-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.lra-regenerate-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lra-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.lra-result-body::-webkit-scrollbar { width: 5px; }
.lra-result-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.lra-result-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 占位提示 */
.lra-result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px;
}

.lra-placeholder-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: lraFloat 3s ease-in-out infinite;
}

@keyframes lraFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.lra-placeholder-title {
    font-size: 17px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 8px;
}

.lra-placeholder-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 2px 0;
}

/* 加载动画 */
.lra-result-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lra-loading-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.lra-loading-dots span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    animation: lraBounce 1.2s ease-in-out infinite;
}

.lra-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.lra-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lraBounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1.1); opacity: 1; }
}

.lra-loading-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
    margin: 0 0 6px;
}

.lra-loading-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* 错误区域 */
.lra-result-error-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── 结果内容渲染 ─────────────────────────────────────────── */
.lra-result-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: lraSlideIn 0.35s ease both;
}

@keyframes lraSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Meta 区域 */
.lra-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.lra-meta-subject {
    font-size: 13px;
    font-weight: 700;
    color: #0f766e;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 14px;
}

.lra-meta-format {
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 3px 9px;
    border-radius: 12px;
}

.lra-meta-style {
    font-size: 12px;
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
    padding: 3px 9px;
    border-radius: 12px;
}

.lra-meta-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

/* 邮件主题行 */
.lra-email-subject {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0fdf4, #f0f9ff);
    border: 1px solid #bae6fd;
    border-radius: 7px;
    margin-bottom: 10px;
    font-size: 13px;
}

.lra-subject-label {
    font-weight: 700;
    color: #0f766e;
    white-space: nowrap;
    font-size: 12px;
}

.lra-subject-text {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.5;
}

/* 正文内容 */
.lra-result-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0f766e;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.85;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 12px;
}

.lra-result-content strong {
    color: #8B1A1A;
    font-weight: 700;
}

/* 温馨提示 */
.lra-tips-section {
    background: linear-gradient(135deg, #fefce8, #f0f9ff);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
}

.lra-tips-title {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
}

.lra-tips-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.lra-tips-list li {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.lra-tips-list li::marker {
    color: #C0392B;
    font-weight: 600;
}

/* 错误卡片 */
.lra-error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    background: #fff8f8;
    border: 1px solid #fecaca;
    border-radius: 10px;
    text-align: center;
}

.lra-error-icon { font-size: 40px; margin-bottom: 10px; }

.lra-error-msg {
    color: #ef4444;
    font-size: 14px;
    margin: 0 0 6px;
}

.lra-error-hint {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 0 12px;
}

.lra-error-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(2,132,199,0.25);
}

.lra-error-retry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(2,132,199,0.35);
}

/* ── 示例模态框 ──────────────────────────────────────────── */
.lra-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9100;
    backdrop-filter: blur(2px);
}

.lra-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 9200;
    width: 620px;
    max-width: 94vw;
    max-height: 80vh;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.lra-modal.show { display: flex; }
.lra-modal-overlay.show { display: block; }

.lra-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.lra-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.lra-modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    transition: all 0.15s;
}

.lra-modal-close:hover { background: #f1f5f9; color: #334155; }

.lra-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.lra-modal-body::-webkit-scrollbar { width: 5px; }
.lra-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.lra-modal-body::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* 示例网格 */
.lra-example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lra-example-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #f8fafc;
}

.lra-example-card:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(2,132,199,0.12);
}

.lra-example-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.lra-example-info { flex: 1; min-width: 0; }

.lra-example-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3px;
}

.lra-example-desc {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lra-example-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.lra-example-badge {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    white-space: nowrap;
}

/* ── 响应式 ──────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lra-history-panel { display: none; }
}

@media (max-width: 680px) {
    .lra-input-panel {
        width: 260px;
        min-width: 220px;
    }
    .lra-type-grid { grid-template-columns: repeat(4, 1fr); }
    .lra-example-grid { grid-template-columns: 1fr; }
}

/* ── 打印样式 ─────────────────────────────────────────────── */
@media print {
    .lra-toolbar,
    .lra-history-panel,
    .lra-input-panel,
    #lraResultPlaceholder,
    #lraResultLoading,
    #lraResultError,
    .lra-result-header .lra-result-actions {
        display: none !important;
    }

    .lra-container {
        height: auto !important;
        border: none !important;
        box-shadow: none !important;
    }

    .lra-main-content {
        display: block !important;
    }

    .lra-result-panel {
        width: 100% !important;
    }

    .lra-result-body {
        overflow: visible !important;
        height: auto !important;
    }

    #lraResultContent {
        display: block !important;
    }

    .lra-result-content {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        border-left: 3px solid #0f766e !important;
    }
}
