
/* ================================================================
   视频制作页面 · 模板卡片 + 弹框样式
   与 feishu.css 的 --fs-border / --fs-shadow / --accent 配色统一
   ================================================================ */

  /* ========== 模板列表网格 ========== */
        .tpl-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 22px;
            padding: 8px;
        }

        /* ========== 模板卡片 ========== */
        .tpl-card {
            background: #fff;
            border-radius: 18px;
            overflow: hidden;
            border: 1px solid rgba(109, 93, 246, 0.16);
            transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
            position: relative;
        }
        .tpl-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 48px rgba(109, 93, 246, 0.18);
            border-color: rgba(109, 93, 246, 0.4);
        }

        /* 卡片图片区（16:9） */
        .tpl-card-thumb {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            overflow: hidden;
            background: linear-gradient(135deg, #6d5df6 0%, #00b8d4 100%);
        }
        .tpl-card-thumb img {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
        }
        .tpl-card:hover .tpl-card-thumb img {
            transform: scale(1.1);
        }

        /* 播放图标遮罩 */
        .tpl-card-thumb-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .tpl-card:hover .tpl-card-thumb-overlay {
            opacity: 1;
        }
        .tpl-play-icon {
            width: 58px;
            height: 58px;
            background: rgba(255,255,255,0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #6d5df6;
            font-size: 20px;
            box-shadow: 0 6px 24px rgba(109, 93, 246, 0.35);
            cursor: pointer;
            transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
        }
        .tpl-play-icon:hover {
            transform: scale(1.12);
            box-shadow: 0 8px 30px rgba(109, 93, 246, 0.5);
        }

        /* 卡片内容区 */
        .tpl-card-body {
            padding: 18px 20px 20px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .tpl-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #1f2340;
            margin: 0 0 8px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .tpl-card-title a {
            color: #1f2340;
            text-decoration: none;
            transition: color 0.25s ease;
        }
        .tpl-card-title a:hover {
            color: #6d5df6;
        }
        .tpl-card-desc {
            font-size: 13px;
            color: #8a88ad;
            line-height: 1.6;
            margin-bottom: 14px;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 标签区域 */
        .dtl-info-tags.pt-bottom {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }
        .dtl-info-tag {
            padding: 4px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
        }
        .dtl-info-tag.primary {
            background: rgba(109, 93, 246, 0.1);
            color: #5b4be0;
            border: 1px solid rgba(109, 93, 246, 0.22);
        }
        .dtl-info-tag.primary a {
            color: inherit;
            text-decoration: none;
        }
        .dtl-info-tag.primary a:hover {
            text-decoration: underline;
        }
        .dtl-info-tag.warning {
            background: rgba(245, 158, 11, 0.12);
            color: #b45309;
            border: 1px solid rgba(245, 158, 11, 0.28);
        }

        /* 卡片操作按钮 */
        .tpl-card-actions {
            display: flex;
            gap: 10px;
            margin-top: auto;
        }
        .tpl-btn-preview {
            flex: 1;
            padding: 9px 14px;
            border: 1px solid rgba(109, 93, 246, 0.22);
            background: rgba(109, 93, 246, 0.06);
            color: #5b4be0;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .tpl-btn-preview:hover {
            background: rgba(109, 93, 246, 0.12);
            border-color: rgba(109, 93, 246, 0.4);
            transform: translateY(-1px);
        }
        .tpl-btn-create {
            flex: 1;
            padding: 9px 14px;
            border: none;
            background: linear-gradient(135deg, #6d5df6, #00b8d4);
            color: #fff;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .tpl-btn-create:hover {
            background: linear-gradient(135deg, #5848e0, #0096ad);
            box-shadow: 0 8px 20px rgba(109, 93, 246, 0.35);
            transform: translateY(-1px);
        }
        .tpl-btn-create:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        /* 卡片标签（角标） */
        .tpl-card-tag {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 4px 12px;
            background: rgba(255,255,255,0.95);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            color: #5b4be0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            z-index: 2;
        }
        .tpl-card-tag.hot {
            background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
            color: #fff;
        }
        .tpl-card-tag.new {
            background: linear-gradient(135deg, #00b8d4, #0096ad);
            color: #fff;
        }

        /* ========== 视频播放弹出框 ========== */
        .video-modal-layer {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(28, 26, 58, 0.55);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 9998;
            justify-content: center;
            align-items: center;
            animation: vmodalFadeIn 0.25s ease;
        }
        .video-modal-layer.show { display: flex; }
        @keyframes vmodalFadeIn { from { opacity: 0; } to { opacity: 1; } }

        .video-modal-box {
            background: #fff;
            border-radius: 20px;
            width: 90%;
            max-width: 760px;
            overflow: hidden;
            box-shadow: 0 28px 70px rgba(60, 50, 130, 0.28);
            animation: vmodalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            border: 1px solid rgba(109, 93, 246, 0.12);
        }
        @keyframes vmodalSlideUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        .video-modal-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 22px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.1);
        }
        .video-modal-top h4 {
            font-size: 16px;
            font-weight: 700;
            color: #1f2340;
            margin: 0;
        }
        .video-modal-shut {
            width: 34px;
            height: 34px;
            border: none;
            background: rgba(109, 93, 246, 0.08);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8a88ad;
            font-size: 15px;
            transition: all 0.2s;
        }
        .video-modal-shut:hover {
            background: rgba(229, 72, 77, 0.1);
            color: #ef4444;
        }

        .video-modal-screen {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            background: #0f0f1a;
        }
        .video-modal-screen video,
        .video-modal-screen iframe {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
        }
        .video-modal-placeholder {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #8a88ad;
            background: linear-gradient(135deg, #1f2340 0%, #2a2e55 100%);
        }
        .video-modal-placeholder i {
            font-size: 48px;
            margin-bottom: 12px;
            color: rgba(255,255,255,0.3);
        }

        /* ========== 制作弹出框 ========== */
        .make-modal-layer {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(28, 26, 58, 0.5);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: mmodalFadeIn 0.25s ease;
        }
        .make-modal-layer.show { display: flex; }
        @keyframes mmodalFadeIn { from { opacity: 0; } to { opacity: 1; } }

        .make-modal-box {
            background: #fff;
            border-radius: 20px;
            width: 90%;
            max-width: 780px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 28px 70px rgba(60, 50, 130, 0.24);
            animation: mmodalSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            overflow: hidden;
            border: 1px solid rgba(109, 93, 246, 0.12);
        }
        @keyframes mmodalSlideUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

        /* 头部 */
        .make-modal-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.1);
            flex-shrink: 0;
        }
        .make-modal-top h4 {
            font-size: 17px;
            font-weight: 700;
            color: #1f2340;
            margin: 0;
        }
        .make-modal-shut {
            width: 34px;
            height: 34px;
            border: none;
            background: rgba(109, 93, 246, 0.08);
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #8a88ad;
            font-size: 15px;
            transition: all 0.2s;
        }
        .make-modal-shut:hover {
            background: rgba(229, 72, 77, 0.1);
            color: #ef4444;
        }

        /* 步骤指示器 */
        .make-steps-bar {
            display: flex;
            padding: 16px 24px;
            background: linear-gradient(180deg, rgba(109, 93, 246, 0.04), rgba(109, 93, 246, 0));
            border-bottom: 1px solid rgba(109, 93, 246, 0.08);
            flex-shrink: 0;
        }
        .make-step-item {
            display: flex;
            align-items: center;
            flex: 1;
        }
        .make-step-item:not(:last-child)::after {
            content: '';
            flex: 1;
            height: 2px;
            background: rgba(109, 93, 246, 0.15);
            margin: 0 14px;
        }
        .make-step-item.done::after {
            background: linear-gradient(90deg, #10b981, #059669);
        }
        .make-step-num {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(109, 93, 246, 0.12);
            color: #8a88ad;
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s;
        }
        .make-step-item.active .make-step-num {
            background: linear-gradient(135deg, #6d5df6, #00b8d4);
            color: #fff;
            box-shadow: 0 0 0 4px rgba(109, 93, 246, 0.18);
        }
        .make-step-item.done .make-step-num {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
        }
        .make-step-item.done .make-step-num i { font-size: 12px; }
        .make-step-text {
            margin-left: 10px;
            font-size: 13px;
            color: #8a88ad;
            font-weight: 500;
        }
        .make-step-item.active .make-step-text { color: #1f2340; }
        .make-step-item.done .make-step-text { color: #059669; }

        /* 参数信息 */
        .make-params-bar {
            padding: 12px 24px;
            background: rgba(109, 93, 246, 0.02);
            border-bottom: 1px solid rgba(109, 93, 246, 0.08);
            flex-shrink: 0;
        }
        .make-params-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 12px;
            color: #8a88ad;
        }
        .make-params-row .mk-param-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .make-params-row .mk-param-label { color: #a7a3c8; }
        .make-params-row .mk-param-value {
            color: #5b4be0;
            font-weight: 600;
            font-family: "Fira Code", Consolas, monospace;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 操作栏 */
        .make-action-bar {
            display: flex;
            gap: 10px;
            padding: 14px 24px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.08);
            flex-shrink: 0;
        }
        .mk-btn {
            padding: 9px 22px;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .mk-btn-primary {
            background: linear-gradient(135deg, #6d5df6, #00b8d4);
            color: #fff;
        }
        .mk-btn-primary:hover {
            background: linear-gradient(135deg, #5848e0, #0096ad);
            box-shadow: 0 6px 16px rgba(109, 93, 246, 0.35);
            transform: translateY(-1px);
        }
        .mk-btn-primary:disabled { background: #a0a8d0; cursor: not-allowed; transform: none; box-shadow: none; }
        .mk-btn-success {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
        }
        .mk-btn-success:hover {
            background: linear-gradient(135deg, #059669, #047857);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
            transform: translateY(-1px);
        }
        .mk-btn-success.active {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }
        .mk-btn-success.active:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
        }
        .mk-btn-sm {
            padding: 5px 12px;
            font-size: 12px;
            border-radius: 8px;
        }

        /* 内容区 */
        .make-modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }

        /* 步骤1：输入参数 */
        .make-step-input {
            padding: 24px;
        }
        .make-input-group {
            margin-bottom: 16px;
        }
        .make-input-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 8px;
        }
        .make-input-group textarea {
            width: 100%;
            min-height: 100px;
            padding: 12px 14px;
            border: 1px solid rgba(109, 93, 246, 0.2);
            border-radius: 10px;
            font-size: 14px;
            resize: vertical;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
            font-family: inherit;
        }
        .make-input-group textarea:focus {
            border-color: #6d5df6;
            box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
        }
        .make-input-hint {
            font-size: 12px;
            color: #a7a3c8;
            margin-top: 6px;
        }

        /* 步骤2：执行中 */
        .make-step-exec {
            padding: 32px;
            text-align: center;
        }
        .make-exec-spinner {
            width: 52px;
            height: 52px;
            border: 3px solid rgba(109, 93, 246, 0.15);
            border-top-color: #6d5df6;
            border-radius: 50%;
            animation: mkSpin 0.8s linear infinite;
            margin: 0 auto 16px;
        }
        @keyframes mkSpin { to { transform: rotate(360deg); } }
        .make-exec-text {
            font-size: 14px;
            color: #5b4be0;
            font-weight: 500;
        }

        /* 结果区域 */
        .make-result-zone {
            padding: 20px 24px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.08);
            background: rgba(109, 93, 246, 0.02);
        }
        .make-result-title {
            font-size: 14px;
            font-weight: 700;
            color: #1f2340;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .make-result-title i { color: #10b981; }

        /* 状态条 */
        .make-status-line {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 10px;
            margin-bottom: 14px;
            font-size: 13px;
            font-weight: 500;
        }
        .make-status-line.idle { background: #f8f9fb; color: #8a88ad; }
        .make-status-line.running { background: rgba(109, 93, 246, 0.1); color: #5b4be0; border: 1px solid rgba(109, 93, 246, 0.22); }
        .make-status-line.success { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.26); }
        .make-status-line.fail { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.24); }
        .make-status-line.error { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.24); }
        .make-status-spinner {
            width: 16px; height: 16px;
            border: 2px solid #6d5df6;
            border-top-color: transparent;
            border-radius: 50%;
            animation: mkSpin 0.8s linear infinite;
            display: none;
        }
        .make-status-line.running .make-status-spinner { display: block; }

        /* 结果元信息 */
        .make-result-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .make-meta-cell {
            padding: 12px 14px;
            background: rgba(255,255,255,0.8);
            border-radius: 10px;
            border: 1px solid rgba(109, 93, 246, 0.12);
        }
        .make-meta-cell .mk-label {
            font-size: 11px;
            color: #a7a3c8;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .make-meta-cell .mk-value {
            font-size: 13px;
            font-weight: 600;
            color: #1f2340;
            word-break: break-all;
        }
        .make-meta-cell .mk-value.c-running { color: #5b4be0; }
        .make-meta-cell .mk-value.c-success { color: #059669; }
        .make-meta-cell .mk-value.c-fail { color: #dc2626; }

        /* 结果 JSON */
        .make-json-wrap {
            position: relative;
        }
        .make-json-box {
            background: #1e1e2e;
            color: #cdd6f4;
            padding: 14px;
            border-radius: 10px;
            font-family: "Fira Code", Consolas, monospace;
            font-size: 12px;
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-all;
            max-height: 180px;
            overflow-y: auto;
        }
        .make-json-copy {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 4px 12px;
            background: rgba(255,255,255,0.1);
            color: #cdd6f4;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
            transition: background 0.15s;
        }
        .make-json-copy:hover { background: rgba(255,255,255,0.2); }

        /* 日志区域 */
        .make-log-zone {
            padding: 20px 24px;
        }
        .make-log-title {
            font-size: 14px;
            font-weight: 700;
            color: #1f2340;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .make-log-title .log-num {
            font-size: 12px;
            font-weight: 400;
            color: #a7a3c8;
        }
        .make-log-list {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid rgba(109, 93, 246, 0.1);
            border-radius: 10px;
            background: rgba(109, 93, 246, 0.02);
        }
        .make-log-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.06);
            font-size: 12px;
            animation: mkLogIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .make-log-item:last-child { border-bottom: none; }
        @keyframes mkLogIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
        .make-log-time {
            color: #a7a3c8;
            white-space: nowrap;
            font-family: "Fira Code", Consolas, monospace;
            min-width: 72px;
        }
        .make-log-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 5px;
            box-shadow: 0 0 0 3px rgba(0,0,0,0.03);
        }
        .make-log-dot.info { background: #6d5df6; }
        .make-log-dot.success { background: #10b981; }
        .make-log-dot.fail { background: #ef4444; }
        .make-log-dot.warn { background: #f59e0b; }
        .make-log-msg {
            color: #374151;
            flex: 1;
            line-height: 1.5;
        }
        .make-log-empty {
            text-align: center;
            color: #a7a3c8;
            padding: 32px;
            font-size: 13px;
        }

/* =================================================================
   详情页 · 视频制作（single-make_videos） —— 飞书配色统一版
   主色：#6d5df6 → #00b8d4 紫青渐变
   ================================================================= */

        /* ========== 详情页布局 ========== */
        .detail-layout {
            display: flex;
            gap: 24px;
            padding: 10px 0 30px;
        }
        .detail-main {
            flex: 1;
            min-width: 0;
        }
        .detail-side {
            width: 300px;
            flex-shrink: 0;
        }

        /* ========== 视频播放区 ========== */
        .dtl-video-wrap {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            background: #0f0f1a;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: 0 8px 32px rgba(60, 50, 130, 0.12);
        }
        .dtl-video-wrap video {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
        }
        .dtl-video-placeholder {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #8a88ad;
        }
        .dtl-video-placeholder i {
            font-size: 56px;
            margin-bottom: 12px;
            color: rgba(255,255,255,0.3);
        }
        .dtl-video-placeholder span {
            font-size: 14px;
        }

        /* ========== 模板信息卡片 ========== */
        .dtl-info-card {
            background: #fff;
            border-radius: 14px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid rgba(109, 93, 246, 0.12);
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
        }
        .dtl-info-title {
            font-size: 22px;
            font-weight: 700;
            color: #1f2340;
            margin: 0 0 8px;
        }
        .dtl-info-desc {
            font-size: 14px;
            color: #8a88ad;
            line-height: 1.6;
            margin-bottom: 14px;
        }

        /* ========== 输入区域卡片 ========== */
        .dtl-input-card {
            background: #fff;
            border-radius: 14px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid rgba(109, 93, 246, 0.12);
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
        }
        .dtl-section-title {
            font-size: 15px;
            font-weight: 700;
            color: #1f2340;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dtl-section-title i { color: #6d5df6; }
        .dtl-textarea {
            width: 100%;
            min-height: 100px;
            padding: 12px 14px;
            border: 1px solid rgba(109, 93, 246, 0.2);
            border-radius: 10px;
            font-size: 14px;
            resize: vertical;
            transition: border-color 0.2s, box-shadow 0.2s;
            outline: none;
            line-height: 1.6;
            font-family: inherit;
        }
        .dtl-textarea:focus {
            border-color: #6d5df6;
            box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
        }

        /* ========== 表单字段通用 ========== */
        .dtl-form-group {
            margin-bottom: 18px;
        }
        .dtl-form-group:last-child {
            margin-bottom: 0;
        }
        .dtl-form-label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 6px;
        }
        .dtl-form-label .dtl-form-req {
            color: #ef4444;
            margin-left: 2px;
        }
        .dtl-form-hint {
            font-size: 11px;
            color: #a7a3c8;
            margin-top: 4px;
        }

        /* 通用输入框 */
        .dtl-form-input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(109, 93, 246, 0.2);
            border-radius: 10px;
            font-size: 14px;
            color: #1f2340;
            background: #fff;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
            font-family: inherit;
        }
        .dtl-form-input:focus {
            border-color: #6d5df6;
            box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
        }
        .dtl-form-input::placeholder {
            color: #b3aecf;
        }

        /* 下拉选择 */
        .dtl-form-select {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid rgba(109, 93, 246, 0.2);
            border-radius: 10px;
            font-size: 14px;
            color: #1f2340;
            background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
            padding-right: 36px;
            font-family: inherit;
        }
        .dtl-form-select:focus {
            border-color: #6d5df6;
            box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.14);
        }

        /* 单选按钮组 */
        .dtl-form-radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .dtl-form-radio-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border: 1px solid rgba(109, 93, 246, 0.18);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            color: #555;
            background: #fff;
        }
        .dtl-form-radio-item:hover {
            border-color: rgba(109, 93, 246, 0.35);
            background: rgba(109, 93, 246, 0.04);
        }
        .dtl-form-radio-item input[type="radio"] {
            display: none;
        }
        .dtl-form-radio-item.dtl-radio-checked {
            border-color: #6d5df6;
            background: rgba(109, 93, 246, 0.1);
            color: #5b4be0;
            font-weight: 600;
        }
        .dtl-form-radio-dot {
            width: 16px;
            height: 16px;
            border: 2px solid #d1d5db;
            border-radius: 50%;
            position: relative;
            flex-shrink: 0;
            transition: border-color 0.2s;
        }
        .dtl-form-radio-item.dtl-radio-checked .dtl-form-radio-dot {
            border-color: #6d5df6;
        }
        .dtl-form-radio-item.dtl-radio-checked .dtl-form-radio-dot::after {
            content: '';
            position: absolute;
            top: 3px; left: 3px;
            width: 6px; height: 6px;
            background: #6d5df6;
            border-radius: 50%;
        }

        /* 多选复选框组 */
        .dtl-form-checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .dtl-form-checkbox-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border: 1px solid rgba(109, 93, 246, 0.18);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            color: #555;
            background: #fff;
        }
        .dtl-form-checkbox-item:hover {
            border-color: rgba(109, 93, 246, 0.35);
            background: rgba(109, 93, 246, 0.04);
        }
        .dtl-form-checkbox-item input[type="checkbox"] {
            display: none;
        }
        .dtl-form-checkbox-item.dtl-checkbox-checked {
            border-color: #6d5df6;
            background: rgba(109, 93, 246, 0.1);
            color: #5b4be0;
            font-weight: 600;
        }
        .dtl-form-checkbox-box {
            width: 16px;
            height: 16px;
            border: 2px solid #d1d5db;
            border-radius: 4px;
            position: relative;
            flex-shrink: 0;
            transition: all 0.2s;
        }
        .dtl-form-checkbox-item.dtl-checkbox-checked .dtl-form-checkbox-box {
            background: #6d5df6;
            border-color: #6d5df6;
        }
        .dtl-form-checkbox-item.dtl-checkbox-checked .dtl-form-checkbox-box::after {
            content: '';
            position: absolute;
            top: 1px; left: 4px;
            width: 4px; height: 8px;
            border: solid #fff;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

        /* 文件上传 */
        .dtl-form-upload-area {
            border: 2px dashed rgba(109, 93, 246, 0.25);
            border-radius: 12px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: rgba(109, 93, 246, 0.02);
        }
        .dtl-form-upload-area:hover {
            border-color: #6d5df6;
            background: rgba(109, 93, 246, 0.06);
        }
        .dtl-form-upload-area.dtl-upload-dragover {
            border-color: #6d5df6;
            background: rgba(109, 93, 246, 0.1);
        }
        .dtl-form-upload-icon {
            font-size: 28px;
            color: #a7a3c8;
            margin-bottom: 8px;
        }
        .dtl-form-upload-text {
            font-size: 13px;
            color: #8a88ad;
        }
        .dtl-form-upload-text span {
            color: #6d5df6;
            font-weight: 600;
        }
        .dtl-form-upload-hint {
            font-size: 11px;
            color: #b3aecf;
            margin-top: 4px;
        }
        .dtl-form-upload-preview {
            margin-top: 10px;
            display: none;
        }
        .dtl-form-upload-preview.dtl-upload-has-file {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.26);
            border-radius: 10px;
        }
        .dtl-form-upload-file-icon {
            width: 36px;
            height: 36px;
            background: rgba(16, 185, 129, 0.15);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #059669;
            font-size: 16px;
            flex-shrink: 0;
        }
        .dtl-form-upload-file-info {
            flex: 1;
            min-width: 0;
        }
        .dtl-form-upload-file-name {
            font-size: 13px;
            font-weight: 600;
            color: #1f2340;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dtl-form-upload-file-size {
            font-size: 11px;
            color: #a7a3c8;
        }
        .dtl-form-upload-remove {
            width: 28px;
            height: 28px;
            border: none;
            background: rgba(239, 68, 68, 0.1);
            color: #ef4444;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: background 0.2s;
            flex-shrink: 0;
        }
        .dtl-form-upload-remove:hover {
            background: rgba(239, 68, 68, 0.2);
        }

        /* 两列布局 */
        .dtl-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 576px) {
            .dtl-form-row {
                grid-template-columns: 1fr;
            }
        }
        .dtl-input-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 16px;
        }
        .dtl-input-hint {
            font-size: 12px;
            color: #a7a3c8;
        }
        .dtl-btn-exec {
            padding: 11px 30px;
            border: none;
            background: linear-gradient(135deg, #6d5df6, #00b8d4);
            color: #fff;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 10px 24px rgba(109, 93, 246, 0.3);
        }
        .dtl-btn-exec:hover {
            background: linear-gradient(135deg, #5848e0, #0096ad);
            box-shadow: 0 14px 32px rgba(109, 93, 246, 0.4);
            transform: translateY(-1px);
        }
        .dtl-btn-exec:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* ========== 执行结果区域 ========== */
        .dtl-result-card {
            background: #fff;
            border-radius: 14px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid rgba(109, 93, 246, 0.12);
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
        }
        .dtl-params-strip {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            padding: 10px 14px;
            background: rgba(109, 93, 246, 0.04);
            border-radius: 10px;
            margin-bottom: 16px;
            font-size: 12px;
            border: 1px solid rgba(109, 93, 246, 0.1);
        }
        .dtl-params-strip .dp-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .dtl-params-strip .dp-label { color: #a7a3c8; }
        .dtl-params-strip .dp-value {
            color: #5b4be0;
            font-weight: 600;
            font-family: "Fira Code", Consolas, monospace;
            max-width: 180px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dtl-action-row {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        .dtl-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .dtl-btn-blue {
            background: linear-gradient(135deg, #6d5df6, #00b8d4);
            color: #fff;
            box-shadow: 0 6px 16px rgba(109, 93, 246, 0.3);
        }
        .dtl-btn-blue:hover {
            background: linear-gradient(135deg, #5848e0, #0096ad);
            transform: translateY(-1px);
        }
        .dtl-btn-blue:disabled {
            background: #a0a8d0;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .dtl-btn-green {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
        }
        .dtl-btn-green:hover {
            background: linear-gradient(135deg, #059669, #047857);
            transform: translateY(-1px);
        }
        .dtl-btn-green.active {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }
        .dtl-btn-green.active:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
        }
        .dtl-btn-ghost {
            padding: 4px 10px;
            font-size: 12px;
            border-radius: 8px;
            background: #f5f7fa;
            color: #8a88ad;
            border: none;
            cursor: pointer;
        }
        .dtl-btn-ghost:hover { background: #eee; color: #374151; }

        /* 状态条 */
        .dtl-status-strip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 10px;
            margin-bottom: 14px;
            font-size: 13px;
            font-weight: 500;
        }
        .dtl-status-strip.idle { background: #f5f7fa; color: #8a88ad; }
        .dtl-status-strip.running { background: rgba(109, 93, 246, 0.1); color: #5b4be0; border: 1px solid rgba(109, 93, 246, 0.22); }
        .dtl-status-strip.success { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.26); }
        .dtl-status-strip.fail { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.24); }
        .dtl-status-strip.error { background: rgba(239, 68, 68, 0.08); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.24); }
        .dtl-status-spin {
            width: 16px; height: 16px;
            border: 2px solid #6d5df6;
            border-top-color: transparent;
            border-radius: 50%;
            animation: dtlSpin 0.8s linear infinite;
            display: none;
        }
        .dtl-status-strip.running .dtl-status-spin { display: block; }
        @keyframes dtlSpin { to { transform: rotate(360deg); } }

        /* 结果元信息 */
        .dtl-meta-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .dtl-meta-cell {
            padding: 12px 14px;
            background: rgba(109, 93, 246, 0.02);
            border-radius: 10px;
            border: 1px solid rgba(109, 93, 246, 0.1);
        }
        .dtl-meta-cell .dm-label { font-size: 11px; color: #a7a3c8; margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.4px; }
        .dtl-meta-cell .dm-value { font-size: 13px; font-weight: 600; color: #1f2340; word-break: break-all; }
        .dtl-meta-cell .dm-value.c-running { color: #5b4be0; }
        .dtl-meta-cell .dm-value.c-success { color: #059669; }
        .dtl-meta-cell .dm-value.c-fail { color: #dc2626; }

        /* JSON */
        .dtl-json-wrap { position: relative; }
        .dtl-json-box {
            background: #1e1e2e;
            color: #cdd6f4;
            padding: 14px;
            border-radius: 10px;
            font-family: "Fira Code", Consolas, monospace;
            font-size: 12px;
            line-height: 1.6;
            white-space: pre-wrap;
            word-break: break-all;
            max-height: 200px;
            overflow-y: auto;
        }
        .dtl-json-copy {
            position: absolute;
            top: 8px;
            right: 8px;
            padding: 3px 10px;
            background: rgba(255,255,255,0.1);
            color: #cdd6f4;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
        }
        .dtl-json-copy:hover { background: rgba(255,255,255,0.2); }

        /* ========== 日志区域 ========== */
        .dtl-log-card {
            background: #fff;
            border-radius: 14px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid rgba(109, 93, 246, 0.12);
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
        }
        .dtl-log-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
        }
        .dtl-log-header .dtl-log-label {
            font-size: 15px;
            font-weight: 700;
            color: #1f2340;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dtl-log-header .dtl-log-label i { color: #6d5df6; }
        .dtl-log-count { font-size: 12px; color: #a7a3c8; }
        .dtl-log-list {
            max-height: 250px;
            overflow-y: auto;
            border: 1px solid rgba(109, 93, 246, 0.1);
            border-radius: 10px;
            background: rgba(109, 93, 246, 0.02);
        }
        .dtl-log-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(109, 93, 246, 0.06);
            font-size: 12px;
            animation: dtlLogIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .dtl-log-row:last-child { border-bottom: none; }
        @keyframes dtlLogIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
        .dtl-log-time {
            color: #a7a3c8;
            white-space: nowrap;
            font-family: "Fira Code", Consolas, monospace;
            min-width: 72px;
        }
        .dtl-log-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 5px;
        }
        .dtl-log-dot.info { background: #6d5df6; }
        .dtl-log-dot.success { background: #10b981; }
        .dtl-log-dot.fail { background: #ef4444; }
        .dtl-log-dot.warn { background: #f59e0b; }
        .dtl-log-msg { color: #374151; flex: 1; line-height: 1.4; }
        .dtl-log-empty {
            text-align: center;
            color: #a7a3c8;
            padding: 32px;
            font-size: 13px;
        }

        /* ========== 右侧草稿列表 ========== */
        .dtl-side-card {
            background: #fff;
            border-radius: 14px;
            padding: 20px;
            border: 1px solid rgba(109, 93, 246, 0.12);
            box-shadow: 0 4px 14px rgba(60, 50, 130, 0.06);
            position: sticky;
            top: 20px;
        }
        .dtl-side-title {
            font-size: 15px;
            font-weight: 700;
            color: #1f2340;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .dtl-side-title .dtl-side-count {
            font-size: 12px;
            font-weight: 400;
            color: #a7a3c8;
            background: rgba(109, 93, 246, 0.08);
            padding: 2px 10px;
            border-radius: 999px;
        }
        .dtl-draft-item {
            padding: 12px 14px;
            border: 1px solid rgba(109, 93, 246, 0.1);
            border-radius: 10px;
            margin-bottom: 10px;
            transition: all 0.2s;
            cursor: default;
        }
        .dtl-draft-item:hover {
            border-color: rgba(109, 93, 246, 0.3);
            box-shadow: 0 2px 8px rgba(109, 93, 246, 0.08);
        }
        .dtl-draft-item:last-child { margin-bottom: 0; }
        .dtl-draft-name {
            font-size: 13px;
            font-weight: 600;
            color: #1f2340;
            margin-bottom: 6px;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .dtl-draft-time {
            font-size: 11px;
            color: #a7a3c8;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .dtl-draft-status {
            display: inline-block;
            padding: 1px 8px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 700;
            margin-left: auto;
        }
        .dtl-draft-status.ok { background: rgba(16, 185, 129, 0.12); color: #059669; }
        .dtl-draft-status.err { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
        .dtl-draft-status.ing { background: rgba(109, 93, 246, 0.1); color: #5b4be0; }
        .dtl-side-empty {
            text-align: center;
            padding: 30px 10px;
            color: #a7a3c8;
        }
        .dtl-side-empty i {
            font-size: 32px;
            display: block;
            margin-bottom: 10px;
            color: rgba(109, 93, 246, 0.2);
        }

        /* ========== 执行中遮罩 ========== */
        .dtl-exec-overlay {
            display: none;
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(255,255,255,0.92);
            border-radius: 12px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }
        .dtl-exec-overlay.show { display: flex; }
        .dtl-exec-big-spin {
            width: 48px; height: 48px;
            border: 3px solid rgba(109, 93, 246, 0.15);
            border-top-color: #6d5df6;
            border-radius: 50%;
            animation: dtlSpin 0.8s linear infinite;
            margin-bottom: 14px;
        }
        .dtl-exec-text { font-size: 14px; color: #5b4be0; font-weight: 500; }

        /* 响应式 */
        @media (max-width: 992px) {
            .detail-layout { flex-direction: column; }
            .detail-side { width: 100%; }
            .dtl-side-card { position: static; }
        }
        @media (max-width: 576px) {
            .dtl-meta-grid { grid-template-columns: 1fr 1fr; }
            .dtl-params-strip { gap: 10px; }
            .dtl-info-card, .dtl-input-card, .dtl-result-card, .dtl-log-card { padding: 16px 14px; }
        }

        /* 响应式 */
        @media (max-width: 576px) {
            .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; padding: 4px; }
            .tpl-card-body { padding: 14px 14px 16px; }
            .make-modal-box { width: 96%; max-height: 92vh; border-radius: 16px; }
            .make-params-row { gap: 10px; font-size: 11px; }
            .make-result-grid { grid-template-columns: 1fr 1fr; }
            .make-steps-bar { flex-wrap: wrap; gap: 8px; }
            .make-step-item { flex: 0 0 auto; }
            .make-step-item:not(:last-child)::after { display: none; }
            .video-modal-box { width: 96%; border-radius: 16px; }
        }
