/* 6号助手配置商店 - 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }

/* 卡片悬停 */
.config-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.05);
}
.config-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(139,92,246,0.1);
}

/* 按钮 */
.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    transition: all 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    box-shadow: 0 4px 15px rgba(139,92,246,0.4);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}
.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transition: all 0.2s;
}
.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(239,68,68,0.4);
}
.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    transition: all 0.2s;
}

/* 导航高亮 */
.nav-link.active {
    color: #c4b5fd !important;
    position: relative;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    border-radius: 1px;
}

/* 输入框 */
.input-field {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    width: 100%;
    transition: all 0.2s;
    outline: none;
}
.input-field:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.input-field::placeholder { color: #6b7280; }

textarea.input-field { resize: vertical; min-height: 120px; }

/* 标签 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-purple { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.badge-green { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-yellow { background: rgba(245,158,11,0.15); color: #fcd34d; }
.badge-red { background: rgba(239,68,68,0.15); color: #fca5a5; }
.badge-gray { background: rgba(255,255,255,0.05); color: #9ca3af; }

/* Toast */
.toast {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    backdrop-filter: blur(12px);
    animation: slideIn 0.3s ease;
    max-width: 360px;
}
.toast-success { background: rgba(16,185,129,0.9); color: white; }
.toast-error { background: rgba(239,68,68,0.9); color: white; }
.toast-info { background: rgba(59,130,246,0.9); color: white; }

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Markdown渲染 */
.markdown-body { line-height: 1.7; color: #d1d5db; }
.markdown-body h1 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #f3f4f6; }
.markdown-body h2 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.625rem; color: #f3f4f6; }
.markdown-body h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem; color: #e5e7eb; }
.markdown-body p { margin: 0.5rem 0; }
.markdown-body ul, .markdown-body ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.markdown-body li { margin: 0.25rem 0; }
.markdown-body code { background: rgba(139,92,246,0.15); color: #c4b5fd; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.markdown-body pre { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 0.5rem; padding: 1rem; overflow-x: auto; margin: 0.75rem 0; }
.markdown-body pre code { background: none; padding: 0; }
.markdown-body blockquote { border-left: 3px solid #8b5cf6; padding-left: 1rem; margin: 0.75rem 0; color: #9ca3af; }
.markdown-body a { color: #a78bfa; text-decoration: underline; }
.markdown-body img { max-width: 100%; border-radius: 0.5rem; margin: 0.5rem 0; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.markdown-body th, .markdown-body td { border: 1px solid rgba(255,255,255,0.1); padding: 0.5rem 0.75rem; text-align: left; }
.markdown-body th { background: rgba(139,92,246,0.1); font-weight: 600; }

/* 模态框 */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 200;
    animation: fadeIn 0.2s ease;
}
.modal-content {
    background: #1a1a2e; border: 1px solid rgba(255,255,255,0.1); border-radius: 1rem;
    padding: 1.5rem; width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto;
    animation: scaleIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 加载动画 */
.spinner {
    width: 24px; height: 24px; border: 3px solid rgba(139,92,246,0.2);
    border-top-color: #8b5cf6; border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 空状态 */
.empty-state {
    text-align: center; padding: 4rem 2rem; color: #6b7280;
}
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
