:root {
    --blue: #2b6ef6;
    --blue-deep: #1a5ae8;
    --text: #1a1a2e;
    --muted: #8a90a0;
    --card-w: clamp(200px, 18vw, 420px);
    --card-h: calc(var(--card-w) * 1.5);
}

/* banner */
.framework_ark_banner {
    position: relative;
    width: 100%;
}

.banner_text_box {
    width: 100%;
    max-width: 1330px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.banner_text_box .banner_logo {
    width: 10rem;
    margin-bottom: 1rem;
}

.banner_text_box .banner_text {
    max-width: 550px;
    margin-bottom: 3rem;
    color: #474747;
    font-size: 0.95rem;
    line-height: 1.8;
}

.banner_text_box .button_nt {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(180deg, #1c60ff, #7628ff);
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
}

.framework_ark_banner .img_box img {
    width: 100%;
    height: 435px;
    object-fit: cover;
}

.banner_text_box .button_nt {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(180deg, #1c60ff, #7628ff);
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width:768px) {
    .framework_ark_banner .img_box img {
        height: 300px;
    }

    .banner_text_box .banner_text {
        font-size: 1rem;
    }
}


/* 角色 */

.factory_role {
    padding: 5rem 0;
    background: url(/resource/image/AI-factory/back_bg-01.png) no-repeat center center;
    background-size: cover;
}

.framework_ark_factory .factory_title {
    text-align: center;
}

.framework_ark_factory .factory_title h2 {
    font-size: 2rem;
    line-height: 40px;
    font-weight: 700;
}

.framework_ark_factory .factory_title p {
    font-size: 0.95rem;
    margin-top: 1rem;
    color: #333333;
    letter-spacing: 1px;
}

.framework_ark_factory .role_content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 2rem;
}


/* 胶囊Tab导航 */
.tab-pill-group {
    display: flex;
    justify-content: center;
    background: #efebfc;
    border-radius: 9999px;
    width: fit-content;
    margin: 0 auto 48px;
    padding: 6px;
}

.tab-pill-btn {
    border: none;
    background: transparent;
    padding: clamp(8px, 1.2vw, 12px) clamp(24px, 4vw, 48px);
    border-radius: 9999px;
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-pill-btn.active {
    background: #7249f2;
    color: #fff;
    box-shadow: 0 4px 12px rgba(114, 73, 242, 0.4);
}

/* Tab面板 */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 手风琴容器 */
.accordion {
    display: flex;
    align-items: stretch;
    gap: clamp(6px, 1vw, 12px);
    height: clamp(320px, 48vh, 500px);
    margin: 0 auto;
    width: 100%;
}

/* 手风琴卡片 */
.accordion-item {
    position: relative;
    /* 非激活：固定窄条宽度，随视口自适应 */
    flex: 0 0 clamp(70px, 9vw, 200px);
    min-width: 0;
    height: 100%;
    border-radius: 16px !important;
    overflow: hidden;
    cursor: pointer;
    /* flex-grow + width 共同驱动过渡 */
    transition: flex-grow 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        flex-basis 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 激活：自动伸展填满剩余空间 */
.accordion-item.active {
    flex: 1 1 0%;
}

.accordion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 卡片遮罩 */
.accordion-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 50%,
            transparent 100%);
    transition: background 0.4s ease;
}

.accordion-item.active .accordion-overlay {
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%);
}

/* 视频容器 - 默认隐藏 */
.accordion-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
}

