/* 页面标题和操作栏 */
@media (max-width: 768px) {
    .mobile-hidden { display: none !important; }
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: #262626;
}

.action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 14px;
}

.search-box input {
    padding: 8px 12px 8px 36px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    width: 280px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #1890ff;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
}

.btn-success {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #fff;
}

.btn-success:hover {
    filter: brightness(.98);
}

/* 工作流页面主要内容区域 */
.workflow-main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 底部分页容器（非grid） */
.bottom-pagination {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0px;
}

/* 复用分页按钮样式（若中部分页被删除，这里也能生效） */
.bottom-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 兼容新的分页HTML结构 */
.bottom-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bottom-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.bottom-pagination .page-numbers:hover {
    background: #eaeaea;
}

.bottom-pagination .page-numbers.current {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}

.bottom-pagination .prev.page-numbers,
.bottom-pagination .next.page-numbers {
    padding: 0 12px;
}

/* 旧结构（向后兼容） */
.bottom-pagination .page-number,
.bottom-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    border: 1px solid #eee;
}

.bottom-pagination .page-btn i {
    font-size: 16px;
}

.bottom-pagination .page-number:hover,
.bottom-pagination .page-btn:hover {
    background: #eaeaea;
}

.bottom-pagination .page-number.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.25);
}

.bottom-pagination .page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.bottom-pagination .ellipsis {
    color: #999;
    padding: 0 4px;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 工作流卡片 */
.workflow-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* 卡片内链接无下划线并继承文字颜色 */
.workflow-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.workflow-card a:hover {
    text-decoration: none;
}

.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-header {
    position: absolute;
    top: 1px;
    left: 12px;
    right: 12px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.vip-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b4513;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.95);
}

.normal-badge {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(82, 196, 26, 0.3);
}

.card-action {
    padding-top: 4px;
    color: #1890ff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.4);
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 6px;
}

.card-action:hover {
    color: #40a9ff;
    transform: scale(1.1);
}

.card-thumbnail {
    padding: 0 12px;
    margin-bottom: 12px;
    position: relative;
}

.card-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.card-thumbnail video {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #f5f5f5;
    display: block;
}

.card-content {
    padding: 0 12px 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-subtitle {
    font-size: 13px;
    color: #8c8c8c;
    margin-bottom: 8px;
    font-style: italic;
}

.card-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.card-author .time,
.card-author .price {
    display: inline-flex;
    align-items: center;
    gap: 6px;    
}

.card-author .time i {
    color: #999;
}

.card-author .price {
    color: #ff4d4f;
    font-weight: 600;
    font-size: 16px;
    
}

.card-author .price i {
    color: #ff4d4f;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .workflow-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        padding: 16px;
    }
    
    .action-bar {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .workflow-main-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.workflow-card {
    animation: fadeInUp 0.6s ease forwards;
}

.workflow-card:nth-child(1) { animation-delay: 0.1s; }
.workflow-card:nth-child(2) { animation-delay: 0.2s; }
.workflow-card:nth-child(3) { animation-delay: 0.3s; }
.workflow-card:nth-child(4) { animation-delay: 0.4s; }
.workflow-card:nth-child(5) { animation-delay: 0.5s; }
.workflow-card:nth-child(6) { animation-delay: 0.6s; }
.workflow-card:nth-child(7) { animation-delay: 0.7s; }
.workflow-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工作流页面专用滚动条样式 */

/* 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
