/* public/assets/css/tools/ai-hub.css */

/* 顶部导航栏模仿 */
.ai-hub-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.ai-hub-nav .fa-bolt {
    color: #eab308; /* Tailwind yellow-500 */
    font-size: 1.5rem;
}
.ai-hub-nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

/* 选项卡按钮群 */
.ai-tabs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}
.ai-tab-btn {
    padding: 8px 24px;
    border-radius: 9999px; /* 胶囊圆角 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-tab-btn:hover {
    background: var(--bg-body);
}
.ai-tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 工作区网格 (桌面双列，移动单列) */
.ai-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 1024px) {
    .ai-workspace {
        grid-template-columns: 1fr 1fr;
    }
}

/* 卡片样式 */
.ai-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.ai-card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 输入与输出域 */
.ai-textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-main);
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}
.ai-textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}
.ai-result-box {
    flex: 1;
    min-height: 300px;
    padding: 16px;
    background: var(--bg-body);
    border: 1px dashed var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-main);
    line-height: 1.6;
    overflow-y: auto;
}

/* 操作按钮 */
.ai-magic-btn {
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 32px;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ai-magic-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.ai-magic-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.ai-copy-btn {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ai-copy-btn:hover {
    color: var(--primary-hover, #2563eb);
}

/* 动画加载点 */
.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}