.accordion-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 播放按钮 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn svg {
    width: 24px;
    height: 24px;
    margin-left: 4px;
    color: #ffffff;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .accordion {
        height: clamp(260px, 40vh, 380px);
        gap: 6px;
    }

    .accordion-item {
        flex: 0 0 50px;
        border-radius: 12px !important;
    }

    .play-btn {
        width: 48px;
        height: 48px;
    }

    .play-btn svg {
        width: 20px;
        height: 20px;
    }

    .accordion-video video {
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .accordion {
        height: clamp(220px, 40vh, 450px);
        gap: 4px;
    }

    .accordion-item {
        flex: 0 0 36px;
        border-radius: 10px !important;
    }

    .play-btn {
        width: 40px;
        height: 40px;
    }

    .play-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* 全场景AI视频解决方案 */
.factory_case {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.case-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    overflow: visible;
    position: relative;
}

/* 左侧导航 */
.case-sidebar {
    width: 280px;
    flex-shrink: 0;
    margin-top: 2.5rem;
}

/* 左侧内容区域 - 包含标题和导航 */
.case_sidebar_case {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.case-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 12px;
    line-height: 1.2;
    /* 关键：强制不换行 */
    white-space: nowrap;
    /* 渐变文字效果 */
    background: linear-gradient(135deg, #1a2b4a 0%, #2c4a7c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-subtitle {
    font-size: 14px;
    color: #6b7a99;
    line-height: 1.6;
    margin: 0 0 8px;
}

.case-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #F0F2FF;
    border-radius: 10px;
    padding: 2rem 0;
}

.case-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2.2rem 1rem;
    padding-left: 2.6rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #4a5578;
}

.case-nav-item:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
    color: #2563eb;
}

.case-nav-item.active {
    background: #ffffff url(/resource/image/AI-factory/btn_back.png) no-repeat right center;
    background-size: cover;
    color: #6C51FF;

}

.case-nav-icon {
    width: 4px;
    height: 2.5rem;
    flex-shrink: 0;
    background: #6C51FF;
    position: absolute;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

.case-nav-item.active .case-nav-icon {
    opacity: 1;
    visibility: visible;
}

.case-nav-icon svg {
    width: 100%;
    height: 100%;
}

.case-nav-text {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 中间网络图 */
.case-graph {
    flex: 1;
    min-width: 0;
    /* 允许内容溢出 */
    overflow: visible;
}

.graph-container {
    position: relative;
    width: 100%;
    height: 820px;
    border-radius: 16px;
    /* 关键：允许内容溢出，防止大卡片被裁剪 */
    overflow: visible;
}

/* 背景图片 - 保持原始比例完整显示 */
.graph-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    pointer-events: none;
}



/* 中心节点 */
.graph-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.center-circle {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #165DFF 0%, #6C51FF 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.center-circle:hover {
    transform: scale(1.05);
}

.center-circle::before {
    content: '';
    position: absolute;
    inset: -25px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* 周围节点 */
.graph-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* 允许卡片溢出容器 */
    overflow: visible;
}

.graph-node {
    cursor: pointer;
    z-index: 3;
    /* 关键：允许内容溢出 */
    overflow: visible;
    transform: translateZ(0);
}

/* 卡片容器 - 单元素，通过CSS变换实现大小切换 */
.node-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px 0px rgba(191, 210, 255, 0.82);
    padding: 0.65rem 0.65rem;
    box-sizing: border-box;
    /* 允许内容溢出 */
    overflow: visible;
    /* 过渡动画 - 只改变阴影和位置 */
    transition:
        box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* 关键：基础层级 */
    z-index: 10;
}

/* 小卡片内容 - 默认显示 */
.card-sm-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1rem;
    /* 层级比大卡片低 */
    z-index: 1;
    /* 默认可见 */
    opacity: 1;
    visibility: visible;
}

.card-sm-content .img {
    width: 8rem;
}

/* 大卡片内容 - 默认隐藏，绝对定位在卡片中心 */
.card-lg-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transform-origin: center center;
    width: 385px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 10px 0px rgba(191, 210, 255, 0.82);
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* 关键：大卡片需要最高层级 */
    z-index: 9999;
}

/* 小卡片文字样式 */
.node-title-sm {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2b4a;
    margin-bottom: 4px;
    white-space: nowrap;
}

.node-desc-sm {
    font-size: 12px;
    color: #6b7c9e;
    max-width: 160px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 大卡片样式 */
.card-lg-content .card-img {
    position: relative;
    width: 100%;
    height: 130px !important;
    overflow: hidden;
    border-radius: 10px;
}

.card-lg-content .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
}

.card-info {
    width: 100%;
    padding: 14px 0;
    box-sizing: border-box;
    background: #fff;
    border-radius: 0 0 16px 16px;
}

