/* 商业版功能竖向TAB模块样式 */
.commercial-features-tab {
    background: white;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-main-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* TAB容器 */
.tab-container {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 550px;
}

/* 左侧竖向TAB栏 */
.tab-sidebar {
    flex: 0 0 240px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 8px;
}

/* TAB项 */
.tab-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.tab-item:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.tab-item.active {
    background: #3b82f6;
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* TAB图标 */
.tab-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.tab-item:hover .tab-icon {
    transform: scale(1.1);
}

/* TAB标题 */
.tab-title {
    font-weight: 600;
    font-size: 14px;
}

/* 右侧内容展示区 */
.tab-content-container {
    flex: 1;
    padding: 32px;
    background: white;
}

/* TAB内容 */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

/* 渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容头部 */
.content-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.content-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.content-icon {
    font-size: 32px;
    opacity: 0.8;
}

.feature-icon-large {
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 内容描述 */
.content-description {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 优化的规模化功能 - 同行布局样式 */

/* 同行功能容器 */
.inline-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* 同行功能卡片 */
.inline-feature {
    flex: 1;
    min-width: 300px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.inline-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

/* 不同功能卡片的差异化设计 */
.feature-card-1 {
    border-left: 4px solid #3b82f6;
}

.feature-card-2 {
    border-left: 4px solid #10b981;
}

.feature-card-3 {
    border-left: 4px solid #f59e0b;
}

/* 同行功能内容 */
.inline-feature-content {
    position: relative;
    z-index: 1;
}

/* 同行功能标题 */
.inline-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* 同行功能描述 */
.inline-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* 同行标签样式 */
.inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-tag {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

/* 标签样式1 - 完整提示词结构 */
.tag-style-1 .inline-tag {
    background: #eff6ff;
    color: #3b82f6;
    border: 1px solid #dbeafe;
}

.tag-style-1 .inline-tag:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.2);
}

/* 标签样式2 - 灵活参数配置 */
.tag-style-2 .inline-tag {
    font-weight: 600;
    font-size: 13px;
}

.required-tag {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.optional-tag {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.tag-style-2 .inline-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* 规模化使用支持 - 简化展示 */
.scaling-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.scaling-simple-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 16px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #fde68a;
    transition: all 0.3s ease;
}

.scaling-simple-tag:hover {
    background: #fde68a;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(251, 191, 36, 0.15);
}

/* 模式网格 */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.mode-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-card:hover {
    border-color: #3b82f6;
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15),
                0 4px 20px rgba(139, 92, 246, 0.1);
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.mode-card:hover .mode-icon {
    transform: scale(1.15) rotateY(180deg);
}

.mode-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.mode-description {
    color: #64748b;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

/* 批量与自动化 - 横向布局样式 */
.automation-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding: 32px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.automation-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.automation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    min-width: 140px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.automation-item:hover {
    transform: translateY(-8px);
}

.automation-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25),
                0 2px 8px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.automation-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.automation-item:hover .automation-icon {
    transform: scale(1.15);
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.35),
                0 4px 16px rgba(139, 92, 246, 0.25);
}

.automation-item:hover .automation-icon::before {
    left: 150%;
    transition: all 0.6s ease;
}

.automation-text {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.automation-item:hover .automation-text {
    color: #3b82f6;
}

.automation-arrow {
    font-size: 24px;
    color: #cbd5e1;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.automation-arrow i {
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.automation-item:hover + .automation-arrow {
    color: #3b82f6;
    transform: scale(1.2);
}

.automation-item:hover + .automation-arrow i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* 优化流程 */
.optimization-process {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    margin-top: 24px;
    position: relative;
}

/* 流程容器 - 使用网格布局 */
.process-container {
    display: grid;
    grid-template-columns: auto 40px auto 40px auto;
    grid-template-rows: auto 40px auto;
    gap: 10px;
    align-items: center;
    justify-items: center;
}

/* 定位步骤 */
.step-1 {
    grid-column: 1;
    grid-row: 1;
}

.step-2 {
    grid-column: 5;
    grid-row: 1;
}

.step-3 {
    grid-column: 5;
    grid-row: 3;
}

.step-4 {
    grid-column: 1;
    grid-row: 3;
}

/* 定位箭头 */
.right-arrow {
    grid-column: 3;
    grid-row: 1;
}

.left-arrow {
    grid-column: 3;
    grid-row: 3;
}

.down-arrow {
    grid-column: 5;
    grid-row: 2;
}

.up-arrow {
    grid-column: 1;
    grid-row: 2;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.15),
                0 4px 20px rgba(139, 92, 246, 0.1);
    border-color: #3b82f6;
}

.process-step:hover::before {
    transform: scaleX(1);
}

/* 步骤内容布局 - 包含图标 */
.process-step-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 步骤编号 - 移到卡片左上角 */
.process-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3b82f6;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.process-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.process-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
    line-height: 1.4;
}

.process-arrow {
    font-size: 20px;
    color: #3b82f6;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-arrow i {
    transition: all 0.3s ease;
}

.process-arrow:hover i {
    transform: translateX(5px);
    color: #2563eb;
}

/* 循环流程动画 - 确保所有步骤都有上浮动画 */
.process-step {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.step-1 {
    animation-delay: 0.1s;
}

.step-2 {
    animation-delay: 0.2s;
}

.step-3 {
    animation-delay: 0.3s;
}

.step-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 模块底部CTA */
.tab-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* 按钮样式（通用） */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.primary-btn {
    background: #3b82f6;
    color: white;
}

.primary-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.secondary-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.secondary-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tab-container {
        flex-direction: column;
    }

    .tab-sidebar {
        flex-direction: row;
        overflow-x: auto;
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .tab-item {
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 4px;
    }

    .tab-item.active {
        transform: translateY(-2px);
        transform: none;
    }

    .tab-item:hover {
        transform: translateY(-2px);
        transform: none;
    }
    
    .inline-feature {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .commercial-features-tab {
        padding: 20px;
    }

    .tab-content-container {
        padding: 20px;
    }

    .content-title {
        font-size: 20px;
    }

    .content-icon {
        font-size: 24px;
    }

    .feature-flow,
    .optimization-process {
        flex-direction: column;
    }

    .flow-arrow,
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .inline-features {
        flex-direction: column;
    }
    
    .inline-feature {
        min-width: 100%;
        padding: 20px;
    }
    
    .inline-title {
        font-size: 16px;
    }
    
    .inline-description {
        font-size: 13px;
    }
}
