/* =============================================
   创业灵感 - startup_inspiration.css
   主题色：科技蓝 #3b82f6 / 橙金 #f59e0b
   三栏布局：历史 | 表单 | 结果
   ============================================= */

/* ========== 主容器 ========== */
.si-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: #f0f7ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.12);
    transition: all 0.3s ease;
}

.si-container.fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    min-height: unset;
}

/* ========== 顶部工具栏 ========== */
.si-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 12px;
    min-height: 40px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0ea5e9 100%);
    color: #fff;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.45);
    flex-shrink: 0;
}

.si-toolbar .toolbar-group {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.si-toolbar .toolbar-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.8px;
    margin-right: 4px;
}

.si-toolbar .toolbar-btn {
    padding: 4px 11px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #1d4ed8;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.5;
}

.si-toolbar .toolbar-btn:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.si-toolbar .toolbar-btn:active:not(:disabled) { transform: translateY(0); }

.si-toolbar .toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.si-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    color: #92400e;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.4);
}

.si-toolbar .toolbar-btn-primary:hover:not(:disabled) {
    background: #fff;
    color: #b45309;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.6);
}

/* 生成中 shimmer 动画 */
.si-toolbar .toolbar-btn-primary.si-btn-loading {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 35%, #dbeafe 65%, #bfdbfe 100%);
    background-size: 200% 100%;
    animation: siBtnShimmer 1.4s ease-in-out infinite;
    cursor: not-allowed;
    color: #1d4ed8;
}

body.dark .si-toolbar .toolbar-btn-primary.si-btn-loading {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 35%, #1e3a8a 65%, #1e40af 100%);
    background-size: 200% 100%;
    animation: siBtnShimmer 1.4s ease-in-out infinite;
    cursor: not-allowed;
    color: #bfdbfe;
}

@keyframes siBtnShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 三栏主内容 ========== */
.si-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f0f7ff;
}