.card-info .btn_pck {
    margin-top: 10px;
    text-align: right;
}

.card-info .btn_pck a {
    background: #6C51FF;
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.8rem;
    color: #ffff;
    border-radius: 30px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b4a;
    margin: 0 0 6px;
}

.card-desc {
    font-size: 13px;
    color: #6b7c9e;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 悬浮/激活状态 - 小卡片隐藏，大卡片显示 */
.graph-node:hover .node-card,
.graph-node.active .node-card {
    /* 背景透明，让大卡片完全显示 */
    background: transparent;
    box-shadow: none;
    transform: translateY(-4px);
    /* 提高层级 */
    z-index: 10000;
}

/* 悬浮/激活时，节点本身也要提高层级 */
.graph-node:hover,
.graph-node.active {
    z-index: 99999;
}

/* 小卡片内容完全隐藏 */
.graph-node:hover .card-sm-content,
.graph-node.active .card-sm-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.9);
}

/* 大卡片内容完全显示 */
.graph-node:hover .card-lg-content,
.graph-node.active .card-lg-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* 激活状态下的卡片 - 使用大卡片的阴影 */
.graph-node.active .node-card {
    background: transparent;
    box-shadow: none;
}

/* 激活状态下的大卡片边框/阴影 */
.graph-node.active .card-lg-content {
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.25);
}

/* 自定义角色容器 */
.custom-role-container {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 3.1rem;
    padding: 40px 20px;
    min-height: 400px;
}

/* 左侧上传区域 */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-radius: 13px;
    position: relative;
}

.upload-section::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    border-radius: 12.5px;
    z-index: 0;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-section .upload-text .upload-title {
    color: #6C51FF;
    font-size: 1rem;
    margin-top: 1rem;
    font-weight: bold;
}

.upload-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 1rem;
}

.upload-card {
    width: 150px;
    height: 210px;
    border: 1px solid #e1e1e1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #F4F4F4;
    transition: all 0.3s ease;
}

.upload-icon img {
    width: 2rem;
}

.upload-text {
    text-align: center;
    width: 100%;
    height: 3rem;
    padding: 0 0.5rem;
}

.upload-title {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}

.detect-btn {
    padding: 5px 28px;
    background: #6C51FF;
    width: 80%;
    color: #fff;
    border: none;
    margin: 0 auto;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: block;
}

.detect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.detect-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #165DFF;
    border-radius: 6px;
    font-size: 13px;
    color: #ffffff;
    margin-top: 15px;
    justify-content: space-between;
}

.detect-result .credits img {
    width: 1.1rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}


/* 中间箭头 */
.arrow-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.arrow-section .arrow_img {
    position: absolute;
    width: 16rem;
    max-width: none;
    top: 50%;
    left: auto;
    transform: translate(-1.1rem, -50%);
    z-index: 10;
}

.arrow-svg {
    width: 100px;
    height: 24px;
}

.arrow-text {
    font-size: 1rem;
    color: #333333;
    font-weight: bold;
    vertical-align: middle;
    display: flex;
    align-items: center;
    height: 100%;
}

/* 右侧角色预览 */
.role-preview {
    width: 415px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    border-radius: 13px;
    position: relative;
}

.role-preview::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    border-radius: 12.5px;
    z-index: 0;
}

.role-preview_inn {
    position: relative;
    height: 100%;
    z-index: 10;
}

.role-preview_inn .image_box {
    padding: 0 1.2rem;
    margin: 0.56rem 0 1rem;
}

.role-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.2rem;
    position: relative;
}

.role-image {
    position: absolute;
    right: 15px;
    top: 1.2rem;
}

.role-image img {
    width: 5.3rem;
}


.role-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #6C51FF;
    margin: 0;
}

.ai-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.role-action {
    padding: 16px;
}

