/* 说明步骤样式 */
.instruction-step {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1890ff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    font-size: 12px;
    margin-right: 12px;
}

.step-content {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 40px);
}

.step-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.step-content p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 步骤图片样式 */
.step-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 返回按钮 */
.back-button {
    margin-bottom: 20px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

/* 工作流详情卡片 */
.workflow-detail-card {
    background: linear-gradient(135deg, #1890ff 0%, #0771a6 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(24, 144, 255, 0.3);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 左侧信息区域 */
.detail-info {
    color: white;
}

.author-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-details {
    flex: 1;
}

.workflow-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.author-name {
    font-weight: 500;
}

.publish-date {
    opacity: 0.8;
}

/* 工作流标签 */
.workflow-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.price-tag {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.tag i {
    font-size: 12px;
}

/* 工作流描述 */
.workflow-description {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 右侧视频播放器 */
.video-player {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: 60vh;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.overlay-emoji {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* 工作流列表区域 */
.workflow-list-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.header-left {
    flex: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #262626;
    margin-bottom: 8px;
}

.section-title i {
    color: #1890ff;
    font-size: 20px;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.btn-instructions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-instructions:hover {
    background: #40a9ff;
    transform: translateY(-1px);
}

/* 工作流列表 */
.workflow-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e8eaec;
    transition: all 0.3s ease;
}

.workflow-item:hover {
    background: #f0f8ff;
    border-color: #91d5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.item-index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.item-avatar {
    flex-shrink: 0;
}

.item-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e8eaec;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 4px;
    line-height: 1.4;
}

.item-subtitle {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;
    line-height: 1.4;
}

.item-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.meta-item i {
    font-size: 10px;
}

.item-pricing {
    text-align: right;
    margin-right: 16px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #1890ff;
    margin-bottom: 2px;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.btn-unlock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-unlock:hover {
    background: linear-gradient(135deg, #40a9ff, #69c0ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-container {
        max-width: 500px;
        margin: 0 auto;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .workflow-detail-main-content {
        padding: 16px;
    }
    
    .workflow-detail-card {
        padding: 20px;
    }
    
    .workflow-list-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .workflow-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .item-pricing {
        text-align: left;
        margin-right: 0;
        margin-bottom: 12px;
    }
    
    .btn-unlock {
        align-self: stretch;
        justify-content: center;
    }
    
    .workflow-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
    /* 移动端：标题图标与文字保持一行，仅让VIP提示换行到下一行 */
    .section-title {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .section-title .vip-text {
        flex-basis: 100%;
        order: 2;
        margin-top: 4px;
    }
    
    /* 移动端图片样式优化 */
    .step-content img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }
    
    .instruction-step {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .step-content {
        width: calc(100% - 36px);
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    .workflow-tags {
        flex-direction: column;
        gap: 8px;
    }
    
    .author-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* 动画效果 */
.workflow-detail-card {
    animation: slideInDown 0.6s ease;
}

.workflow-list-section {
    animation: slideInUp 0.6s ease 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工作流详情页面专用滚动条样式 */