/* ========== 左栏：历史记录 ========== */
.si-history-panel {
    width: 185px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #bfdbfe;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.si-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: linear-gradient(to bottom, #eff6ff 0%, #f0f7ff 100%);
    border-bottom: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.si-history-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

.si-history-count {
    font-size: 11px;
    color: #3b82f6;
    font-weight: 400;
}

.si-history-clear-btn {
    background: #eff6ff;
    border: none;
    color: #2563eb;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
    white-space: nowrap;
}
.si-history-clear-btn:hover { background: #bfdbfe; }

.si-history-search {
    padding: 7px;
    border-bottom: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.si-history-search input {
    width: 100%;
    padding: 5px 9px;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e3a8a;
    background: #eff6ff;
}

.si-history-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.si-history-search input::placeholder { color: #93c5fd; }

.si-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.si-history-empty {
    text-align: center;
    color: #3b82f6;
    font-size: 12px;
    padding: 24px 8px;
    line-height: 1.8;
    opacity: 0.7;
}

.si-history-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    gap: 6px;
}

.si-history-item:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateX(2px);
}

.si-history-item.active {
    background: #dbeafe;
    border-color: #3b82f6;
    box-shadow: inset 3px 0 0 #3b82f6, 0 1px 4px rgba(59, 130, 246, 0.25);
}

.si-history-item-icon { font-size: 14px; flex-shrink: 0; }

.si-history-item-main { flex: 1; min-width: 0; }

.si-history-item-name {
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.si-history-item-meta {
    font-size: 11px;
    color: #2563eb;
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
}

.si-history-item-type {
    background: #bfdbfe;
    color: #1d4ed8;
    border-radius: 3px;
    padding: 0 4px;
    font-size: 10px;
}

.si-history-item-del {
    width: 18px; height: 18px;
    background: #fff0f0;
    color: #ef4444;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.si-history-item:hover .si-history-item-del { opacity: 1; pointer-events: auto; }
.si-history-item-del:hover { background: #ef4444; color: white; }

.si-history-list::-webkit-scrollbar { width: 4px; }
.si-history-list::-webkit-scrollbar-track { background: transparent; }
.si-history-list::-webkit-scrollbar-thumb { background: #8a2be2; border-radius: 2px; }
.si-history-list::-webkit-scrollbar-thumb:hover { background: #6a1cb5; }

/* ========== 中栏：表单区域 ========== */
.si-form-panel {
    width: 270px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #bfdbfe;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.si-panel-header {
    padding: 12px 14px;
    background: linear-gradient(to bottom, #eff6ff 0%, #f0f7ff 100%);
    border-bottom: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.si-panel-header h3 {
    margin: 0 0 3px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

.si-panel-tip { font-size: 11px; color: #2563eb; }

.si-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.si-form-body::-webkit-scrollbar { width: 4px; }
.si-form-body::-webkit-scrollbar-track { background: transparent; }
.si-form-body::-webkit-scrollbar-thumb { background: #8a2be2; border-radius: 2px; }
.si-form-body::-webkit-scrollbar-thumb:hover { background: #6a1cb5; }

.si-form-group { margin-bottom: 14px; }

.si-form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.si-required {
    color: #3b82f6;
    font-weight: 700;
}

.si-optional-tag {
    font-weight: 400;
    font-size: 10px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0 5px;
    border-radius: 4px;
}

.si-shortcut-hint {
    font-weight: 400;
    font-size: 10px;
    color: #2563eb;
    opacity: 0.7;
    margin-left: 2px;
}

.si-form-input {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e3a8a;
    background: #eff6ff;
}

.si-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.si-form-input::placeholder { color: #93c5fd; opacity: 0.8; }

.si-form-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    resize: vertical;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #1e3a8a;
    background: #eff6ff;
    font-family: inherit;
    line-height: 1.6;
    min-height: 70px;
}

.si-form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    background: #fff;
}

.si-form-textarea::placeholder { color: #93c5fd; opacity: 0.8; }

.si-char-counter {
    text-align: right;
    font-size: 11px;
    color: #2563eb;
    margin-top: 3px;
}

/* 行业标签 */
.si-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.si-field-tag {
    display: inline-block;
    padding: 3px 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 11px;
    color: #1d4ed8;
    cursor: pointer;
    transition: all 0.18s;
    user-select: none;
}

.si-field-tag:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.si-field-tag.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e3a8a;
    font-weight: 600;
}

/* 资金选项 */
.si-budget-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.si-budget-btn {
    padding: 5px 10px;
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.18s;
    background: #eff6ff;
    user-select: none;
    font-size: 11px;
    font-weight: 500;
    color: #1d4ed8;
    white-space: nowrap;
}

.si-budget-btn:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.si-budget-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
}

/* 团队规模选项 */
.si-team-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.si-team-btn {
    padding: 7px 12px;
    border: 1.5px solid #bfdbfe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s;
    background: #eff6ff;
    user-select: none;
    font-size: 11px;
    font-weight: 500;
    color: #1d4ed8;
}

.si-team-btn:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.si-team-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
}

/* 创业偏好选项 */
.si-pref-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.si-pref-btn {
    padding: 6px 4px;
    border: 1.5px solid #bfdbfe;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.18s;
    background: #eff6ff;
    user-select: none;
    font-size: 11px;
    font-weight: 500;
    color: #1d4ed8;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-pref-btn:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.si-pref-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
}

/* 中栏提交按钮 */
.si-form-submit-btn {
    width: 100%;
    padding: 11px 0;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.35);
    margin-bottom: 14px;
}

.si-form-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #38bdf8 100%);
    box-shadow: 0 5px 16px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.si-form-submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.si-form-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.si-form-submit-btn.si-btn-loading {
    background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 35%, #dbeafe 65%, #bfdbfe 100%);
    background-size: 200% 100%;
    animation: siBtnShimmer 1.4s ease-in-out infinite;
    color: #1d4ed8;
    cursor: not-allowed;
}

body.dark .si-form-submit-btn.si-btn-loading {
    background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 35%, #1e3a8a 65%, #1e40af 100%);
    background-size: 200% 100%;
    animation: siBtnShimmer 1.4s ease-in-out infinite;
    color: #bfdbfe;
    cursor: not-allowed;
}

/* ========== 右栏：生成结果 ========== */
.si-result-panel {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.si-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(to bottom, #eff6ff 0%, #f0f7ff 100%);
    border-bottom: 1px solid #bfdbfe;
    flex-shrink: 0;
}

.si-result-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

.si-result-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.si-meta-badge {
    display: inline-block;
    padding: 2px 9px;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}

.si-refresh-btn {
    padding: 3px 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 4px;
    color: #2563eb;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.18s;
    font-weight: 500;
}

.si-refresh-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
}

.si-result-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.si-result-body::-webkit-scrollbar { width: 5px; }
.si-result-body::-webkit-scrollbar-track { background: transparent; }
.si-result-body::-webkit-scrollbar-thumb { background: #8a2be2; border-radius: 3px; }
.si-result-body::-webkit-scrollbar-thumb:hover { background: #6a1cb5; }

/* ========== 占位 / 加载 / 错误 ========== */
.si-placeholder,
.si-loading {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 300px;
}

.si-placeholder-icon {
    font-size: 52px;
    margin-bottom: 18px;
    animation: siRocketBounce 2.5s ease-in-out infinite;
}

@keyframes siRocketBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30%       { transform: translateY(-12px) scale(1.06) rotate(-5deg); }
    60%       { transform: translateY(-4px) scale(1.02) rotate(0deg); }
}

.si-placeholder-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.si-placeholder-desc {
    font-size: 13px;
    color: #2563eb;
    margin-bottom: 4px;
}

.si-placeholder-sub {
    margin-top: 16px;
    font-size: 13px;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* 加载动画 */
.si-loading-icons {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.si-loading-icons span {
    font-size: 28px;
    animation: siLoadIcon 1.2s ease-in-out infinite;
}

.si-loading-icons span:nth-child(1) { animation-delay: 0s; }
.si-loading-icons span:nth-child(2) { animation-delay: 0.3s; }
.si-loading-icons span:nth-child(3) { animation-delay: 0.6s; }

@keyframes siLoadIcon {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50%       { opacity: 1;   transform: translateY(-12px); }
}

.si-loading-text {
    font-size: 14px;
    color: #1e3a8a;
    font-weight: 500;
    animation: siTextPulse 1.8s ease-in-out infinite;
}

@keyframes siTextPulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1; }
}

/* 输入框抖动动画（校验失败提示） */
@keyframes siInputShake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(5px); }
    45%       { transform: translateX(-4px); }
    60%       { transform: translateX(3px); }
    75%       { transform: translateX(-2px); }
    90%       { transform: translateX(1px); }
}

.si-input-shake {
    animation: siInputShake 0.45s ease;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

/* 轻量 Toast 提示 */
.si-tip-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
    padding: 9px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.45);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    white-space: nowrap;
}

.si-tip-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 结果内容淡入动画 */
.si-result-content {
    padding: 20px 24px;
    flex: 1;
}

.si-result-content.si-animate-in {
    animation: siContentFadeIn 0.4s ease-out;
}

@keyframes siContentFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== AI 生成创业灵感卡片样式 ========== */
.si-result-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 760px;
}

.si-idea-card {
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.07);
}

.si-idea-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #1d4ed8, #0ea5e9);
    border-radius: 12px 0 0 12px;
}

/* 排名色条：第 2-5 张卡片依次变色，增加视觉层次 */
.si-result-list .si-idea-card:nth-child(2)::before { background: linear-gradient(to bottom, #059669, #34d399); }
.si-result-list .si-idea-card:nth-child(3)::before { background: linear-gradient(to bottom, #7c3aed, #a78bfa); }
.si-result-list .si-idea-card:nth-child(4)::before { background: linear-gradient(to bottom, #dc2626, #f87171); }
.si-result-list .si-idea-card:nth-child(5)::before { background: linear-gradient(to bottom, #d97706, #fbbf24); }

.si-idea-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.14);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.si-idea-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.si-idea-rank {
    font-size: 15px;
    font-weight: 800;
    color: #1d4ed8;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 6px;
    padding: 3px 8px;
    flex-shrink: 0;
    border: 1px solid #93c5fd;
}

.si-idea-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    flex: 1;
}

.si-idea-badge {
    font-size: 11px;
    padding: 2px 9px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 10px;
    border: 1px solid #fbbf24;
    font-weight: 600;
    flex-shrink: 0;
}

.si-idea-tagline {
    font-size: 13px;
    color: #1d4ed8;
    font-weight: 600;
    margin-bottom: 14px;
    padding: 8px 12px;
    background: #dbeafe;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    line-height: 1.6;
}

.si-idea-section {
    margin-bottom: 10px;
}

.si-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 5px;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.si-section-val {
    display: block;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    margin-top: 4px;
}

.si-bullet-list {
    margin: 5px 0 0 0;
    padding-left: 18px;
    list-style: none;
}

.si-bullet-list li {
    font-size: 13px;
    color: #334155;
    line-height: 1.7;
    position: relative;
    padding-left: 2px;
}

.si-bullet-list li::before {
    content: '▸';
    color: #3b82f6;
    position: absolute;
    left: -14px;
    font-size: 11px;
}

.si-idea-risk {
    font-size: 12px;
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 7px 12px;
    margin-top: 8px;
    line-height: 1.6;
}

.si-result-tip {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border: 1.5px solid #93c5fd;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.7;
    font-style: italic;
    position: relative;
}

.si-result-tip::before {
    content: '🎯';
    margin-right: 6px;
}

/* ========== 错误状态 ========== */
#siResultError {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.si-result-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    border-left: 4px solid #ef4444;
    margin: 12px;
    border-radius: 6px;
    background: #fff5f5;
    min-height: 200px;
}

.si-error-icon { font-size: 36px; margin-bottom: 12px; }

.si-error-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.si-error-msg {
    font-size: 14px;
    color: #dc2626;
    font-weight: 500;
    margin: 0;
}

.si-error-tip {
    font-size: 12px;
    color: #2563eb;
    margin: 0;
}

.si-retry-btn {
    margin-top: 12px;
    padding: 7px 20px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.si-retry-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* ========== 示例模态框 ========== */
.si-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
}

.si-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 580px;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    z-index: 10001;
    flex-direction: column;
    overflow: hidden;
}

.si-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0ea5e9 100%);
    color: #fff;
    flex-shrink: 0;
}

.si-modal-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.si-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.si-modal-close:hover { background: rgba(255, 255, 255, 0.35); }

.si-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.si-modal-body::-webkit-scrollbar { width: 5px; }
.si-modal-body::-webkit-scrollbar-track { background: transparent; }
.si-modal-body::-webkit-scrollbar-thumb { background: #8a2be2; border-radius: 3px; }
.si-modal-body::-webkit-scrollbar-thumb:hover { background: #6a1cb5; }

.si-example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.si-example-card {
    padding: 12px 14px;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #eff6ff;
}

.si-example-card:hover {
    border-color: #3b82f6;
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.si-example-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.si-example-card-desc {
    font-size: 11px;
    color: #2563eb;
    line-height: 1.5;
}

/* ========== 暗黑模式 ========== */
body.dark .si-container {
    background: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark .si-toolbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0c4a6e 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark .si-toolbar .toolbar-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #93c5fd;
}

body.dark .si-toolbar .toolbar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

body.dark .si-toolbar .toolbar-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #bfdbfe;
}

body.dark .si-main-content { background: #0f172a; }

body.dark .si-history-panel,
body.dark .si-form-panel,
body.dark .si-result-panel {
    background: #1e293b;
    border-color: #1e40af;
}

body.dark .si-history-header,
body.dark .si-panel-header,
body.dark .si-result-header {
    background: linear-gradient(to bottom, #1e3a8a 0%, #1e293b 100%);
    border-color: #1e40af;
}

body.dark .si-history-header h3,
body.dark .si-panel-header h3,
body.dark .si-result-header h3 { color: #bfdbfe; }

body.dark .si-panel-tip { color: #60a5fa; }

body.dark .si-history-count { color: #60a5fa; }

body.dark .si-history-clear-btn {
    background: #1e3a8a;
    color: #93c5fd;
}
body.dark .si-history-clear-btn:hover { background: #1d4ed8; }

body.dark .si-history-search input {
    background: #0f172a;
    border-color: #1e40af;
    color: #bfdbfe;
}
body.dark .si-history-search input::placeholder { color: rgba(59, 130, 246, 0.4); }

body.dark .si-history-item {
    background: #0f172a;
    border-color: #1e40af;
}
body.dark .si-history-item:hover { background: #1e3a8a; border-color: #2563eb; }
body.dark .si-history-item.active { background: #1e3a8a; border-color: #3b82f6; box-shadow: inset 3px 0 0 #3b82f6; }
body.dark .si-history-item-name { color: #bfdbfe; }
body.dark .si-history-item-meta { color: #60a5fa; }
body.dark .si-history-item-type { background: #1e40af; color: #93c5fd; }
body.dark .si-history-item-del { background: rgba(239, 68, 68, 0.15); }
body.dark .si-history-item-del:hover { background: #ef4444; color: #fff; }

body.dark .si-history-list::-webkit-scrollbar-thumb { background: #9d4edd; }
body.dark .si-history-list::-webkit-scrollbar-thumb:hover { background: #7b2fbe; }

body.dark .si-form-body::-webkit-scrollbar-thumb { background: #9d4edd; }
body.dark .si-form-body::-webkit-scrollbar-thumb:hover { background: #7b2fbe; }

body.dark .si-form-label { color: #bfdbfe; }
body.dark .si-required { color: #60a5fa; }
body.dark .si-optional-tag { background: #1e40af; color: #93c5fd; }
body.dark .si-shortcut-hint { color: #60a5fa; }

body.dark .si-form-input,
body.dark .si-form-textarea {
    background: #0f172a;
    border-color: #1e40af;
    color: #bfdbfe;
}
body.dark .si-form-input:focus,
body.dark .si-form-textarea:focus {
    border-color: #3b82f6;
    background: #1e293b;
}
body.dark .si-form-input::placeholder,
body.dark .si-form-textarea::placeholder { color: rgba(59, 130, 246, 0.55); opacity: 1; }

body.dark .si-char-counter { color: #60a5fa; }

body.dark .si-field-tag {
    background: #0f172a;
    border-color: #1e40af;
    color: #60a5fa;
}
body.dark .si-field-tag:hover { background: #1e3a8a; }
body.dark .si-field-tag.active { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); border-color: #3b82f6; color: #bfdbfe; }

body.dark .si-budget-btn,
body.dark .si-team-btn,
body.dark .si-pref-btn {
    background: #0f172a;
    border-color: #1e40af;
    color: #60a5fa;
}
body.dark .si-budget-btn:hover,
body.dark .si-team-btn:hover,
body.dark .si-pref-btn:hover { background: #1e3a8a; border-color: #2563eb; }
body.dark .si-budget-btn.selected,
body.dark .si-team-btn.selected,
body.dark .si-pref-btn.selected {
    background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
    border-color: #3b82f6;
    color: #bfdbfe;
}

body.dark .si-form-submit-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0c4a6e 100%);
    box-shadow: 0 3px 10px rgba(29, 78, 216, 0.5);
}
body.dark .si-form-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #0ea5e9 100%);
}

body.dark .si-result-body::-webkit-scrollbar-thumb { background: #9d4edd; }
body.dark .si-result-body::-webkit-scrollbar-thumb:hover { background: #7b2fbe; }

body.dark .si-placeholder-title { color: #bfdbfe; }
body.dark .si-placeholder-desc { color: #60a5fa; }
body.dark .si-placeholder-sub { background: #1e3a8a; color: #93c5fd; border-color: #1e40af; }

body.dark .si-loading-text { color: #93c5fd; }

body.dark .si-meta-badge { background: #1e3a8a; color: #93c5fd; border-color: #1e40af; }
body.dark .si-refresh-btn { background: #0f172a; border-color: #1e40af; color: #60a5fa; }
body.dark .si-refresh-btn:hover { background: #1e3a8a; }

/* 暗黑：AI 生成卡片 */
body.dark .si-idea-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #1e40af;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
body.dark .si-idea-card:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%);
}
body.dark .si-idea-card::before { background: linear-gradient(to bottom, #1d4ed8, #0ea5e9); }
body.dark .si-result-list .si-idea-card:nth-child(2)::before { background: linear-gradient(to bottom, #059669, #10b981); }
body.dark .si-result-list .si-idea-card:nth-child(3)::before { background: linear-gradient(to bottom, #6d28d9, #8b5cf6); }
body.dark .si-result-list .si-idea-card:nth-child(4)::before { background: linear-gradient(to bottom, #b91c1c, #ef4444); }
body.dark .si-result-list .si-idea-card:nth-child(5)::before { background: linear-gradient(to bottom, #b45309, #f59e0b); }
body.dark .si-idea-title { color: #bfdbfe; }
body.dark .si-idea-rank { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); color: #93c5fd; border-color: #2563eb; }
body.dark .si-idea-badge { background: linear-gradient(135deg, #451a03, #78350f); color: #fde68a; border-color: #b45309; }
body.dark .si-idea-tagline { background: #1e3a8a; color: #93c5fd; border-left-color: #3b82f6; }
body.dark .si-section-label { background: #1e293b; color: #60a5fa; border-color: #1e40af; }
body.dark .si-section-val { color: #cbd5e1; }
body.dark .si-bullet-list li { color: #cbd5e1; }
body.dark .si-bullet-list li::before { color: #60a5fa; }
body.dark .si-idea-risk { background: linear-gradient(135deg, #1c1a09, #2d2506); color: #fde68a; border-color: #b45309; }
body.dark .si-result-tip { background: linear-gradient(135deg, #1e3a8a, #1e293b); color: #93c5fd; border-color: #1e40af; }

/* 暗黑：错误 */
body.dark .si-result-error { background: #1c0a0a; border-left-color: #dc2626; }
body.dark .si-error-msg { color: #f87171; }
body.dark .si-error-tip { color: #60a5fa; }

/* 暗黑：模态框 */
body.dark .si-modal { background: #1e293b; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
body.dark .si-modal-header { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
body.dark .si-modal-body::-webkit-scrollbar-thumb { background: #9d4edd; }
body.dark .si-modal-body::-webkit-scrollbar-thumb:hover { background: #7b2fbe; }
body.dark .si-example-card { background: #0f172a; border-color: #1e40af; }
body.dark .si-example-card:hover { background: #1e3a8a; border-color: #2563eb; }
body.dark .si-example-card-name { color: #bfdbfe; }
body.dark .si-example-card-desc { color: #60a5fa; }

/* ========== Toast 暗黑 ========== */
body.dark .si-tip-toast {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .si-history-panel { display: none; }
    .si-form-panel { width: 260px; }
}

@media (max-width: 639px) {
    .si-main-content { flex-direction: column; }
    .si-form-panel { width: 100%; max-height: 320px; border-right: none; border-bottom: 1px solid #bfdbfe; }
    body.dark .si-form-panel { border-bottom-color: #1e40af; }
    .si-result-panel { min-height: 300px; }
    .si-toolbar { padding: 4px 8px; }
    .si-container { height: unset; min-height: unset; }
    .si-example-grid { grid-template-columns: 1fr; }
}
