/* AIWorkflowNews 组件样式 */

/* 新闻卡片组件 */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
    padding: 20px;
}

.news-card .card-title {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #2c3e50;
}

.news-card .card-title a {
    color: inherit;
    text-decoration: none;
}

.news-card .card-title a:hover {
    color: #0d6efd;
}

.news-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.news-source {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-date {
    color: #adb5bd;
}

.news-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.news-actions .btn {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-actions .btn i {
    font-size: 0.9rem;
}

/* 搜索过滤器组件 */
.search-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-filters .form-control,
.search-filters .form-select {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
}

.search-filters .form-control:focus,
.search-filters .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-filters .btn {
    border-radius: 8px;
    padding: 8px 16px;
}

/* 加载更多按钮 */
.load-more-section {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.load-more-btn:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* 加载动画 */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Toast 通知组件 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
}

.toast {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.toast-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* 用户状态组件 */
.user-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 统计卡片组件 */
.stats-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航标签组件 */
.nav-tabs-custom {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.nav-tabs-custom .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.nav-tabs-custom .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.nav-tabs-custom .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: none;
}

/* 表单组件 */
.form-floating-custom {
    position: relative;
    margin-bottom: 20px;
}

.form-floating-custom .form-control {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 12px 16px;
    font-size: 1rem;
}

.form-floating-custom .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-floating-custom label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-floating-custom .form-control:focus + label,
.form-floating-custom .form-control:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 0.8rem;
    color: #0d6efd;
    transform: translateY(0);
}

/* 按钮组件 */
.btn-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-primary-custom {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    background: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

/* 徽章组件 */
.badge-custom {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-success-custom {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.badge-warning-custom {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* 分页组件 */
.pagination-custom {
    justify-content: center;
    margin-top: 30px;
}

.pagination-custom .page-link {
    border: none;
    color: #6c757d;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background: #0d6efd;
    color: white;
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

/* 模态框组件 */
.modal-content-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header-custom {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.modal-body-custom {
    padding: 20px;
}

.modal-footer-custom {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

/* 下拉菜单组件 */
.dropdown-menu-custom {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.dropdown-item-custom {
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.dropdown-item-custom:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

/* 进度条组件 */
.progress-custom {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-bar-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.6s ease;
}

/* 标签云组件 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag-item {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #0d6efd;
    color: white;
    text-decoration: none;
}

/* 空状态组件 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* 侧边栏组件 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-list a:hover {
    color: #0d6efd;
}

/* 面包屑组件 */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.breadcrumb-custom .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #adb5bd;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
} 