

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

        /* ========== 模板卡片（正方形） ========== */
        .tpl-card {
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid #e8ecf1;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        .tpl-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0,0,0,0.1);
            border-color: #c5d0dc;
        }

        /* 卡片图片区（正方形） */
        .tpl-card-thumb {
            position: relative;
            width: 100%;
            padding-top: 100%; /* 1:1 正方形 */
            overflow: hidden;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .tpl-card-thumb img {
            position: absolute;
            top: 0; left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        .tpl-card:hover .tpl-card-thumb img {
            transform: scale(1.08);
        }
        /* 播放图标遮罩 */
        .tpl-card-thumb-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .tpl-card:hover .tpl-card-thumb-overlay {
            opacity: 1;
        }
        .tpl-play-icon {
            width: 56px;
            height: 56px;
            background: rgba(255,255,255,0.95);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #4a6cf7;
            font-size: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
            cursor: pointer;
            transition: transform 0.2s;
        }
        .tpl-play-icon:hover {
            transform: scale(1.1);
        }

        /* 卡片内容区 */
        .tpl-card-body {
            padding: 16px 18px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        .tpl-card-title {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a2e;
            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: #1a1a2e;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .tpl-card-title a:hover {
            color: #4a6cf7;
        }
        .tpl-card-desc {
            font-size: 13px;
            color: #888;
            line-height: 1.5;
            margin-bottom: 14px;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 卡片操作按钮 */
        .tpl-card-actions {
            display: flex;
            gap: 10px;
        }
        .tpl-btn-preview {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #e5e7eb;
            background: #fff;
            color: #555;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .tpl-btn-preview:hover {
            border-color: #4a6cf7;
            color: #4a6cf7;
            background: #f0f4ff;
        }
        .tpl-btn-create {
            flex: 1;
            padding: 8px 12px;
            border: none;
            background: linear-gradient(135deg, #4a6cf7, #6366f1);
            color: #fff;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        .tpl-btn-create:hover {
            background: linear-gradient(135deg, #3b5de7, #4f46e5);
            box-shadow: 0 4px 12px rgba(74,108,247,0.3);
        }
        .tpl-btn-create:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            box-shadow: none;
        }

        /* 卡片标签 */
        .tpl-card-tag {
            position: absolute;
            top: 12px;
            left: 12px;
            padding: 4px 10px;
            background: rgba(255,255,255,0.95);
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            color: #4a6cf7;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .tpl-card-tag.hot {
            background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
            color: #fff;
        }
        .tpl-card-tag.new {
            background: linear-gradient(135deg, #10b981, #059669);
            color: #fff;
        }

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

        .video-modal-box {
            background: #fff;
            border-radius: 16px;
            width: 90%;
            max-width: 720px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.25);
            animation: vmodalSlideUp 0.25s ease;
        }
        @keyframes vmodalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        .video-modal-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 20px;
            border-bottom: 1px solid #eef0f4;
        }
        .video-modal-top h4 {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a2e;
            margin: 0;
        }
        .video-modal-shut {
            width: 32px;
            height: 32px;
            border: none;
            background: #f5f7fa;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 16px;
            transition: all 0.15s;
        }
        .video-modal-shut:hover {
            background: #fee2e2;
            color: #ef4444;
        }

        .video-modal-screen {
            position: relative;
            width: 100%;
            padding-top: 56.25%; /* 16:9 */
            background: #000;
        }
        .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: #888;
            background: #1a1a2e;
        }
        .video-modal-placeholder i {
            font-size: 48px;
            margin-bottom: 12px;
            color: #444;
        }

        /* ========== 制作弹出框 ========== */
        .make-modal-layer {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.45);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            animation: mmodalFadeIn 0.2s ease;
        }
        .make-modal-layer.show { display: flex; }
        @keyframes mmodalFadeIn { from { opacity: 0; } to { opacity: 1; } }

        .make-modal-box {
            background: #fff;
            border-radius: 16px;
            width: 90%;
            max-width: 760px;
            max-height: 88vh;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 60px rgba(0,0,0,0.15);
            animation: mmodalSlideUp 0.25s ease;
            overflow: hidden;
        }
        @keyframes mmodalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

        /* 头部 */
        .make-modal-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px 24px;
            border-bottom: 1px solid #eef0f4;
            flex-shrink: 0;
        }
        .make-modal-top h4 {
            font-size: 17px;
            font-weight: 600;
            color: #1a1a2e;
            margin: 0;
        }
        .make-modal-shut {
            width: 32px;
            height: 32px;
            border: none;
            background: #f5f7fa;
            border-radius: 8px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 16px;
            transition: all 0.15s;
        }
        .make-modal-shut:hover {
            background: #fee2e2;
            color: #ef4444;
        }

        /* 步骤指示器 */
        .make-steps-bar {
            display: flex;
            padding: 16px 24px;
            background: #f8f9fb;
            border-bottom: 1px solid #eef0f4;
            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: #e0e4eb;
            margin: 0 12px;
        }
        .make-step-item.done::after {
            background: #4a6cf7;
        }
        .make-step-num {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            background: #e0e4eb;
            color: #888;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .make-step-item.active .make-step-num {
            background: #4a6cf7;
            color: #fff;
            box-shadow: 0 0 0 4px rgba(74,108,247,0.2);
        }
        .make-step-item.done .make-step-num {
            background: #10b981;
            color: #fff;
        }
        .make-step-item.done .make-step-num i { font-size: 12px; }
        .make-step-text {
            margin-left: 10px;
            font-size: 13px;
            color: #888;
            font-weight: 500;
        }
        .make-step-item.active .make-step-text { color: #333; }
        .make-step-item.done .make-step-text { color: #10b981; }

        /* 参数信息 */
        .make-params-bar {
            padding: 12px 24px;
            background: #fff;
            border-bottom: 1px solid #eef0f4;
            flex-shrink: 0;
        }
        .make-params-row {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            font-size: 12px;
            color: #888;
        }
        .make-params-row .mk-param-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .make-params-row .mk-param-label { color: #aaa; }
        .make-params-row .mk-param-value {
            color: #555;
            font-weight: 500;
            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 #eef0f4;
            flex-shrink: 0;
        }
        .mk-btn {
            padding: 8px 20px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .mk-btn-primary { background: #4a6cf7; color: #fff; }
        .mk-btn-primary:hover { background: #3b5de7; }
        .mk-btn-primary:disabled { background: #a0b0f7; cursor: not-allowed; }
        .mk-btn-success { background: #10b981; color: #fff; }
        .mk-btn-success:hover { background: #059669; }
        .mk-btn-success.active { background: #ef4444; }
        .mk-btn-success.active:hover { background: #dc2626; }
        .mk-btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

        /* 内容区 */
        .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: 500;
            color: #555;
            margin-bottom: 6px;
        }
        .make-input-group textarea {
            width: 100%;
            min-height: 100px;
            padding: 12px 14px;
            border: 1px solid #e0e4eb;
            border-radius: 8px;
            font-size: 14px;
            resize: vertical;
            transition: border-color 0.2s;
            outline: none;
        }
        .make-input-group textarea:focus {
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
        }
        .make-input-hint {
            font-size: 12px;
            color: #aaa;
            margin-top: 4px;
        }

        /* 步骤2：执行中 */
        .make-step-exec {
            padding: 24px;
            text-align: center;
        }
        .make-exec-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid #e0e4eb;
            border-top-color: #4a6cf7;
            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: #666;
        }

        /* 结果区域 */
        .make-result-zone {
            padding: 20px 24px;
            border-bottom: 1px solid #eef0f4;
        }
        .make-result-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .make-result-title i { color: #4a6cf7; }

        /* 状态条 */
        .make-status-line {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            margin-bottom: 14px;
            font-size: 13px;
            font-weight: 500;
        }
        .make-status-line.idle { background: #f5f7fa; color: #888; }
        .make-status-line.running { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
        .make-status-line.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
        .make-status-line.fail { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
        .make-status-line.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
        .make-status-spinner {
            width: 16px; height: 16px;
            border: 2px solid #2563eb;
            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: 10px 12px;
            background: #f8f9fb;
            border-radius: 8px;
            border: 1px solid #eef0f4;
        }
        .make-meta-cell .mk-label {
            font-size: 11px;
            color: #aaa;
            margin-bottom: 3px;
        }
        .make-meta-cell .mk-value {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            word-break: break-all;
        }
        .make-meta-cell .mk-value.c-running { color: #2563eb; }
        .make-meta-cell .mk-value.c-success { color: #16a34a; }
        .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: 8px;
            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: 3px 10px;
            background: rgba(255,255,255,0.1);
            color: #cdd6f4;
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: 4px;
            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: 600;
            color: #333;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .make-log-title .log-num {
            font-size: 12px;
            font-weight: 400;
            color: #aaa;
        }
        .make-log-list {
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #eef0f4;
            border-radius: 8px;
            background: #fafbfc;
        }
        .make-log-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px 12px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
            animation: mkLogIn 0.2s ease;
        }
        .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: #bbb;
            white-space: nowrap;
            font-family: "Fira Code", Consolas, monospace;
            min-width: 70px;
        }
        .make-log-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 4px;
        }
        .make-log-dot.info { background: #3b82f6; }
        .make-log-dot.success { background: #22c55e; }
        .make-log-dot.fail { background: #ef4444; }
        .make-log-dot.warn { background: #f59e0b; }
        .make-log-msg {
            color: #555;
            flex: 1;
            line-height: 1.4;
        }
        .make-log-empty {
            text-align: center;
            color: #ccc;
            padding: 30px;
            font-size: 13px;
        }

        /* 响应式 */
        @media (max-width: 576px) {
            .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
            .make-modal-box { width: 96%; max-height: 92vh; }
            .make-params-row { gap: 10px; }
            .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; }
        }










 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 /* ========== 详情页布局 ========== */
        .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(0,0,0,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: #666;
        }
        .dtl-video-placeholder i {
            font-size: 56px;
            margin-bottom: 12px;
            color: #333;
        }
        .dtl-video-placeholder span {
            font-size: 14px;
        }

        /* ========== 模板信息 ========== */
        .dtl-info-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid #e8ecf1;
        }
        .dtl-info-title {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a2e;
            margin: 0 0 8px;
        }
        .dtl-info-desc {
            font-size: 14px;
            color: #888;
            line-height: 1.6;
            margin-bottom: 14px;
        }
        .dtl-info-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .dtl-info-tag {
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        .dtl-info-tag.primary { background: #eef2ff; color: #4a6cf7; }
        .dtl-info-tag.success { background: #f0fdf4; color: #16a34a; }
        .dtl-info-tag.warning { background: #fff7ed; color: #f59e0b; }

        /* ========== 输入区域 ========== */
        .dtl-input-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid #e8ecf1;
        }
        .dtl-section-title {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a2e;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dtl-section-title i { color: #4a6cf7; }
        .dtl-textarea {
            width: 100%;
            min-height: 100px;
            padding: 12px 14px;
            border: 1px solid #e0e4eb;
            border-radius: 8px;
            font-size: 14px;
            resize: vertical;
            transition: border-color 0.2s;
            outline: none;
            line-height: 1.6;
        }
        .dtl-textarea:focus {
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
        }

        /* ========== 表单字段通用 ========== */
        .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: #aaa;
            margin-top: 4px;
        }

        /* 通用输入框 */
        .dtl-form-input {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #e0e4eb;
            border-radius: 8px;
            font-size: 14px;
            color: #1f2937;
            background: #fff;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }
        .dtl-form-input:focus {
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
        }
        .dtl-form-input::placeholder {
            color: #bbb;
        }

        /* 下拉选择 */
        .dtl-form-select {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid #e0e4eb;
            border-radius: 8px;
            font-size: 14px;
            color: #1f2937;
            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;
        }
        .dtl-form-select:focus {
            border-color: #4a6cf7;
            box-shadow: 0 0 0 3px rgba(74,108,247,0.1);
        }

        /* 单选按钮组 */
        .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 #e0e4eb;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            color: #555;
            background: #fff;
        }
        .dtl-form-radio-item:hover {
            border-color: #c5d0dc;
            background: #f8f9fb;
        }
        .dtl-form-radio-item input[type="radio"] {
            display: none;
        }
        .dtl-form-radio-item.dtl-radio-checked {
            border-color: #4a6cf7;
            background: #eef2ff;
            color: #4a6cf7;
            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: #4a6cf7;
        }
        .dtl-form-radio-item.dtl-radio-checked .dtl-form-radio-dot::after {
            content: '';
            position: absolute;
            top: 3px; left: 3px;
            width: 6px; height: 6px;
            background: #4a6cf7;
            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 #e0e4eb;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
            color: #555;
            background: #fff;
        }
        .dtl-form-checkbox-item:hover {
            border-color: #c5d0dc;
            background: #f8f9fb;
        }
        .dtl-form-checkbox-item input[type="checkbox"] {
            display: none;
        }
        .dtl-form-checkbox-item.dtl-checkbox-checked {
            border-color: #4a6cf7;
            background: #eef2ff;
            color: #4a6cf7;
            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: #4a6cf7;
            border-color: #4a6cf7;
        }
        .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 #d1d5db;
            border-radius: 10px;
            padding: 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: #fafbfc;
        }
        .dtl-form-upload-area:hover {
            border-color: #4a6cf7;
            background: #f0f4ff;
        }
        .dtl-form-upload-area.dtl-upload-dragover {
            border-color: #4a6cf7;
            background: #eef2ff;
        }
        .dtl-form-upload-icon {
            font-size: 28px;
            color: #bbb;
            margin-bottom: 8px;
        }
        .dtl-form-upload-text {
            font-size: 13px;
            color: #888;
        }
        .dtl-form-upload-text span {
            color: #4a6cf7;
            font-weight: 600;
        }
        .dtl-form-upload-hint {
            font-size: 11px;
            color: #bbb;
            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: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 8px;
        }
        .dtl-form-upload-file-icon {
            width: 36px;
            height: 36px;
            background: #dcfce7;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #16a34a;
            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: #333;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .dtl-form-upload-file-size {
            font-size: 11px;
            color: #aaa;
        }
        .dtl-form-upload-remove {
            width: 28px;
            height: 28px;
            border: none;
            background: #fef2f2;
            color: #ef4444;
            border-radius: 6px;
            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: #fee2e2;
        }

        /* 两列布局 */
        .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: 12px;
        }
        .dtl-input-hint {
            font-size: 12px;
            color: #aaa;
        }
        .dtl-btn-exec {
            padding: 10px 28px;
            border: none;
            background: linear-gradient(135deg, #4a6cf7, #6366f1);
            color: #fff;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .dtl-btn-exec:hover {
            background: linear-gradient(135deg, #3b5de7, #4f46e5);
            box-shadow: 0 4px 16px rgba(74,108,247,0.3);
            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: 12px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid #e8ecf1;
        }
        .dtl-params-strip {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            padding: 10px 14px;
            background: #f8f9fb;
            border-radius: 8px;
            margin-bottom: 16px;
            font-size: 12px;
            border: 1px solid #eef0f4;
        }
        .dtl-params-strip .dp-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .dtl-params-strip .dp-label { color: #aaa; }
        .dtl-params-strip .dp-value {
            color: #555;
            font-weight: 500;
            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: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .dtl-btn-blue { background: #4a6cf7; color: #fff; }
        .dtl-btn-blue:hover { background: #3b5de7; }
        .dtl-btn-blue:disabled { background: #a0b0f7; cursor: not-allowed; }
        .dtl-btn-green { background: #10b981; color: #fff; }
        .dtl-btn-green:hover { background: #059669; }
        .dtl-btn-green.active { background: #ef4444; }
        .dtl-btn-green.active:hover { background: #dc2626; }
        .dtl-btn-ghost {
            padding: 4px 10px;
            font-size: 12px;
            border-radius: 6px;
            background: #f5f7fa;
            color: #888;
            border: none;
            cursor: pointer;
        }
        .dtl-btn-ghost:hover { background: #eee; }

        /* 状态条 */
        .dtl-status-strip {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 8px;
            margin-bottom: 14px;
            font-size: 13px;
            font-weight: 500;
        }
        .dtl-status-strip.idle { background: #f5f7fa; color: #888; }
        .dtl-status-strip.running { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
        .dtl-status-strip.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
        .dtl-status-strip.fail { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
        .dtl-status-strip.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
        .dtl-status-spin {
            width: 16px; height: 16px;
            border: 2px solid #2563eb;
            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: 10px 12px;
            background: #f8f9fb;
            border-radius: 8px;
            border: 1px solid #eef0f4;
        }
        .dtl-meta-cell .dm-label { font-size: 11px; color: #aaa; margin-bottom: 3px; }
        .dtl-meta-cell .dm-value { font-size: 13px; font-weight: 600; color: #333; word-break: break-all; }
        .dtl-meta-cell .dm-value.c-running { color: #2563eb; }
        .dtl-meta-cell .dm-value.c-success { color: #16a34a; }
        .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: 8px;
            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: 4px;
            font-size: 11px;
            cursor: pointer;
        }
        .dtl-json-copy:hover { background: rgba(255,255,255,0.2); }

        /* ========== 日志区域 ========== */
        .dtl-log-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px 24px;
            margin-bottom: 20px;
            border: 1px solid #e8ecf1;
        }
        .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: 600;
            color: #1a1a2e;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .dtl-log-header .dtl-log-label i { color: #4a6cf7; }
        .dtl-log-count { font-size: 12px; color: #aaa; }
        .dtl-log-list {
            max-height: 250px;
            overflow-y: auto;
            border: 1px solid #eef0f4;
            border-radius: 8px;
            background: #fafbfc;
        }
        .dtl-log-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px 12px;
            border-bottom: 1px solid #f0f0f0;
            font-size: 12px;
            animation: dtlLogIn 0.2s ease;
        }
        .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: #bbb;
            white-space: nowrap;
            font-family: "Fira Code", Consolas, monospace;
            min-width: 70px;
        }
        .dtl-log-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 4px;
        }
        .dtl-log-dot.info { background: #3b82f6; }
        .dtl-log-dot.success { background: #22c55e; }
        .dtl-log-dot.fail { background: #ef4444; }
        .dtl-log-dot.warn { background: #f59e0b; }
        .dtl-log-msg { color: #555; flex: 1; line-height: 1.4; }
        .dtl-log-empty {
            text-align: center;
            color: #ccc;
            padding: 30px;
            font-size: 13px;
        }

        /* ========== 右侧草稿列表 ========== */
        .dtl-side-card {
            background: #fff;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #e8ecf1;
            position: sticky;
            top: 20px;
        }
        .dtl-side-title {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a2e;
            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: #aaa;
            background: #f5f7fa;
            padding: 2px 8px;
            border-radius: 10px;
        }
        .dtl-draft-item {
            padding: 12px 14px;
            border: 1px solid #eef0f4;
            border-radius: 10px;
            margin-bottom: 10px;
            transition: all 0.2s;
            cursor: default;
        }
        .dtl-draft-item:hover {
            border-color: #c5d0dc;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }
        .dtl-draft-item:last-child { margin-bottom: 0; }
        .dtl-draft-name {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            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: #bbb;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .dtl-draft-status {
            display: inline-block;
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 10px;
            font-weight: 600;
            margin-left: auto;
        }
        .dtl-draft-status.ok { background: #f0fdf4; color: #16a34a; }
        .dtl-draft-status.err { background: #fef2f2; color: #ef4444; }
        .dtl-draft-status.ing { background: #eff6ff; color: #2563eb; }
        .dtl-side-empty {
            text-align: center;
            padding: 30px 10px;
            color: #ccc;
        }
        .dtl-side-empty i {
            font-size: 32px;
            display: block;
            margin-bottom: 10px;
            color: #ddd;
        }

        /* ========== 执行中遮罩 ========== */
        .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 #e0e4eb;
            border-top-color: #4a6cf7;
            border-radius: 50%;
            animation: dtlSpin 0.8s linear infinite;
            margin-bottom: 14px;
        }
        .dtl-exec-text { font-size: 14px; color: #666; }

        /* 响应式 */
        @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; }
        }