.use-btn {
    width: 100%;
    padding: 5px 15px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.use-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.arrow-right {
    width: 1.3rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.use-btn:hover .arrow-right {
    transform: translateX(4px);
}

/* 响应式 */
@media (max-width: 1024px) {
    .case-container {
        flex-direction: column;
        gap: 30px;
    }

    .case_sidebar_case {
        padding: 0 16px;
    }

    .case-sidebar {
        width: 100%;
        margin-top: 0;
    }

    .case-title {
        font-size: 26px;
    }

    .case-subtitle {
        font-size: 13px;
    }

    .case-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 12px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .case-nav-item {
        flex-shrink: 0;
        padding: 10px 16px;
        padding-left: 16px;
        gap: 8px;
        white-space: nowrap;
    }

    .case-nav-icon {
        width: 4px;
        height: 20px;
    }

    .case-nav-text {
        font-size: 14px;
    }

    .graph-container {
        height: 500px;
    }

    .center-circle {
        width: 90px;
        height: 90px;
        font-size: 14px;
    }

    .custom-role-container {
        flex-direction: column;
        gap: 30px;
    }

    .arrow-section {
        flex-direction: row;
    }

    .arrow-svg {
        transform: rotate(90deg);
    }
}

/* 移动端 - 隐藏导航，直接显示大卡片列表 */
@media (max-width: 768px) {
    .framework_ark_factory .factory_title h2{
        font-size: 1.8rem;
    }
    .framework_ark_factory .factory_title p{
        font-size: 1rem;
    }
    .factory_case {
        padding: 3rem 0 2rem;
    }
.case-graph{
    width: 100%;
}
.arrow-section .arrow_img{
    display: none;
}

    .case-container {
        padding: 0 16px;
        gap: 20px;
    }

    /* 隐藏左侧导航和背景图 */
    .case-sidebar {
        display: none;
    }

    .graph-bg,
    .graph-center {
        display: none;
    }

    /* 让卡片列表变成正常的流式布局 */
    .graph-container {
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }

    .graph-nodes {
        position: static;
        inset: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    /* 每个节点一行，显示大卡片 */
    .graph-node {
        position: static !important;
        transform: none !important;
        width: 100%;
        display: block;
        overflow: visible;
        z-index: auto;
    }

    /* 小卡片隐藏 */
    .card-sm-content {
        display: none !important;
    }

    /* 大卡片直接显示，不依赖hover */
    .card-lg-content {
        position: static;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    /* 卡片容器样式 */
    .node-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        padding: 0;
        overflow: hidden;
        transform: none !important;
        z-index: auto !important;
    }

    /* 大卡片图片 */
    .card-lg-content .card-img {
        height: 180px !important;
        border-radius: 0;
    }

    .card-lg-content .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 大卡片信息 */
    .card-lg-content .card-info {
        padding: 16px;
    }

    .card-lg-content .card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .card-lg-content .card-desc {
        font-size: 13px;
        line-height: 1.6;
    }

    .card-lg-content .btn_pck {
        margin-top: 12px;
        text-align: left;
    }

    .card-lg-content .btn_pck a {
        display: inline-block;
        padding: 8px 20px;
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        color: #fff;
        border-radius: 20px;
        font-size: 13px;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    /* 移动端禁用 graph-node 的 hover 效果，避免干扰 a 标签点击 */
    .graph-node:hover .node-card,
    .graph-node:hover .card-sm-content,
    .graph-node:hover .card-lg-content {
        transform: none !important;
    }

    .graph-node:hover .card-lg-content {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* 标题和副标题 */
    .case-title {
        font-size: 20px;
        white-space: normal;
        text-align: center;
    }

    .case-subtitle {
        font-size: 13px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* 自定义角色响应式 */
    .custom-role-container {
        padding: 20px 12px;
        gap: 20px;
    }

    .upload-cards {
        gap: 12px;
    }

    .upload-card {
        width: 100px;
        height: 100px;
    }

    .upload-icon {
        font-size: 24px;
    }

    .upload-title {
        font-size: 11px;
    }

    .detect-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .detect-result {
        font-size: 12px;
        padding: 6px 12px;
    }

    .role-preview {
        width: 100%;
    }

    .role-image {
        height: 160px;
    }

    .role-title {
        font-size: 14px;
    }

    .use-btn {
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .factory_case {
        padding: 2rem 0 1rem;
    }
.arrow-section{
    justify-content: center;
}

.arrow-text{
    font-size: 1.2rem;
}
    .case-container {
        padding: 0 12px;
    }

    .graph-nodes {
        padding: 0 12px;
        gap: 12px;
    }

    /* 大卡片图片 */
    .card-lg-content .card-img {
        height: 150px !important;
    }

    .card-lg-content .card-info {
        padding: 14px;
    }

    .card-lg-content .card-title {
        font-size: 15px;
    }

    .card-lg-content .card-desc {
        font-size: 12px;
    }

    .card-lg-content .btn_pck a {
        font-size: 12px;
        padding: 6px 16px;
    }

    /* 标题 */
    .case-title {
        font-size: 18px;
    }

    .case-subtitle {
        font-size: 12px;
    }

    /* 自定义角色 */
    .custom-role-container {
        padding: 16px 8px;
    }

    .upload-cards {
        gap: 8px;
    }

    .upload-card {
        width: 85px;
        height: 85px;
    }

    .upload-icon {
        font-size: 20px;
    }

    .upload-title {
        font-size: 10px;
    }

    .detect-btn {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }

    .detect-result {
        font-size: 11px;
        padding: 5px 10px;
    }

    .credits {
        font-size: 10px;
    }


    .role-header {
        padding: 12px 16px;
    }

    .role-title {
        font-size: 13px;
    }

    .ai-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .role-image {
        height: 140px;
    }

    .role-action {
        padding: 12px;
    }

    .use-btn {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* 多种视频生成模式 */
.factory_mode {
    padding: 6rem 0 5rem;
    background: url(/resource/image/AI-factory/back_bg-02.png) no-repeat center bottom;
    background-size: cover;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 32px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.intro {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 180px;
    margin-right: 20px;
}

.intro h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 12px;
}

.intro p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

.btn-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, transform 0.2s;
}

.btn-all:hover {
    background: var(--blue-deep);
    transform: translateY(-1px);
}

.mode_content {
    margin-top: 2rem;
    padding: 0 0 7rem;
}

/* —— Carousel —— */
.carousel-wrap {
    position: relative;
    width: 100%;
    min-height: 500px;
    max-height: 720px;
    padding: 0 4rem;
    padding-top: 4rem;
    margin: 0 auto;
    perspective: 1600px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Circular stage / platform */
.stage {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: clamp(400px, 50vw, 800px);
    height: calc(clamp(400px, 50vw, 800px) * 0.22);
    pointer-events: none;
    z-index: 0;
}

.stage-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1.5px solid rgba(100, 160, 255, 0.35);
    transform: translate(-50%, -50%) rotateX(72deg);
}

.stage-ring-1 {
    width: 100%;
    height: 100%;
    box-shadow:
        0 0 30px rgba(80, 150, 255, 0.25),
        inset 0 0 20px rgba(120, 180, 255, 0.15);
}

.stage-ring-2 {
    width: 78%;
    height: 78%;
    border-color: rgba(100, 160, 255, 0.45);
    box-shadow: 0 0 20px rgba(80, 150, 255, 0.2);
}

.stage-ring-3 {
    width: 55%;
    height: 55%;
    border-color: rgba(120, 180, 255, 0.55);
    box-shadow: 0 0 16px rgba(100, 170, 255, 0.3);
}

.stage-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    height: 40%;
    transform: translate(-50%, -50%) rotateX(72deg);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 190, 255, 0.55) 0%, transparent 70%);
    filter: blur(8px);
}



.card.is-active {
    box-shadow: 0 20px 50px rgba(40, 80, 160, 0.22);
}

.card.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: calc(var(--card-w) * 0.5);
    display: block;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cover-inner {
    position: absolute;
    inset: 0;
}

/* Cover themes */
.cover-commerce {
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.cover-commerce .cover-inner::before {
    content: "";
    position: absolute;
    left: 12%;
    top: 18%;
    width: 42%;
    height: 64%;
    border-radius: 8px;
    background: linear-gradient(180deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cover-commerce .cover-inner::after {
    content: "▶";
    position: absolute;
    right: 18%;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 40px;
    padding-left: 3px;
}

.cover-horse {
    background: linear-gradient(145deg, #2d1b4e 0%, #5b2c6f 40%, #c0392b 100%);
}

.cover-horse .cover-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #f5d0a9 0%, #d4a574 40%, #8b5a2b 100%);
    box-shadow: 0 0 40px rgba(255, 180, 100, 0.4);
}

.cover-horse .cover-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 100, 50, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(150, 80, 255, 0.35) 0%, transparent 40%);
}

.cover-avatar {
    background: linear-gradient(160deg, #0c1445 0%, #1a237e 50%, #283593 100%);
}

.cover-avatar .cover-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70%;
    height: 85%;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    background: linear-gradient(180deg, #fce4d6 0%, #e8b896 30%, #4a90d9 70%);
}

.cover-avatar .cover-inner::after {
    content: "LIVE";
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 8px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.05em;
    display: block;
    line-height: 1.4;
}

.cover-edit {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.cover-edit .cover-inner::before {
    content: "";
    position: absolute;
    left: 10%;
    top: 20%;
    width: 80%;
    height: 45%;
    border-radius: 6px;
    background: linear-gradient(90deg, #00c9ff, #92fe9d);
    opacity: 0.85;
}

.cover-edit .cover-inner::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 16%;
    width: 80%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2b6ef6 0%, #2b6ef6 45%, rgba(255, 255, 255, 0.25) 45%);
    box-shadow: 0 -18px 0 -2px rgba(255, 255, 255, 0.15), 0 -36px 0 -2px rgba(255, 255, 255, 0.1);
}

.cover-script {
    background: linear-gradient(160deg, #fff8e7 0%, #ffe0b2 100%);
}

.cover-script .cover-inner::before {
    content: "";
    position: absolute;
    left: 14%;
    top: 14%;
    width: 72%;
    height: 72%;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(180, 120, 40, 0.15);
}

.cover-script .cover-inner::after {
    content: "";
    position: absolute;
    left: 22%;
    top: 28%;
    width: 56%;
    height: 4px;
    border-radius: 2px;
    background: #e0c090;
    box-shadow:
        0 12px 0 #e0c090,
        0 24px 0 #e0c090,
        0 36px 0 #e0c090,
        0 48px 0 #e8d0a8;
}

.cover-product {
    background: linear-gradient(145deg, #f5f7fa 0%, #e4e8f0 100%);
}

.cover-product .cover-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 90px;
    height: 110px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.cover-product .cover-inner::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.cover-voice {
    background: linear-gradient(160deg, #1a0533 0%, #2d1b69 50%, #4a2080 100%);
}

.cover-voice .cover-inner::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 56px;
    transform: translate(-50%, -55%);
    border-radius: 18px;
    background: linear-gradient(180deg, #e0e0e0, #9e9e9e);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.cover-voice .cover-inner::after {
    content: "";
    position: absolute;
    left: 18%;
    bottom: 18%;
    right: 18%;
    height: 28px;
    background: repeating-linear-gradient(90deg,
            #7c4dff 0 3px,
            transparent 3px 8px);
    opacity: 0.7;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    border-radius: 2px;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-top: 10px;
    min-height: 0;
}

.card-title {
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: clamp(11px, 0.85vw, 13px);
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.tag {
    font-size: 10px;
    color: #6C51FF;
    background: #F6F5FF;
    padding: 4px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.btn-use {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #3C56FF 0%, #C670CB 50%, #F89773 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-use .icon {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #ffffff;
    margin-left: 10px;
    color: #C670CB;
    font-size: 0.6rem;
    color: #C670CB;
    padding: 2px;
}


.btn-use svg {
    flex-shrink: 0;
}

/* —— Nav buttons —— */
.nav-btn {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-top: -10rem;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    color: #4a5568;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(60, 100, 180, 0.12);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(60, 100, 180, 0.18);
}

.nav-btn:active {
    transform: scale(0.96);
}

.nav-prev {
    margin-right: 8px;
}

.nav-next {
    margin-left: 8px;
}

/* —— Carousel 核心3D透视修正 —— */
.carousel {
    position: relative;
    flex: 1;
    height: 100%;
    perspective: 1600px;
    /* 和截图一致透视距离 */
    overflow: visible;
    perspective-origin: 50% 42%;
    /* 卡片垂直居中位置 */
}

.carousel-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

/* —— Cards 修正变换顺序、过渡缓动（截图同款） —— */
.factory_mode .card {
    position: absolute;
    left: 50%;
    top: 60%;
    width: var(--card-w);
    margin-left: calc(var(--card-w) / -2);
    margin-top: calc(var(--card-h) / -2);
    border-radius: 13px;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.52s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.52s cubic-bezier(0.25, 1, 0.5, 1),
        box-shadow 0.4s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* 消除背面穿模 */
    user-select: none;
    -webkit-user-select: none;

    /* 渐变边框实现：外层渐变底 + 内层白色盖 */
    background: linear-gradient(135deg, #6e99ff 20%, transparent 40%, transparent 60%, #b8abff 100%);
    padding: 25px 13px;
    isolation: isolate;
    /* 创建层叠上下文 */
}

/* 拖拽时禁用卡片 transition，让卡片即时跟随鼠标 */
.carousel-track.is-dragging .card {
    transition: none !important;
}

/* 内层白色背景覆盖渐变中心区域，仅露出边框 */
.card::before {
    content: "";
    position: absolute;
    inset: 1.5px;
    /* 与 padding 对应 */
    background: #fff;
    border-radius: 12.5px;
    /* 略小于外层圆角 */
    z-index: -1;
}

/* 卡片内容区域 */
.card-img,
.card-body {
    position: relative;
    z-index: 1;
}

/* 确保链接可点击 */
.card-footer {
    position: relative;
    z-index: 2;
    transform: translateZ(0);
}

.btn-use {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    transform: translateZ(0);
}

/* —— Responsive —— */
@media (max-width: 560px) {
    .hero {
        padding: 12px 8px;
        align-items: flex-start;
        padding-top: 24px;
        overflow: visible;
    }

    .carousel-wrap {
        height: auto;
        min-height: 0;
        padding: 0;
        max-height: none;
        perspective: none;
        display: block;
        overflow: visible;
    }

    .mode_content {
        padding: 0;
    }

    .carousel {
        perspective: none;
        height: auto;
        flex: none;
    }

    .carousel-track {
        transform-style: flat;
        position: relative;
        width: 100%;
        min-height: 300px;
    }

    /* 移动端：卡片绝对定位重叠，通过 transform/opacity 实现平滑过渡 */
    .factory_mode .card {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        width: 100% !important;
        max-width: 340px;
        margin: 0 auto;
        transform: none !important;
        opacity: 0;
        border: none;
        pointer-events: none;
        z-index: 1;
        padding: 1.3rem 0.95rem;
        isolation: isolate;
        border-radius: 20px;
        /* 平滑过渡：transform 用于滑动，opacity 用于淡入淡出 */
        transition:
            transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
            opacity 0.4s ease;
    }

    .factory_mode .card.is-active {
        opacity: 1;
        pointer-events: auto;
        transform: none !important;
        z-index: 10;
    }

    /* 使用 visibility: hidden 而非 display: none，保留过渡动画 */
    .factory_mode .card.is-hidden {
        visibility: hidden;
        opacity: 0;
        transform: none !important;
    }

    .factory_mode .card.slide-prev {
        opacity: 0;
        transform: translateX(-85%) !important;
        pointer-events: none;
        visibility: visible;
    }

    .factory_mode .card.slide-next {
        opacity: 0;
        transform: translateX(85%) !important;
        pointer-events: none;
        visibility: visible;
    }

    /* 移动端舞台装饰隐藏 */
    .stage {
        display: none;
    }

    /* 卡片图片和文字自适应 */
    .card-img {
        height: 12rem;
    }

    .card-title {
        font-size: 16px;
    }

    .card-desc {
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    /* 导航按钮缩小，放在卡片两侧 */
    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        margin-top: 0;
        z-index: 20;
    }

    .nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }

    .nav-prev {
        left: 4px;
        margin-right: 0;
    }

    .nav-next {
        right: 4px;
        margin-left: 0;
    }
}